Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfig.java @ 23686:50465926fbeb jvmci-0.12
make all HotSpotVMConfigAccess subclasses and their members package-private
remove toString methods from HotSpotVMConfigAccess subclasses
remove HotSpotVMConfigVerifier
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 15 Jun 2016 15:29:38 +0200 |
parents | 9861ec1f28c9 |
children | 9e1235406b59 |
comparison
equal
deleted
inserted
replaced
23685:71becd3e2b1f | 23686:50465926fbeb |
---|---|
34 private final String osArch = getHostArchitectureName(); | 34 private final String osArch = getHostArchitectureName(); |
35 | 35 |
36 @SuppressWarnings("try") | 36 @SuppressWarnings("try") |
37 HotSpotVMConfig(HotSpotVMConfigStore store) { | 37 HotSpotVMConfig(HotSpotVMConfigStore store) { |
38 super(store); | 38 super(store); |
39 | |
40 assert check(); | |
41 assert HotSpotVMConfigVerifier.check(); | |
42 } | |
43 | |
44 @Override | |
45 public String toString() { | |
46 return getClass().getSimpleName(); | |
47 } | 39 } |
48 | 40 |
49 /** | 41 /** |
50 * Gets the host architecture name for the purpose of finding the corresponding | 42 * Gets the host architecture name for the purpose of finding the corresponding |
51 * {@linkplain HotSpotJVMCIBackendFactory backend}. | 43 * {@linkplain HotSpotJVMCIBackendFactory backend}. |
383 final int receiverTypeDataCount0Offset = getConstant("ReceiverTypeData::count0_offset", Integer.class); | 375 final int receiverTypeDataCount0Offset = getConstant("ReceiverTypeData::count0_offset", Integer.class); |
384 final int branchDataNotTakenOffset = getConstant("BranchData::not_taken_off_set", Integer.class); | 376 final int branchDataNotTakenOffset = getConstant("BranchData::not_taken_off_set", Integer.class); |
385 final int arrayDataArrayLenOffset = getConstant("ArrayData::array_len_off_set", Integer.class); | 377 final int arrayDataArrayLenOffset = getConstant("ArrayData::array_len_off_set", Integer.class); |
386 final int arrayDataArrayStartOffset = getConstant("ArrayData::array_start_off_set", Integer.class); | 378 final int arrayDataArrayStartOffset = getConstant("ArrayData::array_start_off_set", Integer.class); |
387 final int multiBranchDataPerCaseCellCount = getConstant("MultiBranchData::per_case_cell_count", Integer.class); | 379 final int multiBranchDataPerCaseCellCount = getConstant("MultiBranchData::per_case_cell_count", Integer.class); |
388 | |
389 boolean check() { | |
390 assert (layoutHelperArrayTagObjectValue & (1 << (Integer.SIZE - 1))) != 0 : "object array must have first bit set"; | |
391 assert (layoutHelperArrayTagTypeValue & (1 << (Integer.SIZE - 1))) != 0 : "type array must have first bit set"; | |
392 return true; | |
393 } | |
394 } | 380 } |