Mercurial > hg > truffle
changeset 19789:a72945780580
removed a static access to HotSpotGraalRuntime
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 11 Mar 2015 15:27:18 +0100 |
parents | 94d87f6324a3 |
children | 31fac91ea3b7 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/CurrentJavaThreadNode.java |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/CurrentJavaThreadNode.java Wed Mar 11 15:25:34 2015 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/CurrentJavaThreadNode.java Wed Mar 11 15:27:18 2015 +0100 @@ -22,8 +22,6 @@ */ package com.oracle.graal.hotspot.nodes; -import static com.oracle.graal.hotspot.HotSpotGraalRuntime.*; - import com.oracle.graal.api.code.*; import com.oracle.graal.api.meta.*; import com.oracle.graal.compiler.common.*; @@ -44,9 +42,9 @@ protected LIRKind wordKind; - public CurrentJavaThreadNode(Kind kind) { - super(TYPE, StampFactory.forKind(kind)); - this.wordKind = LIRKind.value(kind); + public CurrentJavaThreadNode(@InjectedNodeParameter HotSpotGraalRuntimeProvider runtime) { + super(TYPE, StampFactory.forKind(runtime.getTarget().wordKind)); + this.wordKind = LIRKind.value(runtime.getTarget().wordKind); } @Override @@ -64,7 +62,5 @@ } @NodeIntrinsic(setStampFromReturnType = true) - public static Word get(@SuppressWarnings("unused") @ConstantNodeParameter Kind kind) { - return Word.unsigned(unsafeReadWord(Thread.currentThread(), eetopOffset())); - } + public static native Word get(); }