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 for (var p of [0, 1, 2]) {} | 12 for (var p of [0, 1, 2]) {} |
13 " | 13 " |
14 frame size: 16 | 14 frame size: 16 |
15 parameter count: 1 | 15 parameter count: 1 |
16 bytecode array length: 288 | 16 bytecode array length: 288 |
17 bytecodes: [ | 17 bytecodes: [ |
18 /* 30 E> */ B(StackCheck), | 18 /* 30 E> */ B(StackCheck), |
19 B(LdrUndefined), R(4), | 19 B(LdrUndefined), R(4), |
20 B(LdaZero), | 20 B(LdaZero), |
21 B(Star), R(3), | 21 B(Star), R(3), |
22 B(Mov), R(context), R(11), | 22 B(Mov), R(context), R(11), |
23 B(Mov), R(context), R(12), | 23 B(Mov), R(context), R(12), |
24 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), | 24 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
25 B(Star), R(14), | 25 B(Star), R(14), |
26 /* 48 E> */ B(LdaConstant), U8(1), | 26 B(LdaConstant), U8(1), |
27 B(LdrKeyedProperty), R(14), U8(3), R(13), | 27 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13), |
28 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), | 28 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), |
29 /* 48 E> */ B(Star), R(1), | 29 B(Star), R(1), |
30 /* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14), | 30 /* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14), |
31 /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5), | 31 /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5), |
32 /* 45 E> */ B(Star), R(2), | 32 B(Star), R(2), |
33 B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), | 33 /* 45 E> */ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), |
34 B(ToBooleanLogicalNot), | 34 B(ToBooleanLogicalNot), |
35 B(JumpIfFalse), U8(7), | 35 B(JumpIfFalse), U8(7), |
36 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(2), U8(1), | 36 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(2), U8(1), |
37 B(LdaNamedProperty), R(2), U8(3), U8(9), | 37 B(LdaNamedProperty), R(2), U8(3), U8(9), |
38 B(JumpIfToBooleanTrue), U8(22), | 38 B(JumpIfToBooleanTrue), U8(22), |
39 B(LdaSmi), U8(2), | 39 B(LdaSmi), U8(2), |
40 B(Star), R(3), | 40 B(Star), R(3), |
41 B(LdrNamedProperty), R(2), U8(4), U8(11), R(0), | 41 B(LdrNamedProperty), R(2), U8(4), U8(11), R(0), |
42 B(Ldar), R(0), | 42 B(Ldar), R(0), |
43 /* 34 E> */ B(StackCheck), | 43 /* 34 E> */ B(StackCheck), |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 [202, 213, 215], | 148 [202, 213, 215], |
149 ] | 149 ] |
150 | 150 |
151 --- | 151 --- |
152 snippet: " | 152 snippet: " |
153 var x = 'potatoes'; | 153 var x = 'potatoes'; |
154 for (var p of x) { return p; } | 154 for (var p of x) { return p; } |
155 " | 155 " |
156 frame size: 17 | 156 frame size: 17 |
157 parameter count: 1 | 157 parameter count: 1 |
158 bytecode array length: 302 | 158 bytecode array length: 301 |
159 bytecodes: [ | 159 bytecodes: [ |
160 /* 30 E> */ B(StackCheck), | 160 /* 30 E> */ B(StackCheck), |
161 /* 42 S> */ B(LdaConstant), U8(0), | 161 /* 42 S> */ B(LdaConstant), U8(0), |
162 /* 42 E> */ B(Star), R(7), | 162 B(Star), R(7), |
163 B(LdrUndefined), R(4), | 163 B(LdrUndefined), R(4), |
164 B(LdaZero), | 164 B(LdaZero), |
165 B(Star), R(3), | 165 B(Star), R(3), |
166 B(Mov), R(context), R(12), | 166 B(Mov), R(context), R(12), |
167 B(Mov), R(context), R(13), | 167 B(Mov), R(context), R(13), |
168 /* 68 S> */ B(Nop), | 168 /* 68 S> */ B(LdaConstant), U8(1), |
169 /* 68 E> */ B(LdaConstant), U8(1), | 169 /* 68 E> */ B(LdrKeyedProperty), R(7), U8(3), R(14), |
170 B(LdrKeyedProperty), R(7), U8(3), R(14), | |
171 /* 68 E> */ B(Call), R(14), R(7), U8(1), U8(1), | 170 /* 68 E> */ B(Call), R(14), R(7), U8(1), U8(1), |
172 /* 68 E> */ B(Star), R(1), | 171 B(Star), R(1), |
173 /* 65 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(15), | 172 /* 65 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(15), |
174 /* 65 E> */ B(Call), R(15), R(1), U8(1), U8(5), | 173 /* 65 E> */ B(Call), R(15), R(1), U8(1), U8(5), |
175 /* 65 E> */ B(Star), R(2), | 174 B(Star), R(2), |
176 B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), | 175 /* 65 E> */ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), |
177 B(ToBooleanLogicalNot), | 176 B(ToBooleanLogicalNot), |
178 B(JumpIfFalse), U8(7), | 177 B(JumpIfFalse), U8(7), |
179 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(2), U8(1), | 178 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(2), U8(1), |
180 B(LdaNamedProperty), R(2), U8(3), U8(9), | 179 B(LdaNamedProperty), R(2), U8(3), U8(9), |
181 B(JumpIfToBooleanTrue), U8(27), | 180 B(JumpIfToBooleanTrue), U8(27), |
182 B(LdaSmi), U8(2), | 181 B(LdaSmi), U8(2), |
183 B(Star), R(3), | 182 B(Star), R(3), |
184 B(LdrNamedProperty), R(2), U8(4), U8(11), R(0), | 183 B(LdrNamedProperty), R(2), U8(4), U8(11), R(0), |
185 B(Ldar), R(0), | 184 B(Ldar), R(0), |
186 /* 54 E> */ B(StackCheck), | 185 /* 54 E> */ B(StackCheck), |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 InstanceType::SYMBOL_TYPE, | 285 InstanceType::SYMBOL_TYPE, |
287 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 286 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
288 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 287 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
289 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 288 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
290 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 289 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
291 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 290 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
292 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 291 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
293 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 292 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
294 ] | 293 ] |
295 handlers: [ | 294 handlers: [ |
296 [13, 127, 133], | 295 [13, 126, 132], |
297 [16, 86, 88], | 296 [16, 85, 87], |
298 [207, 218, 220], | 297 [206, 217, 219], |
299 ] | 298 ] |
300 | 299 |
301 --- | 300 --- |
302 snippet: " | 301 snippet: " |
303 for (var x of [10, 20, 30]) { | 302 for (var x of [10, 20, 30]) { |
304 if (x == 10) continue; | 303 if (x == 10) continue; |
305 if (x == 20) break; | 304 if (x == 20) break; |
306 } | 305 } |
307 " | 306 " |
308 frame size: 16 | 307 frame size: 16 |
309 parameter count: 1 | 308 parameter count: 1 |
310 bytecode array length: 304 | 309 bytecode array length: 304 |
311 bytecodes: [ | 310 bytecodes: [ |
312 /* 30 E> */ B(StackCheck), | 311 /* 30 E> */ B(StackCheck), |
313 B(LdrUndefined), R(4), | 312 B(LdrUndefined), R(4), |
314 B(LdaZero), | 313 B(LdaZero), |
315 B(Star), R(3), | 314 B(Star), R(3), |
316 B(Mov), R(context), R(11), | 315 B(Mov), R(context), R(11), |
317 B(Mov), R(context), R(12), | 316 B(Mov), R(context), R(12), |
318 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), | 317 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
319 B(Star), R(14), | 318 B(Star), R(14), |
320 /* 48 E> */ B(LdaConstant), U8(1), | 319 B(LdaConstant), U8(1), |
321 B(LdrKeyedProperty), R(14), U8(3), R(13), | 320 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13), |
322 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), | 321 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), |
323 /* 48 E> */ B(Star), R(1), | 322 B(Star), R(1), |
324 /* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14), | 323 /* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14), |
325 /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5), | 324 /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5), |
326 /* 45 E> */ B(Star), R(2), | 325 B(Star), R(2), |
327 B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), | 326 /* 45 E> */ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), |
328 B(ToBooleanLogicalNot), | 327 B(ToBooleanLogicalNot), |
329 B(JumpIfFalse), U8(7), | 328 B(JumpIfFalse), U8(7), |
330 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(2), U8(1), | 329 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(2), U8(1), |
331 B(LdaNamedProperty), R(2), U8(3), U8(9), | 330 B(LdaNamedProperty), R(2), U8(3), U8(9), |
332 B(JumpIfToBooleanTrue), U8(38), | 331 B(JumpIfToBooleanTrue), U8(38), |
333 B(LdaSmi), U8(2), | 332 B(LdaSmi), U8(2), |
334 B(Star), R(3), | 333 B(Star), R(3), |
335 B(LdrNamedProperty), R(2), U8(4), U8(11), R(0), | 334 B(LdrNamedProperty), R(2), U8(4), U8(11), R(0), |
336 B(Ldar), R(0), | 335 B(Ldar), R(0), |
337 /* 34 E> */ B(StackCheck), | 336 /* 34 E> */ B(StackCheck), |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 var x = { 'a': 1, 'b': 2 }; | 454 var x = { 'a': 1, 'b': 2 }; |
456 for (x['a'] of [1,2,3]) { return x['a']; } | 455 for (x['a'] of [1,2,3]) { return x['a']; } |
457 " | 456 " |
458 frame size: 15 | 457 frame size: 15 |
459 parameter count: 1 | 458 parameter count: 1 |
460 bytecode array length: 312 | 459 bytecode array length: 312 |
461 bytecodes: [ | 460 bytecodes: [ |
462 /* 30 E> */ B(StackCheck), | 461 /* 30 E> */ B(StackCheck), |
463 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), | 462 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
464 B(Star), R(8), | 463 B(Star), R(8), |
465 /* 42 E> */ B(Star), R(6), | 464 B(Star), R(6), |
466 B(LdrUndefined), R(3), | 465 B(LdrUndefined), R(3), |
467 B(LdaZero), | 466 B(LdaZero), |
468 B(Star), R(2), | 467 B(Star), R(2), |
469 B(Mov), R(context), R(10), | 468 B(Mov), R(context), R(10), |
470 B(Mov), R(context), R(11), | 469 B(Mov), R(context), R(11), |
471 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), | 470 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), |
472 B(Star), R(13), | 471 B(Star), R(13), |
473 /* 77 E> */ B(LdaConstant), U8(2), | 472 B(LdaConstant), U8(2), |
474 B(LdrKeyedProperty), R(13), U8(3), R(12), | 473 /* 77 E> */ B(LdrKeyedProperty), R(13), U8(3), R(12), |
475 /* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1), | 474 /* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1), |
476 /* 77 E> */ B(Star), R(0), | 475 B(Star), R(0), |
477 /* 74 S> */ B(LdrNamedProperty), R(0), U8(3), U8(7), R(13), | 476 /* 74 S> */ B(LdrNamedProperty), R(0), U8(3), U8(7), R(13), |
478 /* 74 E> */ B(Call), R(13), R(0), U8(1), U8(5), | 477 /* 74 E> */ B(Call), R(13), R(0), U8(1), U8(5), |
479 /* 74 E> */ B(Star), R(1), | 478 B(Star), R(1), |
480 B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(1), U8(1), | 479 /* 74 E> */ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(1), U8(1), |
481 B(ToBooleanLogicalNot), | 480 B(ToBooleanLogicalNot), |
482 B(JumpIfFalse), U8(7), | 481 B(JumpIfFalse), U8(7), |
483 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(1), U8(1), | 482 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(1), U8(1), |
484 B(LdaNamedProperty), R(1), U8(4), U8(9), | 483 B(LdaNamedProperty), R(1), U8(4), U8(9), |
485 B(JumpIfToBooleanTrue), U8(28), | 484 B(JumpIfToBooleanTrue), U8(28), |
486 B(LdaSmi), U8(2), | 485 B(LdaSmi), U8(2), |
487 B(Star), R(2), | 486 B(Star), R(2), |
488 /* 67 E> */ B(LdaNamedProperty), R(1), U8(5), U8(11), | 487 /* 67 E> */ B(LdaNamedProperty), R(1), U8(5), U8(11), |
489 B(StaNamedPropertySloppy), R(6), U8(6), U8(13), | 488 B(StaNamedPropertySloppy), R(6), U8(6), U8(13), |
490 /* 62 E> */ B(StackCheck), | 489 /* 62 E> */ B(StackCheck), |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 596 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
598 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 597 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
599 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 598 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
600 ] | 599 ] |
601 handlers: [ | 600 handlers: [ |
602 [17, 137, 143], | 601 [17, 137, 143], |
603 [20, 96, 98], | 602 [20, 96, 98], |
604 [217, 228, 230], | 603 [217, 228, 230], |
605 ] | 604 ] |
606 | 605 |
OLD | NEW |