Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/CurrentJavaThreadNode.java @ 9289:261a43921c5e
rename: HotSpotGraalRuntime.getInstance() -> graalRuntime()
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 22 Apr 2013 18:30:33 +0200 |
parents | abf5a4554bae |
children | e75e8ffdf87c |
comparison
equal
deleted
inserted
replaced
9232:bb2447c64055 | 9289:261a43921c5e |
---|---|
24 | 24 |
25 import static com.oracle.graal.hotspot.HotSpotGraalRuntime.*; | 25 import static com.oracle.graal.hotspot.HotSpotGraalRuntime.*; |
26 | 26 |
27 import com.oracle.graal.api.code.*; | 27 import com.oracle.graal.api.code.*; |
28 import com.oracle.graal.graph.*; | 28 import com.oracle.graal.graph.*; |
29 import com.oracle.graal.hotspot.*; | |
30 import com.oracle.graal.nodes.calc.*; | 29 import com.oracle.graal.nodes.calc.*; |
31 import com.oracle.graal.nodes.spi.*; | 30 import com.oracle.graal.nodes.spi.*; |
32 import com.oracle.graal.nodes.type.*; | 31 import com.oracle.graal.nodes.type.*; |
33 import com.oracle.graal.word.*; | 32 import com.oracle.graal.word.*; |
34 | 33 |
41 super(StampFactory.forWord()); | 40 super(StampFactory.forWord()); |
42 } | 41 } |
43 | 42 |
44 @Override | 43 @Override |
45 public void generate(LIRGeneratorTool gen) { | 44 public void generate(LIRGeneratorTool gen) { |
46 Register rawThread = HotSpotGraalRuntime.getInstance().getRuntime().threadRegister(); | 45 Register rawThread = graalRuntime().getRuntime().threadRegister(); |
47 gen.setResult(this, rawThread.asValue(this.kind())); | 46 gen.setResult(this, rawThread.asValue(this.kind())); |
48 } | 47 } |
49 | 48 |
50 private static int eetopOffset() { | 49 private static int eetopOffset() { |
51 try { | 50 try { |