Mercurial > hg > truffle
comparison graal/com.oracle.truffle.sl.test/tests/HelloEqualsWorld.sl @ 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 | |
children | d3add9b82b71 |
comparison
equal
deleted
inserted
replaced
15063:36e1a11a72b3 | 15064:f675818d9ad0 |
---|---|
1 function doIt(a) { | |
2 println("Initial stack trace:"); | |
3 println(stacktrace()); | |
4 | |
5 hello = 123; | |
6 println("After 123 assignment:"); | |
7 println(stacktrace()); | |
8 | |
9 helloEqualsWorld(); | |
10 println("After hello assignment:"); | |
11 println(stacktrace()); | |
12 | |
13 // readln(); | |
14 } | |
15 | |
16 function main() { | |
17 i = 0; | |
18 while (i < 10) { | |
19 doIt(i); | |
20 i = i + 1; | |
21 } | |
22 } |