Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden

Issue 2684993002: [interpreter] Create custom call opcodes for specific argument counts (Closed)
Patch Set: Fix golden files again Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 async iteration: yes 8 async iteration: yes
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 async function f() { 12 async function f() {
13 for await (let x of [1, 2, 3]) {} 13 for await (let x of [1, 2, 3]) {}
14 } 14 }
15 f(); 15 f();
16 " 16 "
17 frame size: 19 17 frame size: 19
18 parameter count: 1 18 parameter count: 1
19 bytecode array length: 1055 19 bytecode array length: 1052
20 bytecodes: [ 20 bytecodes: [
21 B(Ldar), R(new_target), 21 B(Ldar), R(new_target),
22 B(JumpIfUndefined), U8(42), 22 B(JumpIfUndefined), U8(42),
23 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 23 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
24 B(PushContext), R(4), 24 B(PushContext), R(4),
25 B(ResumeGenerator), R(new_target), 25 B(ResumeGenerator), R(new_target),
26 B(Star), R(3), 26 B(Star), R(3),
27 B(LdaZero), 27 B(LdaZero),
28 B(TestEqualStrict), R(3), U8(0), 28 B(TestEqualStrict), R(3), U8(0),
29 B(JumpIfTrue), U8(136), 29 B(JumpIfTrue), U8(134),
30 B(LdaSmi), I8(1), 30 B(LdaSmi), I8(1),
31 B(TestEqualStrict), R(3), U8(0), 31 B(TestEqualStrict), R(3), U8(0),
32 B(JumpIfTrueConstant), U8(13), 32 B(JumpIfTrueConstant), U8(13),
33 B(LdaSmi), I8(2), 33 B(LdaSmi), I8(2),
34 B(TestEqualStrict), R(3), U8(0), 34 B(TestEqualStrict), R(3), U8(0),
35 B(JumpIfTrueConstant), U8(15), 35 B(JumpIfTrueConstant), U8(15),
36 B(LdaSmi), I8(78), 36 B(LdaSmi), I8(78),
37 B(Star), R(5), 37 B(Star), R(5),
38 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), 38 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
39 B(LdaSmi), I8(-2), 39 B(LdaSmi), I8(-2),
(...skipping 19 matching lines...) Expand all
59 B(PushContext), R(1), 59 B(PushContext), R(1),
60 B(LdaTheHole), 60 B(LdaTheHole),
61 B(StaCurrentContextSlot), U8(4), 61 B(StaCurrentContextSlot), U8(4),
62 B(LdaZero), 62 B(LdaZero),
63 B(StaContextSlot), R(1), U8(9), U8(0), 63 B(StaContextSlot), R(1), U8(9), U8(0),
64 B(Mov), R(context), R(11), 64 B(Mov), R(context), R(11),
65 B(Mov), R(context), R(12), 65 B(Mov), R(context), R(12),
66 /* 43 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9), 66 /* 43 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9),
67 B(Star), R(13), 67 B(Star), R(13),
68 B(LdaNamedProperty), R(13), U8(2), U8(7), 68 B(LdaNamedProperty), R(13), U8(2), U8(7),
69 B(JumpIfUndefined), U8(18), 69 B(JumpIfUndefined), U8(17),
70 B(JumpIfNull), U8(16), 70 B(JumpIfNull), U8(15),
71 B(Star), R(14), 71 B(Star), R(14),
72 B(CallProperty), R(14), R(13), U8(1), U8(9), 72 B(CallProperty0), R(14), R(13), U8(9),
73 B(JumpIfJSReceiver), U8(24), 73 B(JumpIfJSReceiver), U8(23),
74 B(CallRuntime), U16(Runtime::kThrowSymbolAsyncIteratorInvalid), R(0), U8(0), 74 B(CallRuntime), U16(Runtime::kThrowSymbolAsyncIteratorInvalid), R(0), U8(0),
75 B(LdaNamedProperty), R(13), U8(3), U8(3), 75 B(LdaNamedProperty), R(13), U8(3), U8(3),
76 B(Star), R(14), 76 B(Star), R(14),
77 B(CallProperty), R(14), R(13), U8(1), U8(5), 77 B(CallProperty0), R(14), R(13), U8(5),
78 B(Star), R(14), 78 B(Star), R(14),
79 B(InvokeIntrinsic), U8(Runtime::k_CreateAsyncFromSyncIterator), R(14), U8(1), 79 B(InvokeIntrinsic), U8(Runtime::k_CreateAsyncFromSyncIterator), R(14), U8(1),
80 /* 43 E> */ B(StaContextSlot), R(1), U8(7), U8(0), 80 /* 43 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
81 B(LdaSmi), I8(-2), 81 B(LdaSmi), I8(-2),
82 B(TestEqual), R(3), U8(0), 82 B(TestEqual), R(3), U8(0),
83 B(JumpIfTrue), U8(17), 83 B(JumpIfTrue), U8(17),
84 B(LdaZero), 84 B(LdaZero),
85 B(TestEqualStrict), R(3), U8(0), 85 B(TestEqualStrict), R(3), U8(0),
86 B(JumpIfTrue), U8(75), 86 B(JumpIfTrue), U8(74),
87 B(LdaSmi), I8(78), 87 B(LdaSmi), I8(78),
88 B(Star), R(13), 88 B(Star), R(13),
89 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1), 89 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1),
90 /* 40 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), 90 /* 40 S> */ B(LdaContextSlot), R(1), U8(7), U8(0),
91 B(Star), R(14), 91 B(Star), R(14),
92 B(LdaNamedProperty), R(14), U8(4), U8(13), 92 B(LdaNamedProperty), R(14), U8(4), U8(13),
93 B(Star), R(13), 93 B(Star), R(13),
94 /* 40 E> */ B(CallProperty), R(13), R(14), U8(1), U8(11), 94 /* 40 E> */ B(CallProperty0), R(13), R(14), U8(11),
95 B(StaContextSlot), R(1), U8(11), U8(0), 95 B(StaContextSlot), R(1), U8(11), U8(0),
96 /* 40 S> */ B(LdaUndefined), 96 /* 40 S> */ B(LdaUndefined),
97 B(Star), R(13), 97 B(Star), R(13),
98 B(LdaImmutableContextSlot), R(1), U8(5), U8(0), 98 B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
99 B(Star), R(14), 99 B(Star), R(14),
100 B(LdaContextSlot), R(1), U8(11), U8(0), 100 B(LdaContextSlot), R(1), U8(11), U8(0),
101 B(Star), R(15), 101 B(Star), R(15),
102 B(LdaContextSlot), R(1), U8(10), U8(0), 102 B(LdaContextSlot), R(1), U8(10), U8(0),
103 B(Star), R(16), 103 B(Star), R(16),
104 B(CallJSRuntime), U8(%async_function_await_uncaught), R(13), U8( 4), 104 B(CallJSRuntime), U8(%async_function_await_uncaught), R(13), U8( 4),
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 B(Ldar), R(closure), 157 B(Ldar), R(closure),
158 B(CreateBlockContext), U8(7), 158 B(CreateBlockContext), U8(7),
159 B(PushContext), R(2), 159 B(PushContext), R(2),
160 B(LdaTheHole), 160 B(LdaTheHole),
161 B(StaCurrentContextSlot), U8(4), 161 B(StaCurrentContextSlot), U8(4),
162 B(LdaContextSlot), R(1), U8(6), U8(0), 162 B(LdaContextSlot), R(1), U8(6), U8(0),
163 B(StaCurrentContextSlot), U8(4), 163 B(StaCurrentContextSlot), U8(4),
164 B(PopContext), R(2), 164 B(PopContext), R(2),
165 B(LdaZero), 165 B(LdaZero),
166 B(StaContextSlot), R(1), U8(9), U8(0), 166 B(StaContextSlot), R(1), U8(9), U8(0),
167 B(JumpLoop), U8(226), I8(0), 167 B(JumpLoop), U8(225), I8(0),
168 B(Jump), U8(48), 168 B(Jump), U8(48),
169 B(Star), R(13), 169 B(Star), R(13),
170 B(Ldar), R(closure), 170 B(Ldar), R(closure),
171 B(CreateCatchContext), R(13), U8(8), U8(9), 171 B(CreateCatchContext), R(13), U8(8), U8(9),
172 B(Star), R(12), 172 B(Star), R(12),
173 B(LdaTheHole), 173 B(LdaTheHole),
174 B(SetPendingMessage), 174 B(SetPendingMessage),
175 B(Ldar), R(12), 175 B(Ldar), R(12),
176 B(PushContext), R(2), 176 B(PushContext), R(2),
177 B(LdaContextSlot), R(1), U8(9), U8(0), 177 B(LdaContextSlot), R(1), U8(9), U8(0),
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 SYMBOL_TYPE, 465 SYMBOL_TYPE,
466 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], 466 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
467 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 467 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
468 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 468 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
469 FIXED_ARRAY_TYPE, 469 FIXED_ARRAY_TYPE,
470 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 470 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
471 FIXED_ARRAY_TYPE, 471 FIXED_ARRAY_TYPE,
472 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 472 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
473 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 473 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
474 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 474 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
475 Smi [572], 475 Smi [569],
476 FIXED_ARRAY_TYPE, 476 FIXED_ARRAY_TYPE,
477 Smi [714], 477 Smi [711],
478 Smi [356], 478 Smi [356],
479 Smi [382], 479 Smi [382],
480 FIXED_ARRAY_TYPE, 480 FIXED_ARRAY_TYPE,
481 Smi [320], 481 Smi [320],
482 ] 482 ]
483 handlers: [ 483 handlers: [
484 [83, 962, 968], 484 [83, 959, 965],
485 [86, 908, 910], 485 [86, 905, 907],
486 [103, 432, 438], 486 [103, 429, 435],
487 [106, 384, 386], 487 [106, 381, 383],
488 [534, 661, 663], 488 [531, 658, 660],
489 ] 489 ]
490 490
491 --- 491 ---
492 snippet: " 492 snippet: "
493 async function f() { 493 async function f() {
494 for await (let x of [1, 2, 3]) { return x; } 494 for await (let x of [1, 2, 3]) { return x; }
495 } 495 }
496 f(); 496 f();
497 " 497 "
498 frame size: 19 498 frame size: 19
499 parameter count: 1 499 parameter count: 1
500 bytecode array length: 1115 500 bytecode array length: 1112
501 bytecodes: [ 501 bytecodes: [
502 B(Ldar), R(new_target), 502 B(Ldar), R(new_target),
503 B(JumpIfUndefined), U8(42), 503 B(JumpIfUndefined), U8(42),
504 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 504 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
505 B(PushContext), R(4), 505 B(PushContext), R(4),
506 B(ResumeGenerator), R(new_target), 506 B(ResumeGenerator), R(new_target),
507 B(Star), R(3), 507 B(Star), R(3),
508 B(LdaZero), 508 B(LdaZero),
509 B(TestEqualStrict), R(3), U8(0), 509 B(TestEqualStrict), R(3), U8(0),
510 B(JumpIfTrue), U8(136), 510 B(JumpIfTrue), U8(134),
511 B(LdaSmi), I8(1), 511 B(LdaSmi), I8(1),
512 B(TestEqualStrict), R(3), U8(0), 512 B(TestEqualStrict), R(3), U8(0),
513 B(JumpIfTrueConstant), U8(13), 513 B(JumpIfTrueConstant), U8(13),
514 B(LdaSmi), I8(2), 514 B(LdaSmi), I8(2),
515 B(TestEqualStrict), R(3), U8(0), 515 B(TestEqualStrict), R(3), U8(0),
516 B(JumpIfTrueConstant), U8(15), 516 B(JumpIfTrueConstant), U8(15),
517 B(LdaSmi), I8(78), 517 B(LdaSmi), I8(78),
518 B(Star), R(5), 518 B(Star), R(5),
519 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), 519 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
520 B(LdaSmi), I8(-2), 520 B(LdaSmi), I8(-2),
(...skipping 19 matching lines...) Expand all
540 B(PushContext), R(1), 540 B(PushContext), R(1),
541 B(LdaTheHole), 541 B(LdaTheHole),
542 B(StaCurrentContextSlot), U8(4), 542 B(StaCurrentContextSlot), U8(4),
543 B(LdaZero), 543 B(LdaZero),
544 B(StaContextSlot), R(1), U8(9), U8(0), 544 B(StaContextSlot), R(1), U8(9), U8(0),
545 B(Mov), R(context), R(11), 545 B(Mov), R(context), R(11),
546 B(Mov), R(context), R(12), 546 B(Mov), R(context), R(12),
547 /* 43 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9), 547 /* 43 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9),
548 B(Star), R(13), 548 B(Star), R(13),
549 B(LdaNamedProperty), R(13), U8(2), U8(7), 549 B(LdaNamedProperty), R(13), U8(2), U8(7),
550 B(JumpIfUndefined), U8(18), 550 B(JumpIfUndefined), U8(17),
551 B(JumpIfNull), U8(16), 551 B(JumpIfNull), U8(15),
552 B(Star), R(14), 552 B(Star), R(14),
553 B(CallProperty), R(14), R(13), U8(1), U8(9), 553 B(CallProperty0), R(14), R(13), U8(9),
554 B(JumpIfJSReceiver), U8(24), 554 B(JumpIfJSReceiver), U8(23),
555 B(CallRuntime), U16(Runtime::kThrowSymbolAsyncIteratorInvalid), R(0), U8(0), 555 B(CallRuntime), U16(Runtime::kThrowSymbolAsyncIteratorInvalid), R(0), U8(0),
556 B(LdaNamedProperty), R(13), U8(3), U8(3), 556 B(LdaNamedProperty), R(13), U8(3), U8(3),
557 B(Star), R(14), 557 B(Star), R(14),
558 B(CallProperty), R(14), R(13), U8(1), U8(5), 558 B(CallProperty0), R(14), R(13), U8(5),
559 B(Star), R(14), 559 B(Star), R(14),
560 B(InvokeIntrinsic), U8(Runtime::k_CreateAsyncFromSyncIterator), R(14), U8(1), 560 B(InvokeIntrinsic), U8(Runtime::k_CreateAsyncFromSyncIterator), R(14), U8(1),
561 /* 43 E> */ B(StaContextSlot), R(1), U8(7), U8(0), 561 /* 43 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
562 B(LdaSmi), I8(-2), 562 B(LdaSmi), I8(-2),
563 B(TestEqual), R(3), U8(0), 563 B(TestEqual), R(3), U8(0),
564 B(JumpIfTrue), U8(17), 564 B(JumpIfTrue), U8(17),
565 B(LdaZero), 565 B(LdaZero),
566 B(TestEqualStrict), R(3), U8(0), 566 B(TestEqualStrict), R(3), U8(0),
567 B(JumpIfTrue), U8(75), 567 B(JumpIfTrue), U8(74),
568 B(LdaSmi), I8(78), 568 B(LdaSmi), I8(78),
569 B(Star), R(13), 569 B(Star), R(13),
570 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1), 570 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1),
571 /* 40 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), 571 /* 40 S> */ B(LdaContextSlot), R(1), U8(7), U8(0),
572 B(Star), R(14), 572 B(Star), R(14),
573 B(LdaNamedProperty), R(14), U8(4), U8(13), 573 B(LdaNamedProperty), R(14), U8(4), U8(13),
574 B(Star), R(13), 574 B(Star), R(13),
575 /* 40 E> */ B(CallProperty), R(13), R(14), U8(1), U8(11), 575 /* 40 E> */ B(CallProperty0), R(13), R(14), U8(11),
576 B(StaContextSlot), R(1), U8(11), U8(0), 576 B(StaContextSlot), R(1), U8(11), U8(0),
577 /* 40 S> */ B(LdaUndefined), 577 /* 40 S> */ B(LdaUndefined),
578 B(Star), R(13), 578 B(Star), R(13),
579 B(LdaImmutableContextSlot), R(1), U8(5), U8(0), 579 B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
580 B(Star), R(14), 580 B(Star), R(14),
581 B(LdaContextSlot), R(1), U8(11), U8(0), 581 B(LdaContextSlot), R(1), U8(11), U8(0),
582 B(Star), R(15), 582 B(Star), R(15),
583 B(LdaContextSlot), R(1), U8(10), U8(0), 583 B(LdaContextSlot), R(1), U8(10), U8(0),
584 B(Star), R(16), 584 B(Star), R(16),
585 B(CallJSRuntime), U8(%async_function_await_uncaught), R(13), U8( 4), 585 B(CallJSRuntime), U8(%async_function_await_uncaught), R(13), U8( 4),
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 SYMBOL_TYPE, 975 SYMBOL_TYPE,
976 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], 976 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
977 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 977 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
978 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 978 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
979 FIXED_ARRAY_TYPE, 979 FIXED_ARRAY_TYPE,
980 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 980 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
981 FIXED_ARRAY_TYPE, 981 FIXED_ARRAY_TYPE,
982 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 982 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
983 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 983 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
984 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 984 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
985 Smi [584], 985 Smi [581],
986 FIXED_ARRAY_TYPE, 986 FIXED_ARRAY_TYPE,
987 Smi [726], 987 Smi [723],
988 Smi [356], 988 Smi [356],
989 Smi [382], 989 Smi [382],
990 FIXED_ARRAY_TYPE, 990 FIXED_ARRAY_TYPE,
991 Smi [344], 991 Smi [344],
992 ] 992 ]
993 handlers: [ 993 handlers: [
994 [83, 998, 1004], 994 [83, 995, 1001],
995 [86, 944, 946], 995 [86, 941, 943],
996 [103, 444, 450], 996 [103, 441, 447],
997 [106, 396, 398], 997 [106, 393, 395],
998 [546, 673, 675], 998 [543, 670, 672],
999 ] 999 ]
1000 1000
1001 --- 1001 ---
1002 snippet: " 1002 snippet: "
1003 async function f() { 1003 async function f() {
1004 for await (let x of [10, 20, 30]) { 1004 for await (let x of [10, 20, 30]) {
1005 if (x == 10) continue; 1005 if (x == 10) continue;
1006 if (x == 20) break; 1006 if (x == 20) break;
1007 } 1007 }
1008 } 1008 }
1009 f(); 1009 f();
1010 " 1010 "
1011 frame size: 19 1011 frame size: 19
1012 parameter count: 1 1012 parameter count: 1
1013 bytecode array length: 1092 1013 bytecode array length: 1089
1014 bytecodes: [ 1014 bytecodes: [
1015 B(Ldar), R(new_target), 1015 B(Ldar), R(new_target),
1016 B(JumpIfUndefined), U8(42), 1016 B(JumpIfUndefined), U8(42),
1017 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 1017 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
1018 B(PushContext), R(4), 1018 B(PushContext), R(4),
1019 B(ResumeGenerator), R(new_target), 1019 B(ResumeGenerator), R(new_target),
1020 B(Star), R(3), 1020 B(Star), R(3),
1021 B(LdaZero), 1021 B(LdaZero),
1022 B(TestEqualStrict), R(3), U8(0), 1022 B(TestEqualStrict), R(3), U8(0),
1023 B(JumpIfTrue), U8(136), 1023 B(JumpIfTrue), U8(134),
1024 B(LdaSmi), I8(1), 1024 B(LdaSmi), I8(1),
1025 B(TestEqualStrict), R(3), U8(0), 1025 B(TestEqualStrict), R(3), U8(0),
1026 B(JumpIfTrueConstant), U8(13), 1026 B(JumpIfTrueConstant), U8(13),
1027 B(LdaSmi), I8(2), 1027 B(LdaSmi), I8(2),
1028 B(TestEqualStrict), R(3), U8(0), 1028 B(TestEqualStrict), R(3), U8(0),
1029 B(JumpIfTrueConstant), U8(15), 1029 B(JumpIfTrueConstant), U8(15),
1030 B(LdaSmi), I8(78), 1030 B(LdaSmi), I8(78),
1031 B(Star), R(5), 1031 B(Star), R(5),
1032 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), 1032 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
1033 B(LdaSmi), I8(-2), 1033 B(LdaSmi), I8(-2),
(...skipping 19 matching lines...) Expand all
1053 B(PushContext), R(1), 1053 B(PushContext), R(1),
1054 B(LdaTheHole), 1054 B(LdaTheHole),
1055 B(StaCurrentContextSlot), U8(4), 1055 B(StaCurrentContextSlot), U8(4),
1056 B(LdaZero), 1056 B(LdaZero),
1057 B(StaContextSlot), R(1), U8(9), U8(0), 1057 B(StaContextSlot), R(1), U8(9), U8(0),
1058 B(Mov), R(context), R(11), 1058 B(Mov), R(context), R(11),
1059 B(Mov), R(context), R(12), 1059 B(Mov), R(context), R(12),
1060 /* 43 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9), 1060 /* 43 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9),
1061 B(Star), R(13), 1061 B(Star), R(13),
1062 B(LdaNamedProperty), R(13), U8(2), U8(7), 1062 B(LdaNamedProperty), R(13), U8(2), U8(7),
1063 B(JumpIfUndefined), U8(18), 1063 B(JumpIfUndefined), U8(17),
1064 B(JumpIfNull), U8(16), 1064 B(JumpIfNull), U8(15),
1065 B(Star), R(14), 1065 B(Star), R(14),
1066 B(CallProperty), R(14), R(13), U8(1), U8(9), 1066 B(CallProperty0), R(14), R(13), U8(9),
1067 B(JumpIfJSReceiver), U8(24), 1067 B(JumpIfJSReceiver), U8(23),
1068 B(CallRuntime), U16(Runtime::kThrowSymbolAsyncIteratorInvalid), R(0), U8(0), 1068 B(CallRuntime), U16(Runtime::kThrowSymbolAsyncIteratorInvalid), R(0), U8(0),
1069 B(LdaNamedProperty), R(13), U8(3), U8(3), 1069 B(LdaNamedProperty), R(13), U8(3), U8(3),
1070 B(Star), R(14), 1070 B(Star), R(14),
1071 B(CallProperty), R(14), R(13), U8(1), U8(5), 1071 B(CallProperty0), R(14), R(13), U8(5),
1072 B(Star), R(14), 1072 B(Star), R(14),
1073 B(InvokeIntrinsic), U8(Runtime::k_CreateAsyncFromSyncIterator), R(14), U8(1), 1073 B(InvokeIntrinsic), U8(Runtime::k_CreateAsyncFromSyncIterator), R(14), U8(1),
1074 /* 43 E> */ B(StaContextSlot), R(1), U8(7), U8(0), 1074 /* 43 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
1075 B(LdaSmi), I8(-2), 1075 B(LdaSmi), I8(-2),
1076 B(TestEqual), R(3), U8(0), 1076 B(TestEqual), R(3), U8(0),
1077 B(JumpIfTrue), U8(17), 1077 B(JumpIfTrue), U8(17),
1078 B(LdaZero), 1078 B(LdaZero),
1079 B(TestEqualStrict), R(3), U8(0), 1079 B(TestEqualStrict), R(3), U8(0),
1080 B(JumpIfTrue), U8(75), 1080 B(JumpIfTrue), U8(74),
1081 B(LdaSmi), I8(78), 1081 B(LdaSmi), I8(78),
1082 B(Star), R(13), 1082 B(Star), R(13),
1083 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1), 1083 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1),
1084 /* 40 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), 1084 /* 40 S> */ B(LdaContextSlot), R(1), U8(7), U8(0),
1085 B(Star), R(14), 1085 B(Star), R(14),
1086 B(LdaNamedProperty), R(14), U8(4), U8(13), 1086 B(LdaNamedProperty), R(14), U8(4), U8(13),
1087 B(Star), R(13), 1087 B(Star), R(13),
1088 /* 40 E> */ B(CallProperty), R(13), R(14), U8(1), U8(11), 1088 /* 40 E> */ B(CallProperty0), R(13), R(14), U8(11),
1089 B(StaContextSlot), R(1), U8(11), U8(0), 1089 B(StaContextSlot), R(1), U8(11), U8(0),
1090 /* 40 S> */ B(LdaUndefined), 1090 /* 40 S> */ B(LdaUndefined),
1091 B(Star), R(13), 1091 B(Star), R(13),
1092 B(LdaImmutableContextSlot), R(1), U8(5), U8(0), 1092 B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
1093 B(Star), R(14), 1093 B(Star), R(14),
1094 B(LdaContextSlot), R(1), U8(11), U8(0), 1094 B(LdaContextSlot), R(1), U8(11), U8(0),
1095 B(Star), R(15), 1095 B(Star), R(15),
1096 B(LdaContextSlot), R(1), U8(10), U8(0), 1096 B(LdaContextSlot), R(1), U8(10), U8(0),
1097 B(Star), R(16), 1097 B(Star), R(16),
1098 B(CallJSRuntime), U8(%async_function_await_uncaught), R(13), U8( 4), 1098 B(CallJSRuntime), U8(%async_function_await_uncaught), R(13), U8( 4),
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 B(Star), R(13), 1167 B(Star), R(13),
1168 B(LdaSmi), I8(20), 1168 B(LdaSmi), I8(20),
1169 /* 96 E> */ B(TestEqual), R(13), U8(20), 1169 /* 96 E> */ B(TestEqual), R(13), U8(20),
1170 B(JumpIfFalse), U8(8), 1170 B(JumpIfFalse), U8(8),
1171 /* 103 S> */ B(PopContext), R(2), 1171 /* 103 S> */ B(PopContext), R(2),
1172 B(PopContext), R(2), 1172 B(PopContext), R(2),
1173 B(Jump), U8(15), 1173 B(Jump), U8(15),
1174 B(PopContext), R(2), 1174 B(PopContext), R(2),
1175 B(LdaZero), 1175 B(LdaZero),
1176 B(StaContextSlot), R(1), U8(9), U8(0), 1176 B(StaContextSlot), R(1), U8(9), U8(0),
1177 B(Wide), B(JumpLoop), U16(261), I16(0), 1177 B(Wide), B(JumpLoop), U16(260), I16(0),
1178 B(Jump), U8(48), 1178 B(Jump), U8(48),
1179 B(Star), R(13), 1179 B(Star), R(13),
1180 B(Ldar), R(closure), 1180 B(Ldar), R(closure),
1181 B(CreateCatchContext), R(13), U8(8), U8(9), 1181 B(CreateCatchContext), R(13), U8(8), U8(9),
1182 B(Star), R(12), 1182 B(Star), R(12),
1183 B(LdaTheHole), 1183 B(LdaTheHole),
1184 B(SetPendingMessage), 1184 B(SetPendingMessage),
1185 B(Ldar), R(12), 1185 B(Ldar), R(12),
1186 B(PushContext), R(2), 1186 B(PushContext), R(2),
1187 B(LdaContextSlot), R(1), U8(9), U8(0), 1187 B(LdaContextSlot), R(1), U8(9), U8(0),
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 SYMBOL_TYPE, 1475 SYMBOL_TYPE,
1476 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], 1476 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
1477 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 1477 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
1478 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 1478 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
1479 FIXED_ARRAY_TYPE, 1479 FIXED_ARRAY_TYPE,
1480 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 1480 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
1481 FIXED_ARRAY_TYPE, 1481 FIXED_ARRAY_TYPE,
1482 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 1482 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
1483 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 1483 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
1484 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 1484 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
1485 Smi [609], 1485 Smi [606],
1486 FIXED_ARRAY_TYPE, 1486 FIXED_ARRAY_TYPE,
1487 Smi [751], 1487 Smi [748],
1488 Smi [356], 1488 Smi [356],
1489 Smi [382], 1489 Smi [382],
1490 FIXED_ARRAY_TYPE, 1490 FIXED_ARRAY_TYPE,
1491 Smi [320], 1491 Smi [320],
1492 ] 1492 ]
1493 handlers: [ 1493 handlers: [
1494 [83, 999, 1005], 1494 [83, 996, 1002],
1495 [86, 945, 947], 1495 [86, 942, 944],
1496 [103, 469, 475], 1496 [103, 466, 472],
1497 [106, 421, 423], 1497 [106, 418, 420],
1498 [571, 698, 700], 1498 [568, 695, 697],
1499 ] 1499 ]
1500 1500
1501 --- 1501 ---
1502 snippet: " 1502 snippet: "
1503 async function f() { 1503 async function f() {
1504 var x = { 'a': 1, 'b': 2 }; 1504 var x = { 'a': 1, 'b': 2 };
1505 for (x['a'] of [1,2,3]) { return x['a']; } 1505 for (x['a'] of [1,2,3]) { return x['a']; }
1506 } 1506 }
1507 f(); 1507 f();
1508 " 1508 "
1509 frame size: 14 1509 frame size: 14
1510 parameter count: 1 1510 parameter count: 1
1511 bytecode array length: 596 1511 bytecode array length: 594
1512 bytecodes: [ 1512 bytecodes: [
1513 B(Ldar), R(new_target), 1513 B(Ldar), R(new_target),
1514 B(JumpIfUndefined), U8(22), 1514 B(JumpIfUndefined), U8(22),
1515 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 1515 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
1516 B(PushContext), R(3), 1516 B(PushContext), R(3),
1517 B(ResumeGenerator), R(new_target), 1517 B(ResumeGenerator), R(new_target),
1518 B(Star), R(2), 1518 B(Star), R(2),
1519 B(LdaSmi), I8(78), 1519 B(LdaSmi), I8(78),
1520 B(Star), R(4), 1520 B(Star), R(4),
1521 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 1521 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
(...skipping 19 matching lines...) Expand all
1541 B(Ldar), R(8), 1541 B(Ldar), R(8),
1542 /* 31 E> */ B(StaCurrentContextSlot), U8(6), 1542 /* 31 E> */ B(StaCurrentContextSlot), U8(6),
1543 B(LdaZero), 1543 B(LdaZero),
1544 B(StaCurrentContextSlot), U8(9), 1544 B(StaCurrentContextSlot), U8(9),
1545 B(Mov), R(context), R(10), 1545 B(Mov), R(context), R(10),
1546 B(Mov), R(context), R(11), 1546 B(Mov), R(context), R(11),
1547 /* 68 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(9), 1547 /* 68 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(9),
1548 B(Star), R(12), 1548 B(Star), R(12),
1549 B(LdaNamedProperty), R(12), U8(2), U8(4), 1549 B(LdaNamedProperty), R(12), U8(2), U8(4),
1550 B(Star), R(13), 1550 B(Star), R(13),
1551 B(CallProperty), R(13), R(12), U8(1), U8(6), 1551 B(CallProperty0), R(13), R(12), U8(6),
1552 B(JumpIfJSReceiver), U8(7), 1552 B(JumpIfJSReceiver), U8(7),
1553 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0), 1553 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
1554 /* 68 E> */ B(StaCurrentContextSlot), U8(7), 1554 /* 68 E> */ B(StaCurrentContextSlot), U8(7),
1555 /* 65 S> */ B(LdaCurrentContextSlot), U8(7), 1555 /* 65 S> */ B(LdaCurrentContextSlot), U8(7),
1556 B(Star), R(13), 1556 B(Star), R(13),
1557 B(LdaNamedProperty), R(13), U8(3), U8(10), 1557 B(LdaNamedProperty), R(13), U8(3), U8(10),
1558 B(Star), R(12), 1558 B(Star), R(12),
1559 /* 65 E> */ B(CallProperty), R(12), R(13), U8(1), U8(8), 1559 /* 65 E> */ B(CallProperty0), R(12), R(13), U8(8),
1560 /* 65 E> */ B(StaCurrentContextSlot), U8(8), 1560 /* 65 E> */ B(StaCurrentContextSlot), U8(8),
1561 B(Star), R(12), 1561 B(Star), R(12),
1562 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), 1562 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1),
1563 B(ToBooleanLogicalNot), 1563 B(ToBooleanLogicalNot),
1564 B(JumpIfFalse), U8(11), 1564 B(JumpIfFalse), U8(11),
1565 B(LdaCurrentContextSlot), U8(8), 1565 B(LdaCurrentContextSlot), U8(8),
1566 B(Star), R(12), 1566 B(Star), R(12),
1567 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (12), U8(1), 1567 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (12), U8(1),
1568 B(LdaCurrentContextSlot), U8(8), 1568 B(LdaCurrentContextSlot), U8(8),
1569 B(Star), R(12), 1569 B(Star), R(12),
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 1787 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
1788 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 1788 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
1789 FIXED_ARRAY_TYPE, 1789 FIXED_ARRAY_TYPE,
1790 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 1790 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
1791 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 1791 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
1792 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 1792 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
1793 FIXED_ARRAY_TYPE, 1793 FIXED_ARRAY_TYPE,
1794 FIXED_ARRAY_TYPE, 1794 FIXED_ARRAY_TYPE,
1795 ] 1795 ]
1796 handlers: [ 1796 handlers: [
1797 [63, 509, 515], 1797 [63, 507, 513],
1798 [66, 455, 457], 1798 [66, 453, 455],
1799 [81, 243, 249], 1799 [81, 241, 247],
1800 [84, 195, 197], 1800 [84, 193, 195],
1801 [333, 345, 347], 1801 [331, 343, 345],
1802 ] 1802 ]
1803 1803
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Eval.golden ('k') | test/cctest/interpreter/bytecode_expectations/ForOf.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698