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: yes | 8 wrap: yes |
9 legacy const: yes | 9 legacy const: yes |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 const x = 10; | 13 const x = 10; |
14 " | 14 " |
15 frame size: 2 | 15 frame size: 2 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 19 | 17 bytecode array length: 19 |
18 bytecodes: [ | 18 bytecodes: [ |
19 B(LdaTheHole), | 19 B(LdaTheHole), |
20 B(Star), R(0), | 20 B(Star), R(0), |
21 B(StackCheck), | 21 B(StackCheck), |
22 B(LdaSmi8), U8(10), | 22 B(LdaSmi), U8(10), |
23 B(Star), R(1), | 23 B(Star), R(1), |
24 B(Ldar), R(0), | 24 B(Ldar), R(0), |
25 B(JumpIfNotHole), U8(5), | 25 B(JumpIfNotHole), U8(5), |
26 B(Mov), R(1), R(0), | 26 B(Mov), R(1), R(0), |
27 B(Ldar), R(1), | 27 B(Ldar), R(1), |
28 B(LdaUndefined), | 28 B(LdaUndefined), |
29 B(Return), | 29 B(Return), |
30 ] | 30 ] |
31 constant pool: [ | 31 constant pool: [ |
32 ] | 32 ] |
33 handlers: [ | 33 handlers: [ |
34 ] | 34 ] |
35 | 35 |
36 --- | 36 --- |
37 snippet: " | 37 snippet: " |
38 const x = 10; return x; | 38 const x = 10; return x; |
39 " | 39 " |
40 frame size: 2 | 40 frame size: 2 |
41 parameter count: 1 | 41 parameter count: 1 |
42 bytecode array length: 23 | 42 bytecode array length: 23 |
43 bytecodes: [ | 43 bytecodes: [ |
44 B(LdaTheHole), | 44 B(LdaTheHole), |
45 B(Star), R(0), | 45 B(Star), R(0), |
46 B(StackCheck), | 46 B(StackCheck), |
47 B(LdaSmi8), U8(10), | 47 B(LdaSmi), U8(10), |
48 B(Star), R(1), | 48 B(Star), R(1), |
49 B(Ldar), R(0), | 49 B(Ldar), R(0), |
50 B(JumpIfNotHole), U8(5), | 50 B(JumpIfNotHole), U8(5), |
51 B(Mov), R(1), R(0), | 51 B(Mov), R(1), R(0), |
52 B(Ldar), R(1), | 52 B(Ldar), R(1), |
53 B(Ldar), R(0), | 53 B(Ldar), R(0), |
54 B(JumpIfNotHole), U8(3), | 54 B(JumpIfNotHole), U8(3), |
55 B(LdaUndefined), | 55 B(LdaUndefined), |
56 B(Return), | 56 B(Return), |
57 ] | 57 ] |
58 constant pool: [ | 58 constant pool: [ |
59 ] | 59 ] |
60 handlers: [ | 60 handlers: [ |
61 ] | 61 ] |
62 | 62 |
63 --- | 63 --- |
64 snippet: " | 64 snippet: " |
65 const x = ( x = 20); | 65 const x = ( x = 20); |
66 " | 66 " |
67 frame size: 2 | 67 frame size: 2 |
68 parameter count: 1 | 68 parameter count: 1 |
69 bytecode array length: 23 | 69 bytecode array length: 23 |
70 bytecodes: [ | 70 bytecodes: [ |
71 B(LdaTheHole), | 71 B(LdaTheHole), |
72 B(Star), R(0), | 72 B(Star), R(0), |
73 B(StackCheck), | 73 B(StackCheck), |
74 B(LdaSmi8), U8(20), | 74 B(LdaSmi), U8(20), |
75 B(Star), R(1), | 75 B(Star), R(1), |
76 B(Ldar), R(0), | 76 B(Ldar), R(0), |
77 B(Ldar), R(1), | 77 B(Ldar), R(1), |
78 B(Ldar), R(0), | 78 B(Ldar), R(0), |
79 B(JumpIfNotHole), U8(5), | 79 B(JumpIfNotHole), U8(5), |
80 B(Mov), R(1), R(0), | 80 B(Mov), R(1), R(0), |
81 B(Ldar), R(1), | 81 B(Ldar), R(1), |
82 B(LdaUndefined), | 82 B(LdaUndefined), |
83 B(Return), | 83 B(Return), |
84 ] | 84 ] |
85 constant pool: [ | 85 constant pool: [ |
86 ] | 86 ] |
87 handlers: [ | 87 handlers: [ |
88 ] | 88 ] |
89 | 89 |
90 --- | 90 --- |
91 snippet: " | 91 snippet: " |
92 const x = 10; x = 20; | 92 const x = 10; x = 20; |
93 " | 93 " |
94 frame size: 2 | 94 frame size: 2 |
95 parameter count: 1 | 95 parameter count: 1 |
96 bytecode array length: 27 | 96 bytecode array length: 27 |
97 bytecodes: [ | 97 bytecodes: [ |
98 B(LdaTheHole), | 98 B(LdaTheHole), |
99 B(Star), R(0), | 99 B(Star), R(0), |
100 B(StackCheck), | 100 B(StackCheck), |
101 B(LdaSmi8), U8(10), | 101 B(LdaSmi), U8(10), |
102 B(Star), R(1), | 102 B(Star), R(1), |
103 B(Ldar), R(0), | 103 B(Ldar), R(0), |
104 B(JumpIfNotHole), U8(5), | 104 B(JumpIfNotHole), U8(5), |
105 B(Mov), R(1), R(0), | 105 B(Mov), R(1), R(0), |
106 B(Ldar), R(1), | 106 B(Ldar), R(1), |
107 B(LdaSmi8), U8(20), | 107 B(LdaSmi), U8(20), |
108 B(Star), R(1), | 108 B(Star), R(1), |
109 B(Ldar), R(0), | 109 B(Ldar), R(0), |
110 B(Ldar), R(1), | 110 B(Ldar), R(1), |
111 B(LdaUndefined), | 111 B(LdaUndefined), |
112 B(Return), | 112 B(Return), |
113 ] | 113 ] |
114 constant pool: [ | 114 constant pool: [ |
115 ] | 115 ] |
116 handlers: [ | 116 handlers: [ |
117 ] | 117 ] |
118 | 118 |
OLD | NEW |