Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/TruffleTypes.java @ 9272:fe5bc02fcd19
Replace TruffleIntrinsics.deoptimize() calls with CompilerDirectives.transferToInterpreter(). Remove obsolete TruffleIntrinsics class.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 23 Apr 2013 20:15:52 +0200 |
parents | 07f8d136a05e |
children | 2a4b57f02fb4 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/TruffleTypes.java Tue Apr 23 16:19:52 2013 +0200 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/TruffleTypes.java Tue Apr 23 20:15:52 2013 +0200 @@ -28,8 +28,8 @@ import javax.lang.model.type.*; import javax.tools.Diagnostic.*; +import com.oracle.truffle.api.*; import com.oracle.truffle.api.frame.*; -import com.oracle.truffle.api.intrinsics.*; import com.oracle.truffle.api.nodes.*; import com.oracle.truffle.api.nodes.Node.Child; import com.oracle.truffle.api.nodes.Node.Children; @@ -45,7 +45,7 @@ private final TypeMirror frame; private final DeclaredType childAnnotation; private final DeclaredType childrenAnnotation; - private final TypeMirror truffleIntrinsics; + private final TypeMirror compilerDirectives; private final List<String> errors = new ArrayList<>(); @@ -56,7 +56,7 @@ frame = getRequired(context, VirtualFrame.class); childAnnotation = getRequired(context, Child.class); childrenAnnotation = getRequired(context, Children.class); - truffleIntrinsics = getRequired(context, TruffleIntrinsics.class); + compilerDirectives = getRequired(context, CompilerDirectives.class); } public boolean verify(ProcessorContext context, Element element, AnnotationMirror mirror) { @@ -79,8 +79,8 @@ return (DeclaredType) type; } - public TypeMirror getTruffleIntrinsics() { - return truffleIntrinsics; + public TypeMirror getCompilerDirectives() { + return compilerDirectives; } public TypeMirror getNode() {