Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/instrument/SLExpressionWrapperNode.java @ 20953:c0455554d45b
SL: some minor simplifications.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 14 Apr 2015 15:16:14 +0200 |
parents | 1d6a7ea5de59 |
children |
comparison
equal
deleted
inserted
replaced
20952:833e088ee7d3 | 20953:c0455554d45b |
---|---|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.truffle.sl.nodes.instrument; | 23 package com.oracle.truffle.sl.nodes.instrument; |
24 | |
25 import java.math.*; | |
26 | 24 |
27 import com.oracle.truffle.api.frame.*; | 25 import com.oracle.truffle.api.frame.*; |
28 import com.oracle.truffle.api.instrument.*; | 26 import com.oracle.truffle.api.instrument.*; |
29 import com.oracle.truffle.api.instrument.ProbeNode.WrapperNode; | 27 import com.oracle.truffle.api.instrument.ProbeNode.WrapperNode; |
30 import com.oracle.truffle.api.nodes.*; | 28 import com.oracle.truffle.api.nodes.*; |
99 public long executeLong(VirtualFrame vFrame) throws UnexpectedResultException { | 97 public long executeLong(VirtualFrame vFrame) throws UnexpectedResultException { |
100 return SLTypesGen.expectLong(executeGeneric(vFrame)); | 98 return SLTypesGen.expectLong(executeGeneric(vFrame)); |
101 } | 99 } |
102 | 100 |
103 @Override | 101 @Override |
104 public BigInteger executeBigInteger(VirtualFrame vFrame) throws UnexpectedResultException { | |
105 return SLTypesGen.expectBigInteger(executeGeneric(vFrame)); | |
106 } | |
107 | |
108 @Override | |
109 public boolean executeBoolean(VirtualFrame vFrame) throws UnexpectedResultException { | 102 public boolean executeBoolean(VirtualFrame vFrame) throws UnexpectedResultException { |
110 return SLTypesGen.expectBoolean(executeGeneric(vFrame)); | 103 return SLTypesGen.expectBoolean(executeGeneric(vFrame)); |
111 } | |
112 | |
113 @Override | |
114 public String executeString(VirtualFrame vFrame) throws UnexpectedResultException { | |
115 return SLTypesGen.expectString(executeGeneric(vFrame)); | |
116 } | 104 } |
117 | 105 |
118 @Override | 106 @Override |
119 public SLFunction executeFunction(VirtualFrame vFrame) throws UnexpectedResultException { | 107 public SLFunction executeFunction(VirtualFrame vFrame) throws UnexpectedResultException { |
120 probeNode.enter(child, vFrame); | 108 probeNode.enter(child, vFrame); |
128 throw (e); | 116 throw (e); |
129 } | 117 } |
130 return result; | 118 return result; |
131 } | 119 } |
132 | 120 |
133 @Override | |
134 public SLNull executeNull(VirtualFrame vFrame) throws UnexpectedResultException { | |
135 return SLTypesGen.expectSLNull(executeGeneric(vFrame)); | |
136 } | |
137 } | 121 } |