comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/instrument/SLExpressionWrapperNode.java @ 18764:ccb97347d874

SL: adapt SL to type system singleton removal.
author Christian Humer <christian.humer@gmail.com>
date Mon, 29 Dec 2014 23:39:07 +0100
parents e3c95cbbb50c
children d1c1cd2530d7
comparison
equal deleted inserted replaced
18763:301fea50e42e 18764:ccb97347d874
94 return result; 94 return result;
95 } 95 }
96 96
97 @Override 97 @Override
98 public long executeLong(VirtualFrame frame) throws UnexpectedResultException { 98 public long executeLong(VirtualFrame frame) throws UnexpectedResultException {
99 return SLTypesGen.SLTYPES.expectLong(executeGeneric(frame)); 99 return SLTypesGen.expectLong(executeGeneric(frame));
100 } 100 }
101 101
102 @Override 102 @Override
103 public BigInteger executeBigInteger(VirtualFrame frame) throws UnexpectedResultException { 103 public BigInteger executeBigInteger(VirtualFrame frame) throws UnexpectedResultException {
104 return SLTypesGen.SLTYPES.expectBigInteger(executeGeneric(frame)); 104 return SLTypesGen.expectBigInteger(executeGeneric(frame));
105 } 105 }
106 106
107 @Override 107 @Override
108 public boolean executeBoolean(VirtualFrame frame) throws UnexpectedResultException { 108 public boolean executeBoolean(VirtualFrame frame) throws UnexpectedResultException {
109 return SLTypesGen.SLTYPES.expectBoolean(executeGeneric(frame)); 109 return SLTypesGen.expectBoolean(executeGeneric(frame));
110 } 110 }
111 111
112 @Override 112 @Override
113 public String executeString(VirtualFrame frame) throws UnexpectedResultException { 113 public String executeString(VirtualFrame frame) throws UnexpectedResultException {
114 return SLTypesGen.SLTYPES.expectString(executeGeneric(frame)); 114 return SLTypesGen.expectString(executeGeneric(frame));
115 } 115 }
116 116
117 @Override 117 @Override
118 public SLFunction executeFunction(VirtualFrame frame) throws UnexpectedResultException { 118 public SLFunction executeFunction(VirtualFrame frame) throws UnexpectedResultException {
119 probeNode.enter(child, frame); 119 probeNode.enter(child, frame);
129 return result; 129 return result;
130 } 130 }
131 131
132 @Override 132 @Override
133 public SLNull executeNull(VirtualFrame frame) throws UnexpectedResultException { 133 public SLNull executeNull(VirtualFrame frame) throws UnexpectedResultException {
134 return SLTypesGen.SLTYPES.expectSLNull(executeGeneric(frame)); 134 return SLTypesGen.expectSLNull(executeGeneric(frame));
135 } 135 }
136 136
137 @Override 137 @Override
138 public Probe probe() { 138 public Probe probe() {
139 throw new IllegalStateException("Cannot call probe() on a wrapper."); 139 throw new IllegalStateException("Cannot call probe() on a wrapper.");