Mercurial > hg > graal-compiler
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java @ 1421:6223633ce7dd
changed VMExit/VMEntries to non-static, added eclipse c++ project, CIR interface changes
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Fri, 23 Jul 2010 15:53:02 -0700 |
parents | 44efca8a02d6 |
children | 3483ec571caf |
comparison
equal
deleted
inserted
replaced
1420:44efca8a02d6 | 1421:6223633ce7dd |
---|---|
16 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. | 16 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. |
17 */ | 17 */ |
18 package com.sun.hotspot.c1x; | 18 package com.sun.hotspot.c1x; |
19 | 19 |
20 import java.io.ByteArrayOutputStream; | 20 import java.io.ByteArrayOutputStream; |
21 import java.io.OutputStream; | |
22 import java.lang.reflect.Constructor; | 21 import java.lang.reflect.Constructor; |
23 import java.lang.reflect.Field; | 22 import java.lang.reflect.Field; |
24 import java.lang.reflect.Method; | 23 import java.lang.reflect.Method; |
25 | 24 |
26 import com.sun.cri.ci.CiConstant; | 25 import com.sun.cri.ci.CiConstant; |
50 */ | 49 */ |
51 public class HotSpotRuntime implements RiRuntime { | 50 public class HotSpotRuntime implements RiRuntime { |
52 | 51 |
53 private final HotSpotVMConfig config; | 52 private final HotSpotVMConfig config; |
54 | 53 |
54 public static enum Entrypoints { | |
55 UNVERIFIED, VERIFIED | |
56 } | |
57 | |
55 public HotSpotRuntime(HotSpotVMConfig config) { | 58 public HotSpotRuntime(HotSpotVMConfig config) { |
56 this.config = config; | 59 this.config = config; |
57 } | 60 } |
58 | 61 |
59 @Override | 62 @Override |
64 | 67 |
65 @Override | 68 @Override |
66 public int codeOffset() { | 69 public int codeOffset() { |
67 // TODO Auto-generated method stub | 70 // TODO Auto-generated method stub |
68 return 0; | 71 return 0; |
69 } | |
70 | |
71 @Override | |
72 public void codePrologue(RiMethod method, OutputStream out) { | |
73 // TODO Auto-generated method stub | |
74 | |
75 } | 72 } |
76 | 73 |
77 @Override | 74 @Override |
78 public String disassemble(byte[] code) { | 75 public String disassemble(byte[] code) { |
79 return disassemble(code, new DisassemblyPrinter(false)); | 76 return disassemble(code, new DisassemblyPrinter(false)); |
146 return "No disassembler available"; | 143 return "No disassembler available"; |
147 } | 144 } |
148 | 145 |
149 @Override | 146 @Override |
150 public RiConstantPool getConstantPool(RiMethod method) { | 147 public RiConstantPool getConstantPool(RiMethod method) { |
151 return VMEntries.RiRuntime_getConstantPool(((HotSpotType) method.holder()).klassOop); | 148 return Compiler.getVMEntries().RiRuntime_getConstantPool(((HotSpotType) method.holder()).klassOop); |
152 } | 149 } |
153 | 150 |
154 @Override | 151 @Override |
155 public RiOsrFrame getOsrFrame(RiMethod method, int bci) { | 152 public RiOsrFrame getOsrFrame(RiMethod method, int bci) { |
156 // TODO Auto-generated method stub | 153 // TODO Auto-generated method stub |