OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: string | 6 pool type: string |
7 execute: yes | 7 execute: yes |
8 wrap: no | 8 wrap: no |
9 test function name: f | 9 test function name: f |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 function t() { } | 13 function t() { } |
14 function f() { return t(); } | 14 function f() { return t(); } |
15 f(); | 15 f(); |
16 " | 16 " |
17 frame size: 2 | 17 frame size: 2 |
18 parameter count: 1 | 18 parameter count: 1 |
19 bytecode array length: 15 | 19 bytecode array length: 13 |
20 bytecodes: [ | 20 bytecodes: [ |
21 /* 27 E> */ B(StackCheck), | 21 /* 27 E> */ B(StackCheck), |
22 /* 32 S> */ B(LdaUndefined), | 22 /* 32 S> */ B(LdrUndefined), R(1), |
23 B(Star), R(1), | 23 B(LdrGlobal), U8(0), U8(3), R(0), |
24 B(LdaGlobal), U8(0), U8(3), | |
25 B(Star), R(0), | |
26 /* 39 E> */ B(Call), R(0), R(1), U8(1), U8(1), | 24 /* 39 E> */ B(Call), R(0), R(1), U8(1), U8(1), |
27 /* 44 S> */ B(Return), | 25 /* 44 S> */ B(Return), |
28 ] | 26 ] |
29 constant pool: [ | 27 constant pool: [ |
30 "t", | 28 "t", |
31 ] | 29 ] |
32 handlers: [ | 30 handlers: [ |
33 ] | 31 ] |
34 | 32 |
35 --- | 33 --- |
36 snippet: " | 34 snippet: " |
37 function t(a, b, c) { } | 35 function t(a, b, c) { } |
38 function f() { return t(1, 2, 3); } | 36 function f() { return t(1, 2, 3); } |
39 f(); | 37 f(); |
40 " | 38 " |
41 frame size: 5 | 39 frame size: 5 |
42 parameter count: 1 | 40 parameter count: 1 |
43 bytecode array length: 27 | 41 bytecode array length: 25 |
44 bytecodes: [ | 42 bytecodes: [ |
45 /* 34 E> */ B(StackCheck), | 43 /* 34 E> */ B(StackCheck), |
46 /* 39 S> */ B(LdaUndefined), | 44 /* 39 S> */ B(LdrUndefined), R(1), |
47 B(Star), R(1), | 45 B(LdrGlobal), U8(0), U8(3), R(0), |
48 B(LdaGlobal), U8(0), U8(3), | |
49 B(Star), R(0), | |
50 B(LdaSmi), U8(1), | 46 B(LdaSmi), U8(1), |
51 B(Star), R(2), | 47 B(Star), R(2), |
52 B(LdaSmi), U8(2), | 48 B(LdaSmi), U8(2), |
53 B(Star), R(3), | 49 B(Star), R(3), |
54 B(LdaSmi), U8(3), | 50 B(LdaSmi), U8(3), |
55 B(Star), R(4), | 51 B(Star), R(4), |
56 /* 46 E> */ B(Call), R(0), R(1), U8(4), U8(1), | 52 /* 46 E> */ B(Call), R(0), R(1), U8(4), U8(1), |
57 /* 58 S> */ B(Return), | 53 /* 58 S> */ B(Return), |
58 ] | 54 ] |
59 constant pool: [ | 55 constant pool: [ |
60 "t", | 56 "t", |
61 ] | 57 ] |
62 handlers: [ | 58 handlers: [ |
63 ] | 59 ] |
64 | 60 |
OLD | NEW |