Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/TypedNode.java @ 8240:33e08aca06ff
Codegen API change. Simplified definition of guards.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Fri, 01 Mar 2013 18:04:23 +0100 |
parents | 31da1716950f |
children | c3ec5230967a |
comparison
equal
deleted
inserted
replaced
8239:8fa2eed07f81 | 8240:33e08aca06ff |
---|---|
22 */ | 22 */ |
23 package com.oracle.truffle.sl.nodes; | 23 package com.oracle.truffle.sl.nodes; |
24 | 24 |
25 import java.math.*; | 25 import java.math.*; |
26 | 26 |
27 import com.oracle.truffle.api.codegen.*; | |
28 import com.oracle.truffle.api.frame.*; | 27 import com.oracle.truffle.api.frame.*; |
29 import com.oracle.truffle.api.nodes.*; | 28 import com.oracle.truffle.api.nodes.*; |
30 | 29 |
31 public abstract class TypedNode extends ConditionNode { | 30 public abstract class TypedNode extends ConditionNode { |
32 | 31 |
47 | 46 |
48 public abstract String executeString(VirtualFrame frame) throws UnexpectedResultException; | 47 public abstract String executeString(VirtualFrame frame) throws UnexpectedResultException; |
49 | 48 |
50 public abstract Object executeGeneric(VirtualFrame frame); | 49 public abstract Object executeGeneric(VirtualFrame frame); |
51 | 50 |
52 @GuardCheck | |
53 public boolean isString(Object a, Object b) { | 51 public boolean isString(Object a, Object b) { |
54 return a instanceof String || b instanceof String; | 52 return a instanceof String || b instanceof String; |
55 } | 53 } |
56 | 54 |
57 } | 55 } |