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: number | 6 pool type: number |
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 var f; | 13 var f; |
14 f = function f() {}; | 14 f = function f() {}; |
15 f(); | 15 f(); |
16 " | 16 " |
17 frame size: 2 | 17 frame size: 1 |
18 parameter count: 1 | 18 parameter count: 1 |
19 bytecode array length: 19 | 19 bytecode array length: 7 |
20 bytecodes: [ | 20 bytecodes: [ |
21 B(LdaTheHole), | |
22 B(Star), R(0), | |
23 B(StackCheck), | 21 B(StackCheck), |
24 B(Ldar), R(closure), | 22 B(Ldar), R(closure), |
25 B(Star), R(1), | 23 B(Star), R(0), |
26 B(Ldar), R(0), | |
27 B(JumpIfNotHole), U8(5), | |
28 B(Mov), R(1), R(0), | |
29 B(Ldar), R(1), | |
30 B(LdaUndefined), | 24 B(LdaUndefined), |
31 B(Return), | 25 B(Return), |
32 ] | 26 ] |
33 constant pool: [ | 27 constant pool: [ |
34 ] | 28 ] |
35 handlers: [ | 29 handlers: [ |
36 ] | 30 ] |
37 | 31 |
38 --- | 32 --- |
39 snippet: " | 33 snippet: " |
40 var f; | 34 var f; |
41 f = function f() { return f; }; | 35 f = function f() { return f; }; |
42 f(); | 36 f(); |
43 " | 37 " |
44 frame size: 2 | 38 frame size: 1 |
45 parameter count: 1 | 39 parameter count: 1 |
46 bytecode array length: 23 | 40 bytecode array length: 6 |
47 bytecodes: [ | 41 bytecodes: [ |
48 B(LdaTheHole), | |
49 B(Star), R(0), | |
50 B(StackCheck), | 42 B(StackCheck), |
51 B(Ldar), R(closure), | 43 B(Ldar), R(closure), |
52 B(Star), R(1), | 44 B(Star), R(0), |
53 B(Ldar), R(0), | |
54 B(JumpIfNotHole), U8(5), | |
55 B(Mov), R(1), R(0), | |
56 B(Ldar), R(1), | |
57 B(Ldar), R(0), | |
58 B(JumpIfNotHole), U8(3), | |
59 B(LdaUndefined), | |
60 B(Return), | 45 B(Return), |
61 ] | 46 ] |
62 constant pool: [ | 47 constant pool: [ |
63 ] | 48 ] |
64 handlers: [ | 49 handlers: [ |
65 ] | 50 ] |
66 | 51 |
OLD | NEW |