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 var f; | 11 var f; |
12 f = function f() {}; | 12 f = function f() {}; |
13 f(); | 13 f(); |
14 " | 14 " |
15 frame size: 1 | 15 frame size: 2 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 6 | 17 bytecode array length: 10 |
18 bytecodes: [ | 18 bytecodes: [ |
19 /* 21 E> */ B(StackCheck), | 19 /* 21 E> */ B(StackCheck), |
| 20 B(LdaConstant), U8(0), |
| 21 B(Star), R(1), |
20 B(Mov), R(closure), R(0), | 22 B(Mov), R(closure), R(0), |
21 B(LdaUndefined), | 23 B(LdaUndefined), |
22 /* 25 S> */ B(Return), | 24 /* 25 S> */ B(Return), |
23 ] | 25 ] |
24 constant pool: [ | 26 constant pool: [ |
| 27 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], |
25 ] | 28 ] |
26 handlers: [ | 29 handlers: [ |
27 ] | 30 ] |
28 | 31 |
29 --- | 32 --- |
30 snippet: " | 33 snippet: " |
31 var f; | 34 var f; |
32 f = function f() { return f; }; | 35 f = function f() { return f; }; |
33 f(); | 36 f(); |
34 " | 37 " |
35 frame size: 1 | 38 frame size: 2 |
36 parameter count: 1 | 39 parameter count: 1 |
37 bytecode array length: 7 | 40 bytecode array length: 11 |
38 bytecodes: [ | 41 bytecodes: [ |
39 /* 21 E> */ B(StackCheck), | 42 /* 21 E> */ B(StackCheck), |
| 43 B(LdaConstant), U8(0), |
| 44 B(Star), R(1), |
40 B(Mov), R(closure), R(0), | 45 B(Mov), R(closure), R(0), |
41 /* 26 S> */ B(Ldar), R(0), | 46 /* 26 S> */ B(Ldar), R(0), |
42 /* 36 S> */ B(Return), | 47 /* 36 S> */ B(Return), |
43 ] | 48 ] |
44 constant pool: [ | 49 constant pool: [ |
| 50 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], |
45 ] | 51 ] |
46 handlers: [ | 52 handlers: [ |
47 ] | 53 ] |
48 | 54 |
OLD | NEW |