Mercurial > hg > graal-jvmci-8
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java @ 1434:72cfb36c6bb2
* enabled all jtt tests
* added proxy that counts jni calls
* honor hotspot stackshadowpages
* constant pool caching
* monitor enter/exit
* arithmetic stubs (frem, drem, ...)
* create stack values for debug info
* some doc
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Thu, 30 Sep 2010 17:19:48 -0700 |
parents | efba53f86c4f |
children | 9e5e83ca2259 |
comparison
equal
deleted
inserted
replaced
1433:efba53f86c4f | 1434:72cfb36c6bb2 |
---|---|
36 */ | 36 */ |
37 public class HotSpotRuntime implements RiRuntime { | 37 public class HotSpotRuntime implements RiRuntime { |
38 | 38 |
39 private final HotSpotVMConfig config; | 39 private final HotSpotVMConfig config; |
40 | 40 |
41 public static enum Entrypoints { | |
42 UNVERIFIED, VERIFIED | |
43 } | |
44 | |
45 public HotSpotRuntime(HotSpotVMConfig config) { | 41 public HotSpotRuntime(HotSpotVMConfig config) { |
46 this.config = config; | 42 this.config = config; |
47 } | |
48 | |
49 @Override | |
50 public int basicObjectLockOffsetInBytes() { | |
51 return 0; | |
52 } | 43 } |
53 | 44 |
54 @Override | 45 @Override |
55 public int codeOffset() { | 46 public int codeOffset() { |
56 return 0; | 47 return 0; |
173 return HotSpotTargetMethod.installStub(targetMethod, name); | 164 return HotSpotTargetMethod.installStub(targetMethod, name); |
174 } | 165 } |
175 | 166 |
176 @Override | 167 @Override |
177 public int sizeofBasicObjectLock() { | 168 public int sizeofBasicObjectLock() { |
178 // TODO Auto-generated method stub | 169 // TODO shouldn't be hard coded |
179 return 0; | 170 return 2 * 8; |
171 } | |
172 | |
173 @Override | |
174 public int basicObjectLockOffsetInBytes() { | |
175 return 8; | |
180 } | 176 } |
181 | 177 |
182 @Override | 178 @Override |
183 public RiField getRiField(Field javaField) { | 179 public RiField getRiField(Field javaField) { |
184 throw new UnsupportedOperationException("getRiField"); | 180 throw new UnsupportedOperationException("getRiField"); |