Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ThreadSafetyTest.java @ 15064:f675818d9ad0
new getStackTrace and getCurrentFrame functionality in TruffleRuntime
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Fri, 11 Apr 2014 11:53:11 +0200 |
parents | 64dcb92ee75a |
children | 5634b199c4da |
comparison
equal
deleted
inserted
replaced
15063:36e1a11a72b3 | 15064:f675818d9ad0 |
---|---|
174 | 174 |
175 @Override | 175 @Override |
176 int execute(VirtualFrame frame) { | 176 int execute(VirtualFrame frame) { |
177 int arg = (Integer) frame.getArguments()[0]; | 177 int arg = (Integer) frame.getArguments()[0]; |
178 if (arg > 0) { | 178 if (arg > 0) { |
179 return (int) callNode.call(new Object[]{(arg - 1)}); | 179 return (int) callNode.call(frame, new Object[]{(arg - 1)}); |
180 } else { | 180 } else { |
181 return valueNode.execute(frame); | 181 return valueNode.execute(frame); |
182 } | 182 } |
183 } | 183 } |
184 | 184 |