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