changeset 35823 | 59a847ec6ee3 |
parent 35582 | c32a0cc19877 |
child 39443 | ca6dfb34e46c |
35822:d04be2a635f2 | 35823:59a847ec6ee3 |
---|---|
26 import java.lang.reflect.Method; |
26 import java.lang.reflect.Method; |
27 |
27 |
28 import jdk.vm.ci.code.Architecture; |
28 import jdk.vm.ci.code.Architecture; |
29 import jdk.vm.ci.code.CodeCacheProvider; |
29 import jdk.vm.ci.code.CodeCacheProvider; |
30 import jdk.vm.ci.code.Register; |
30 import jdk.vm.ci.code.Register; |
31 import jdk.vm.ci.code.StackSlot; |
|
31 import jdk.vm.ci.code.site.DataPatch; |
32 import jdk.vm.ci.code.site.DataPatch; |
32 import jdk.vm.ci.code.site.Site; |
33 import jdk.vm.ci.code.site.Site; |
33 import jdk.vm.ci.hotspot.HotSpotCompiledCode; |
34 import jdk.vm.ci.hotspot.HotSpotCompiledCode; |
34 import jdk.vm.ci.hotspot.HotSpotCompiledCode.Comment; |
35 import jdk.vm.ci.hotspot.HotSpotCompiledCode.Comment; |
35 import jdk.vm.ci.hotspot.HotSpotConstantReflectionProvider; |
36 import jdk.vm.ci.hotspot.HotSpotConstantReflectionProvider; |
69 } |
70 } |
70 |
71 |
71 dummyMethod = metaAccess.lookupJavaMethod(method); |
72 dummyMethod = metaAccess.lookupJavaMethod(method); |
72 } |
73 } |
73 |
74 |
74 protected void installEmptyCode(Site[] sites, Assumption[] assumptions, Comment[] comments, int dataSectionAlignment, DataPatch[] dataSectionPatches) { |
75 protected void installEmptyCode(Site[] sites, Assumption[] assumptions, Comment[] comments, int dataSectionAlignment, DataPatch[] dataSectionPatches, StackSlot deoptRescueSlot) { |
75 HotSpotCompiledCode code = new HotSpotCompiledCode("dummyMethod", new byte[0], 0, sites, assumptions, new ResolvedJavaMethod[]{dummyMethod}, comments, new byte[8], dataSectionAlignment, |
76 HotSpotCompiledCode code = new HotSpotCompiledCode("dummyMethod", new byte[0], 0, sites, assumptions, new ResolvedJavaMethod[]{dummyMethod}, comments, new byte[8], dataSectionAlignment, |
76 dataSectionPatches, false, 0, 0); |
77 dataSectionPatches, false, 0, deoptRescueSlot); |
77 codeCache.addCode(dummyMethod, code, null, null); |
78 codeCache.addCode(dummyMethod, code, null, null); |
78 } |
79 } |
79 |
80 |
80 protected Register getRegister(PlatformKind kind, int index) { |
81 protected Register getRegister(PlatformKind kind, int index) { |
81 int idx = index; |
82 int idx = index; |