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

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

Issue 2861983002: [ignition] Optimize JSGenerator creation (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Modules.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8
9 --- 9 ---
10 snippet: " 10 snippet: "
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 --- 279 ---
280 snippet: " 280 snippet: "
281 function* f() { 281 function* f() {
282 for (let x = 0; x < 10; ++x) { let y = x; } 282 for (let x = 0; x < 10; ++x) { let y = x; }
283 } 283 }
284 f(); 284 f();
285 " 285 "
286 frame size: 15 286 frame size: 15
287 parameter count: 1 287 parameter count: 1
288 bytecode array length: 357 288 bytecode array length: 356
289 bytecodes: [ 289 bytecodes: [
290 B(Ldar), R(new_target), 290 B(Ldar), R(new_target),
291 B(JumpIfUndefined), U8(27), 291 B(JumpIfUndefined), U8(27),
292 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 292 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
293 B(PushContext), R(5), 293 B(PushContext), R(5),
294 B(ResumeGenerator), R(new_target), 294 B(ResumeGenerator), R(new_target),
295 B(Star), R(4), 295 B(Star), R(4),
296 B(LdaZero), 296 B(LdaZero),
297 B(TestEqualStrictNoFeedback), R(4), 297 B(TestEqualStrictNoFeedback), R(4),
298 B(JumpIfTrue), U8(54), 298 B(JumpIfTrue), U8(53),
299 B(LdaSmi), I8(79), 299 B(LdaSmi), I8(79),
300 B(Star), R(6), 300 B(Star), R(6),
301 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), 301 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1),
302 B(LdaSmi), I8(-2), 302 B(LdaSmi), I8(-2),
303 B(Star), R(4), 303 B(Star), R(4),
304 B(CreateFunctionContext), U8(5), 304 B(CreateFunctionContext), U8(5),
305 B(PushContext), R(0), 305 B(PushContext), R(0),
306 B(Ldar), R(this), 306 B(Ldar), R(this),
307 B(StaCurrentContextSlot), U8(4), 307 B(StaCurrentContextSlot), U8(4),
308 /* 11 E> */ B(StackCheck), 308 /* 11 E> */ B(StackCheck),
309 B(Mov), R(context), R(8), 309 B(Mov), R(context), R(8),
310 B(LdaImmutableCurrentContextSlot), U8(4), 310 B(LdaImmutableCurrentContextSlot), U8(4),
311 B(Star), R(10), 311 B(Star), R(10),
312 B(Mov), R(closure), R(9), 312 B(Mov), R(closure), R(9),
313 /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(9), U8 (2), 313 /* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(9) , U8(2),
314 B(StaCurrentContextSlot), U8(5), 314 B(StaCurrentContextSlot), U8(5),
315 B(Star), R(9), 315 B(Star), R(9),
316 B(LdaImmutableCurrentContextSlot), U8(5), 316 B(LdaImmutableCurrentContextSlot), U8(5),
317 B(Star), R(10), 317 B(Star), R(10),
318 B(LdaZero), 318 B(LdaZero),
319 B(SuspendGenerator), R(10), U8(0), 319 B(SuspendGenerator), R(10), U8(0),
320 B(Ldar), R(9), 320 B(Ldar), R(9),
321 /* 62 S> */ B(Return), 321 /* 62 S> */ B(Return),
322 B(LdaSmi), I8(-2), 322 B(LdaSmi), I8(-2),
323 B(Star), R(4), 323 B(Star), R(4),
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 B(ReThrow), 452 B(ReThrow),
453 B(LdaUndefined), 453 B(LdaUndefined),
454 /* 62 S> */ B(Return), 454 /* 62 S> */ B(Return),
455 ] 455 ]
456 constant pool: [ 456 constant pool: [
457 FIXED_ARRAY_TYPE, 457 FIXED_ARRAY_TYPE,
458 FIXED_ARRAY_TYPE, 458 FIXED_ARRAY_TYPE,
459 FIXED_ARRAY_TYPE, 459 FIXED_ARRAY_TYPE,
460 ] 460 ]
461 handlers: [ 461 handlers: [
462 [45, 299, 305], 462 [45, 298, 304],
463 ] 463 ]
464 464
465 --- 465 ---
466 snippet: " 466 snippet: "
467 function* f() { 467 function* f() {
468 for (let x = 0; x < 10; ++x) yield x; 468 for (let x = 0; x < 10; ++x) yield x;
469 } 469 }
470 f(); 470 f();
471 " 471 "
472 frame size: 14 472 frame size: 14
473 parameter count: 1 473 parameter count: 1
474 bytecode array length: 484 474 bytecode array length: 483
475 bytecodes: [ 475 bytecodes: [
476 B(Ldar), R(new_target), 476 B(Ldar), R(new_target),
477 B(JumpIfUndefined), U8(33), 477 B(JumpIfUndefined), U8(33),
478 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 478 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
479 B(PushContext), R(4), 479 B(PushContext), R(4),
480 B(ResumeGenerator), R(new_target), 480 B(ResumeGenerator), R(new_target),
481 B(Star), R(3), 481 B(Star), R(3),
482 B(LdaZero), 482 B(LdaZero),
483 B(TestEqualStrictNoFeedback), R(3), 483 B(TestEqualStrictNoFeedback), R(3),
484 B(JumpIfTrue), U8(60), 484 B(JumpIfTrue), U8(59),
485 B(LdaSmi), I8(1), 485 B(LdaSmi), I8(1),
486 B(TestEqualStrictNoFeedback), R(3), 486 B(TestEqualStrictNoFeedback), R(3),
487 B(JumpIfTrue), U8(129), 487 B(JumpIfTrue), U8(128),
488 B(LdaSmi), I8(79), 488 B(LdaSmi), I8(79),
489 B(Star), R(5), 489 B(Star), R(5),
490 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), 490 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
491 B(LdaSmi), I8(-2), 491 B(LdaSmi), I8(-2),
492 B(Star), R(3), 492 B(Star), R(3),
493 B(CreateFunctionContext), U8(5), 493 B(CreateFunctionContext), U8(5),
494 B(PushContext), R(0), 494 B(PushContext), R(0),
495 B(Ldar), R(this), 495 B(Ldar), R(this),
496 B(StaCurrentContextSlot), U8(4), 496 B(StaCurrentContextSlot), U8(4),
497 /* 11 E> */ B(StackCheck), 497 /* 11 E> */ B(StackCheck),
498 B(Mov), R(context), R(7), 498 B(Mov), R(context), R(7),
499 B(LdaImmutableCurrentContextSlot), U8(4), 499 B(LdaImmutableCurrentContextSlot), U8(4),
500 B(Star), R(9), 500 B(Star), R(9),
501 B(Mov), R(closure), R(8), 501 B(Mov), R(closure), R(8),
502 /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(8), U8 (2), 502 /* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(8) , U8(2),
503 B(StaCurrentContextSlot), U8(5), 503 B(StaCurrentContextSlot), U8(5),
504 B(Star), R(8), 504 B(Star), R(8),
505 B(LdaImmutableCurrentContextSlot), U8(5), 505 B(LdaImmutableCurrentContextSlot), U8(5),
506 B(Star), R(9), 506 B(Star), R(9),
507 B(LdaZero), 507 B(LdaZero),
508 B(SuspendGenerator), R(9), U8(0), 508 B(SuspendGenerator), R(9), U8(0),
509 B(Ldar), R(8), 509 B(Ldar), R(8),
510 /* 56 S> */ B(Return), 510 /* 56 S> */ B(Return),
511 B(LdaSmi), I8(-2), 511 B(LdaSmi), I8(-2),
512 B(Star), R(3), 512 B(Star), R(3),
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 B(ReThrow), 695 B(ReThrow),
696 B(LdaUndefined), 696 B(LdaUndefined),
697 /* 56 S> */ B(Return), 697 /* 56 S> */ B(Return),
698 ] 698 ]
699 constant pool: [ 699 constant pool: [
700 FIXED_ARRAY_TYPE, 700 FIXED_ARRAY_TYPE,
701 FIXED_ARRAY_TYPE, 701 FIXED_ARRAY_TYPE,
702 Smi [305], 702 Smi [305],
703 ] 703 ]
704 handlers: [ 704 handlers: [
705 [51, 417, 423], 705 [51, 416, 422],
706 ] 706 ]
707 707
708 --- 708 ---
709 snippet: " 709 snippet: "
710 async function f() { 710 async function f() {
711 for (let x = 0; x < 10; ++x) { let y = x; } 711 for (let x = 0; x < 10; ++x) { let y = x; }
712 } 712 }
713 f(); 713 f();
714 " 714 "
715 frame size: 14 715 frame size: 14
716 parameter count: 1 716 parameter count: 1
717 bytecode array length: 361 717 bytecode array length: 360
718 bytecodes: [ 718 bytecodes: [
719 B(Ldar), R(new_target), 719 B(Ldar), R(new_target),
720 B(JumpIfUndefined), U8(22), 720 B(JumpIfUndefined), U8(22),
721 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 721 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
722 B(PushContext), R(5), 722 B(PushContext), R(5),
723 B(ResumeGenerator), R(new_target), 723 B(ResumeGenerator), R(new_target),
724 B(Star), R(4), 724 B(Star), R(4),
725 B(LdaSmi), I8(79), 725 B(LdaSmi), I8(79),
726 B(Star), R(6), 726 B(Star), R(6),
727 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), 727 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1),
728 B(LdaSmi), I8(-2), 728 B(LdaSmi), I8(-2),
729 B(Star), R(4), 729 B(Star), R(4),
730 B(CreateFunctionContext), U8(6), 730 B(CreateFunctionContext), U8(6),
731 B(PushContext), R(0), 731 B(PushContext), R(0),
732 B(Ldar), R(this), 732 B(Ldar), R(this),
733 B(StaCurrentContextSlot), U8(4), 733 B(StaCurrentContextSlot), U8(4),
734 /* 16 E> */ B(StackCheck), 734 /* 16 E> */ B(StackCheck),
735 B(LdaImmutableCurrentContextSlot), U8(4), 735 B(LdaImmutableCurrentContextSlot), U8(4),
736 B(Star), R(7), 736 B(Star), R(7),
737 B(Mov), R(closure), R(6), 737 B(Mov), R(closure), R(6),
738 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(6), U8 (2), 738 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6) , U8(2),
739 B(StaCurrentContextSlot), U8(5), 739 B(StaCurrentContextSlot), U8(5),
740 B(LdaUndefined), 740 B(LdaUndefined),
741 B(Star), R(6), 741 B(Star), R(6),
742 B(CallJSRuntime), U8(%async_function_promise_create), R(6), U8(1 ), 742 B(CallJSRuntime), U8(%async_function_promise_create), R(6), U8(1 ),
743 B(StaCurrentContextSlot), U8(9), 743 B(StaCurrentContextSlot), U8(9),
744 B(Mov), R(context), R(8), 744 B(Mov), R(context), R(8),
745 B(Mov), R(context), R(9), 745 B(Mov), R(context), R(9),
746 B(Ldar), R(closure), 746 B(Ldar), R(closure),
747 B(CreateBlockContext), U8(0), 747 B(CreateBlockContext), U8(0),
748 B(PushContext), R(1), 748 B(PushContext), R(1),
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 /* 67 S> */ B(Return), 885 /* 67 S> */ B(Return),
886 ] 886 ]
887 constant pool: [ 887 constant pool: [
888 FIXED_ARRAY_TYPE, 888 FIXED_ARRAY_TYPE,
889 FIXED_ARRAY_TYPE, 889 FIXED_ARRAY_TYPE,
890 FIXED_ARRAY_TYPE, 890 FIXED_ARRAY_TYPE,
891 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 891 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
892 FIXED_ARRAY_TYPE, 892 FIXED_ARRAY_TYPE,
893 ] 893 ]
894 handlers: [ 894 handlers: [
895 [63, 301, 307], 895 [62, 300, 306],
896 [66, 247, 249], 896 [65, 246, 248],
897 ] 897 ]
898 898
899 --- 899 ---
900 snippet: " 900 snippet: "
901 async function f() { 901 async function f() {
902 for (let x = 0; x < 10; ++x) await x; 902 for (let x = 0; x < 10; ++x) await x;
903 } 903 }
904 f(); 904 f();
905 " 905 "
906 frame size: 15 906 frame size: 15
907 parameter count: 1 907 parameter count: 1
908 bytecode array length: 515 908 bytecode array length: 514
909 bytecodes: [ 909 bytecodes: [
910 B(Ldar), R(new_target), 910 B(Ldar), R(new_target),
911 B(JumpIfUndefined), U8(27), 911 B(JumpIfUndefined), U8(27),
912 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 912 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
913 B(PushContext), R(4), 913 B(PushContext), R(4),
914 B(ResumeGenerator), R(new_target), 914 B(ResumeGenerator), R(new_target),
915 B(Star), R(3), 915 B(Star), R(3),
916 B(LdaZero), 916 B(LdaZero),
917 B(TestEqualStrictNoFeedback), R(3), 917 B(TestEqualStrictNoFeedback), R(3),
918 B(JumpIfTrue), U8(77), 918 B(JumpIfTrue), U8(76),
919 B(LdaSmi), I8(79), 919 B(LdaSmi), I8(79),
920 B(Star), R(5), 920 B(Star), R(5),
921 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), 921 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
922 B(LdaSmi), I8(-2), 922 B(LdaSmi), I8(-2),
923 B(Star), R(3), 923 B(Star), R(3),
924 B(CreateFunctionContext), U8(7), 924 B(CreateFunctionContext), U8(7),
925 B(PushContext), R(0), 925 B(PushContext), R(0),
926 B(Ldar), R(this), 926 B(Ldar), R(this),
927 B(StaCurrentContextSlot), U8(4), 927 B(StaCurrentContextSlot), U8(4),
928 /* 16 E> */ B(StackCheck), 928 /* 16 E> */ B(StackCheck),
929 B(LdaImmutableCurrentContextSlot), U8(4), 929 B(LdaImmutableCurrentContextSlot), U8(4),
930 B(Star), R(6), 930 B(Star), R(6),
931 B(Mov), R(closure), R(5), 931 B(Mov), R(closure), R(5),
932 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2), 932 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5) , U8(2),
933 B(StaCurrentContextSlot), U8(5), 933 B(StaCurrentContextSlot), U8(5),
934 B(LdaUndefined), 934 B(LdaUndefined),
935 B(Star), R(5), 935 B(Star), R(5),
936 B(CallJSRuntime), U8(%async_function_promise_create), R(5), U8(1 ), 936 B(CallJSRuntime), U8(%async_function_promise_create), R(5), U8(1 ),
937 B(StaCurrentContextSlot), U8(7), 937 B(StaCurrentContextSlot), U8(7),
938 B(Mov), R(context), R(7), 938 B(Mov), R(context), R(7),
939 B(Mov), R(context), R(8), 939 B(Mov), R(context), R(8),
940 B(Ldar), R(closure), 940 B(Ldar), R(closure),
941 B(CreateBlockContext), U8(0), 941 B(CreateBlockContext), U8(0),
942 B(PushContext), R(1), 942 B(PushContext), R(1),
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 B(LdaUndefined), 1141 B(LdaUndefined),
1142 /* 61 S> */ B(Return), 1142 /* 61 S> */ B(Return),
1143 ] 1143 ]
1144 constant pool: [ 1144 constant pool: [
1145 FIXED_ARRAY_TYPE, 1145 FIXED_ARRAY_TYPE,
1146 FIXED_ARRAY_TYPE, 1146 FIXED_ARRAY_TYPE,
1147 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 1147 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
1148 FIXED_ARRAY_TYPE, 1148 FIXED_ARRAY_TYPE,
1149 ] 1149 ]
1150 handlers: [ 1150 handlers: [
1151 [68, 446, 452], 1151 [67, 445, 451],
1152 [71, 392, 394], 1152 [70, 391, 393],
1153 ] 1153 ]
1154 1154
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Modules.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698