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: mixed | 6 pool type: mixed |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
11 snippet: " | 11 snippet: " |
12 var x = 0; | 12 var x = 0; |
13 label: { | 13 label: { |
14 x = x + 1; | 14 x = x + 1; |
15 break label; | 15 break label; |
16 x = x + 1; | 16 x = x + 1; |
17 } | 17 } |
18 return x; | 18 return x; |
19 " | 19 " |
20 frame size: 2 | 20 frame size: 2 |
21 parameter count: 1 | 21 parameter count: 1 |
22 bytecode array length: 17 | 22 bytecode array length: 17 |
23 bytecodes: [ | 23 bytecodes: [ |
24 B(StackCheck), | 24 B(StackCheck), |
25 B(LdaZero), | 25 B(LdaZero), |
26 B(Star), R(0), | 26 B(Star), R(0), |
27 B(Star), R(1), | 27 B(Star), R(1), |
28 B(LdaSmi8), U8(1), | 28 B(LdaSmi), U8(1), |
29 B(Add), R(1), | 29 B(Add), R(1), |
30 B(Star), R(0), | 30 B(Star), R(0), |
31 B(Jump), U8(2), | 31 B(Jump), U8(2), |
32 B(Ldar), R(0), | 32 B(Ldar), R(0), |
33 B(Return), | 33 B(Return), |
34 ] | 34 ] |
35 constant pool: [ | 35 constant pool: [ |
36 ] | 36 ] |
37 handlers: [ | 37 handlers: [ |
38 ] | 38 ] |
(...skipping 15 matching lines...) Loading... |
54 parameter count: 1 | 54 parameter count: 1 |
55 bytecode array length: 75 | 55 bytecode array length: 75 |
56 bytecodes: [ | 56 bytecodes: [ |
57 B(StackCheck), | 57 B(StackCheck), |
58 B(LdaZero), | 58 B(LdaZero), |
59 B(Star), R(0), | 59 B(Star), R(0), |
60 B(LdaZero), | 60 B(LdaZero), |
61 B(Star), R(1), | 61 B(Star), R(1), |
62 B(Ldar), R(1), | 62 B(Ldar), R(1), |
63 B(Star), R(3), | 63 B(Star), R(3), |
64 B(LdaSmi8), U8(10), | 64 B(LdaSmi), U8(10), |
65 B(TestLessThan), R(3), | 65 B(TestLessThan), R(3), |
66 B(JumpIfFalse), U8(57), | 66 B(JumpIfFalse), U8(57), |
67 B(StackCheck), | 67 B(StackCheck), |
68 B(LdaZero), | 68 B(LdaZero), |
69 B(Star), R(2), | 69 B(Star), R(2), |
70 B(Ldar), R(2), | 70 B(Ldar), R(2), |
71 B(Star), R(3), | 71 B(Star), R(3), |
72 B(LdaSmi8), U8(3), | 72 B(LdaSmi), U8(3), |
73 B(TestLessThan), R(3), | 73 B(TestLessThan), R(3), |
74 B(JumpIfFalse), U8(35), | 74 B(JumpIfFalse), U8(35), |
75 B(StackCheck), | 75 B(StackCheck), |
76 B(Ldar), R(0), | 76 B(Ldar), R(0), |
77 B(ToNumber), | 77 B(ToNumber), |
78 B(Inc), | 78 B(Inc), |
79 B(Star), R(0), | 79 B(Star), R(0), |
80 B(Ldar), R(1), | 80 B(Ldar), R(1), |
81 B(Star), R(3), | 81 B(Star), R(3), |
82 B(Ldar), R(2), | 82 B(Ldar), R(2), |
83 B(Add), R(3), | 83 B(Add), R(3), |
84 B(Star), R(4), | 84 B(Star), R(4), |
85 B(LdaSmi8), U8(12), | 85 B(LdaSmi), U8(12), |
86 B(TestEqual), R(4), | 86 B(TestEqual), R(4), |
87 B(JumpIfFalse), U8(4), | 87 B(JumpIfFalse), U8(4), |
88 B(Jump), U8(18), | 88 B(Jump), U8(18), |
89 B(Ldar), R(2), | 89 B(Ldar), R(2), |
90 B(ToNumber), | 90 B(ToNumber), |
91 B(Inc), | 91 B(Inc), |
92 B(Star), R(2), | 92 B(Star), R(2), |
93 B(Jump), U8(-41), | 93 B(Jump), U8(-41), |
94 B(Ldar), R(1), | 94 B(Ldar), R(1), |
95 B(ToNumber), | 95 B(ToNumber), |
(...skipping 24 matching lines...) Loading... |
120 B(LdaConstant), U8(0), | 120 B(LdaConstant), U8(0), |
121 B(Star), R(3), | 121 B(Star), R(3), |
122 B(Ldar), R(closure), | 122 B(Ldar), R(closure), |
123 B(Star), R(4), | 123 B(Star), R(4), |
124 B(CallRuntime), U16(Runtime::kPushBlockContext), R(3), U8(2), | 124 B(CallRuntime), U16(Runtime::kPushBlockContext), R(3), U8(2), |
125 B(PushContext), R(2), | 125 B(PushContext), R(2), |
126 B(LdaTheHole), | 126 B(LdaTheHole), |
127 B(StaContextSlot), R(context), U8(4), | 127 B(StaContextSlot), R(context), U8(4), |
128 B(CreateClosure), U8(1), U8(0), | 128 B(CreateClosure), U8(1), U8(0), |
129 B(Star), R(0), | 129 B(Star), R(0), |
130 B(LdaSmi8), U8(10), | 130 B(LdaSmi), U8(10), |
131 B(StaContextSlot), R(context), U8(4), | 131 B(StaContextSlot), R(context), U8(4), |
132 B(Ldar), R(0), | 132 B(Ldar), R(0), |
133 B(JumpIfNotHole), U8(11), | 133 B(JumpIfNotHole), U8(11), |
134 B(LdaConstant), U8(2), | 134 B(LdaConstant), U8(2), |
135 B(Star), R(3), | 135 B(Star), R(3), |
136 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 136 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
137 B(Star), R(1), | 137 B(Star), R(1), |
138 B(Jump), U8(2), | 138 B(Jump), U8(2), |
139 B(PopContext), R(2), | 139 B(PopContext), R(2), |
140 B(LdaUndefined), | 140 B(LdaUndefined), |
(...skipping 22 matching lines...) Loading... |
163 " | 163 " |
164 frame size: 6 | 164 frame size: 6 |
165 parameter count: 1 | 165 parameter count: 1 |
166 bytecode array length: 131 | 166 bytecode array length: 131 |
167 bytecodes: [ | 167 bytecodes: [ |
168 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 168 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
169 B(PushContext), R(2), | 169 B(PushContext), R(2), |
170 B(LdaTheHole), | 170 B(LdaTheHole), |
171 B(StaContextSlot), R(context), U8(4), | 171 B(StaContextSlot), R(context), U8(4), |
172 B(StackCheck), | 172 B(StackCheck), |
173 B(LdaSmi8), U8(1), | 173 B(LdaSmi), U8(1), |
174 B(StaContextSlot), R(context), U8(4), | 174 B(StaContextSlot), R(context), U8(4), |
175 B(LdaConstant), U8(0), | 175 B(LdaConstant), U8(0), |
176 B(Star), R(4), | 176 B(Star), R(4), |
177 B(Ldar), R(closure), | 177 B(Ldar), R(closure), |
178 B(Star), R(5), | 178 B(Star), R(5), |
179 B(CallRuntime), U16(Runtime::kPushBlockContext), R(4), U8(2), | 179 B(CallRuntime), U16(Runtime::kPushBlockContext), R(4), U8(2), |
180 B(PushContext), R(3), | 180 B(PushContext), R(3), |
181 B(LdaTheHole), | 181 B(LdaTheHole), |
182 B(StaContextSlot), R(context), U8(4), | 182 B(StaContextSlot), R(context), U8(4), |
183 B(CreateClosure), U8(1), U8(0), | 183 B(CreateClosure), U8(1), U8(0), |
184 B(Star), R(0), | 184 B(Star), R(0), |
185 B(LdaSmi8), U8(2), | 185 B(LdaSmi), U8(2), |
186 B(StaContextSlot), R(context), U8(4), | 186 B(StaContextSlot), R(context), U8(4), |
187 B(Ldar), R(0), | 187 B(Ldar), R(0), |
188 B(JumpIfNotHole), U8(11), | 188 B(JumpIfNotHole), U8(11), |
189 B(LdaConstant), U8(2), | 189 B(LdaConstant), U8(2), |
190 B(Star), R(4), | 190 B(Star), R(4), |
191 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 191 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
192 B(Star), R(1), | 192 B(Star), R(1), |
193 B(LdaContextSlot), R(context), U8(4), | 193 B(LdaContextSlot), R(context), U8(4), |
194 B(JumpIfNotHole), U8(11), | 194 B(JumpIfNotHole), U8(11), |
195 B(LdaConstant), U8(3), | 195 B(LdaConstant), U8(3), |
196 B(Star), R(4), | 196 B(Star), R(4), |
197 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 197 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
198 B(JumpIfToBooleanFalse), U8(6), | 198 B(JumpIfToBooleanFalse), U8(6), |
199 B(PopContext), R(3), | 199 B(PopContext), R(3), |
200 B(Jump), U8(27), | 200 B(Jump), U8(27), |
201 B(LdaSmi8), U8(3), | 201 B(LdaSmi), U8(3), |
202 B(Star), R(4), | 202 B(Star), R(4), |
203 B(LdaContextSlot), R(context), U8(4), | 203 B(LdaContextSlot), R(context), U8(4), |
204 B(JumpIfNotHole), U8(11), | 204 B(JumpIfNotHole), U8(11), |
205 B(LdaConstant), U8(3), | 205 B(LdaConstant), U8(3), |
206 B(Star), R(5), | 206 B(Star), R(5), |
207 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 207 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
208 B(Ldar), R(4), | 208 B(Ldar), R(4), |
209 B(StaContextSlot), R(context), U8(4), | 209 B(StaContextSlot), R(context), U8(4), |
210 B(PopContext), R(3), | 210 B(PopContext), R(3), |
211 B(LdaSmi8), U8(4), | 211 B(LdaSmi), U8(4), |
212 B(Star), R(4), | 212 B(Star), R(4), |
213 B(LdaContextSlot), R(context), U8(4), | 213 B(LdaContextSlot), R(context), U8(4), |
214 B(JumpIfNotHole), U8(11), | 214 B(JumpIfNotHole), U8(11), |
215 B(LdaConstant), U8(4), | 215 B(LdaConstant), U8(4), |
216 B(Star), R(5), | 216 B(Star), R(5), |
217 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 217 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
218 B(Ldar), R(4), | 218 B(Ldar), R(4), |
219 B(StaContextSlot), R(context), U8(4), | 219 B(StaContextSlot), R(context), U8(4), |
220 B(LdaUndefined), | 220 B(LdaUndefined), |
221 B(Return), | 221 B(Return), |
222 ] | 222 ] |
223 constant pool: [ | 223 constant pool: [ |
224 InstanceType::FIXED_ARRAY_TYPE, | 224 InstanceType::FIXED_ARRAY_TYPE, |
225 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 225 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
226 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 226 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
227 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 227 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
228 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 228 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
229 ] | 229 ] |
230 handlers: [ | 230 handlers: [ |
231 ] | 231 ] |
232 | 232 |
OLD | NEW |