forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiterateFrames.test
More file actions
90 lines (90 loc) · 3.25 KB
/
iterateFrames.test
File metadata and controls
90 lines (90 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
> cp iterateFrames.js ${TMP_DIR}/iterateFrames.js
> cp iterateFramesSieve.js ${TMP_DIR}/iterateFramesSieve.js
> cp ../../../benchmarks/agentscript/sieve.js ${TMP_DIR}/sieve.js
> cp agent-fib-main.js ${TMP_DIR}/fib.js
> cd ${TMP_DIR}
>[0] js --insight=iterateFrames.js fib.js
dumping locals
at fib (fib.js:8:3) n has value 1
at fib (fib.js:10:15) n has value 2
at fib (fib.js:10:15) n has value 3
at fib (fib.js:10:15) n has value 4
.*at.*main.*fib.js.*prefix has value Three is the result
.*at.*main.*fib.js.*fib4 has value undefined
.*at.*program.*fib.js:.*return.*has value undefined
end of locals
dumping locals
at fib (fib.js:8:3) n has value 1
at fib (fib.js:10:34) n has value 3
at fib (fib.js:10:15) n has value 4
.*at.*main.*fib.js.*prefix has value The result is three
.*at.*main.*fib.js.*fib4 has value undefined
.*at.*program.*fib.js:.*return.*has value undefined
end of locals
dumping locals
at fib (fib.js:8:3) n has value 1
at fib (fib.js:10:15) n has value 2
at fib (fib.js:10:34) n has value 4
.*at.*main.*fib.js.*prefix has value The result is three
.*at.*main.*fib.js.*fib4 has value undefined
.*at.*program.*fib.js:.*return.*has value undefined
end of locals
The result is three 3
> cat >err0.js
< insight.on('enter', (ctx, frame) => {
< ctx.iterateFrames();
< }, {
< expressions : true
< });
>[7] js --insight=err0.js -e "6 * 7"
TypeError: invokeMember.*iterateFrames.*:program.*Arity error.*
.*at.*js.*err0.js.*
.*at.*js.*program.*
> cat >err1.js
< insight.on('enter', (ctx, frame) => {
< ctx.iterateFrames(null);
< }, {
< expressions : true
< });
>[7] js --jvm --insight=err1.js -e "6 * 7"
TypeError: invokeMember.*iterateFrames.*on :program.*Cannot execute null
.*at.*js.*err1.js.*
.*at.*js.*program.*
> cat >err2.js
< insight.on('enter', (ctx, frame) => {
< ctx.iterateFrames({});
< }, {
< expressions : true
< });
>[7] js --jvm --insight=err2.js -e "6 * 7"
TypeError: invokeMember.*iterateFrames.*on :program.*Cannot execute {}
.*at.*js.*err2.js.*
.*at.*js.*program.*
>[7] js --insight=iterateFramesSieve.js -e "count=0" sieve.js
Computed 97 primes in [0-9]+ ms. Last one is 509
Computed 194 primes in [0-9]+ ms. Last one is 1181
Computed 388 primes in [0-9]+ ms. Last one is 2677
Computed 776 primes in [0-9]+ ms. Last one is 5897
Computed 1552 primes in [0-9]+ ms. Last one is 13033
Computed 3104 primes in [0-9]+ ms. Last one is 28541
Computed 6208 primes in [0-9]+ ms. Last one is 61687
Computed 12416 primes in [0-9]+ ms. Last one is 133033
Computed 24832 primes in [0-9]+ ms. Last one is 284831
Computed 49664 primes in [0-9]+ ms. Last one is 607417
Iterating the Filter with 1289513 stack from Insight
.*at.*js.*Filter.*sieve.js.*1413.
.*at.*js.*Filter.acceptAndAdd.*sieve.js.*1712.
.*at.*js.*Primes.next.*sieve.js.*2106.
.*at.*js.*measure.*sieve.js.*2346.
.*at.*js.*oneRound.*sieve.js.*3373.
.*at.*js.*setTimeout.*sieve.js.*3216.
.*at.*js.*program.*sieve.js.*3473.
Is the printed stack comparable with thrown exception?
.*at.*js.*dumpStack.*iterateFramesSieve.js.*476.
.*at.*js.*Filter.*sieve.js.*1413.
.*at.*js.*Filter.acceptAndAdd.*sieve.js.*1712.
.*at.*js.*Primes.next.*sieve.js.*2106.
.*at.*js.*measure.*sieve.js.*2346.
.*at.*js.*oneRound.*sieve.js.*3373.
.*at.*js.*setTimeout.*sieve.js.*3216.
.*at.*js.*program.*sieve.js.*3473.