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

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

Issue 2489513005: [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. (Closed)
Patch Set: Created 4 years, 1 month 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: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 var a; return function() { a = 1; }; 10 var a; return function() { a = 1; };
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ] 70 ]
71 handlers: [ 71 handlers: [
72 ] 72 ]
73 73
74 --- 74 ---
75 snippet: " 75 snippet: "
76 var a; (function() { a = 2; })(); return a; 76 var a; (function() { a = 2; })(); return a;
77 " 77 "
78 frame size: 3 78 frame size: 3
79 parameter count: 1 79 parameter count: 1
80 bytecode array length: 20 80 bytecode array length: 21
81 bytecodes: [ 81 bytecodes: [
82 B(CreateFunctionContext), U8(1), 82 B(CreateFunctionContext), U8(1),
83 B(PushContext), R(0), 83 B(PushContext), R(0),
84 /* 30 E> */ B(StackCheck), 84 /* 30 E> */ B(StackCheck),
85 /* 41 S> */ B(LdrUndefined), R(2), 85 /* 41 S> */ B(LdaUndefined),
86 B(Star), R(2),
86 B(CreateClosure), U8(0), U8(2), 87 B(CreateClosure), U8(0), U8(2),
87 B(Star), R(1), 88 B(Star), R(1),
88 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(2), 89 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(2),
89 /* 68 S> */ B(LdaCurrentContextSlot), U8(4), 90 /* 68 S> */ B(LdaCurrentContextSlot), U8(4),
90 /* 78 S> */ B(Return), 91 /* 78 S> */ B(Return),
91 ] 92 ]
92 constant pool: [ 93 constant pool: [
93 SHARED_FUNCTION_INFO_TYPE, 94 SHARED_FUNCTION_INFO_TYPE,
94 ] 95 ]
95 handlers: [ 96 handlers: [
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 var a246 = 0; 383 var a246 = 0;
383 var a247 = 0; 384 var a247 = 0;
384 var a248 = 0; 385 var a248 = 0;
385 var a249 = 0; 386 var a249 = 0;
386 eval(); 387 eval();
387 var b = 100; 388 var b = 100;
388 return b 389 return b
389 " 390 "
390 frame size: 3 391 frame size: 3
391 parameter count: 1 392 parameter count: 1
392 bytecode array length: 789 393 bytecode array length: 791
393 bytecodes: [ 394 bytecodes: [
394 B(CreateFunctionContext), U8(254), 395 B(CreateFunctionContext), U8(254),
395 B(PushContext), R(0), 396 B(PushContext), R(0),
396 B(Ldar), R(this), 397 B(Ldar), R(this),
397 B(StaCurrentContextSlot), U8(4), 398 B(StaCurrentContextSlot), U8(4),
398 B(CreateUnmappedArguments), 399 B(CreateUnmappedArguments),
399 B(Wide), B(StaCurrentContextSlot), U16(257), 400 B(Wide), B(StaCurrentContextSlot), U16(257),
400 B(Ldar), R(new_target), 401 B(Ldar), R(new_target),
401 B(StaCurrentContextSlot), U8(5), 402 B(StaCurrentContextSlot), U8(5),
402 /* 30 E> */ B(StackCheck), 403 /* 30 E> */ B(StackCheck),
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 /* 3379 S> */ B(LdaZero), 894 /* 3379 S> */ B(LdaZero),
894 /* 3379 E> */ B(StaCurrentContextSlot), U8(251), 895 /* 3379 E> */ B(StaCurrentContextSlot), U8(251),
895 /* 3393 S> */ B(LdaZero), 896 /* 3393 S> */ B(LdaZero),
896 /* 3393 E> */ B(StaCurrentContextSlot), U8(252), 897 /* 3393 E> */ B(StaCurrentContextSlot), U8(252),
897 /* 3407 S> */ B(LdaZero), 898 /* 3407 S> */ B(LdaZero),
898 /* 3407 E> */ B(StaCurrentContextSlot), U8(253), 899 /* 3407 E> */ B(StaCurrentContextSlot), U8(253),
899 /* 3421 S> */ B(LdaZero), 900 /* 3421 S> */ B(LdaZero),
900 /* 3421 E> */ B(StaCurrentContextSlot), U8(254), 901 /* 3421 E> */ B(StaCurrentContextSlot), U8(254),
901 /* 3435 S> */ B(LdaZero), 902 /* 3435 S> */ B(LdaZero),
902 /* 3435 E> */ B(StaCurrentContextSlot), U8(255), 903 /* 3435 E> */ B(StaCurrentContextSlot), U8(255),
903 /* 3438 S> */ B(LdrUndefined), R(2), 904 /* 3438 S> */ B(LdaUndefined),
904 /* 3438 E> */ B(LdrGlobal), U8(4), R(1), 905 B(Star), R(2),
906 /* 3438 E> */ B(LdaGlobal), U8(4),
907 B(Star), R(1),
905 /* 3438 E> */ B(Call), R(1), R(2), U8(1), U8(2), 908 /* 3438 E> */ B(Call), R(1), R(2), U8(1), U8(2),
906 /* 3454 S> */ B(LdaSmi), U8(100), 909 /* 3454 S> */ B(LdaSmi), U8(100),
907 /* 3454 E> */ B(Wide), B(StaCurrentContextSlot), U16(256), 910 /* 3454 E> */ B(Wide), B(StaCurrentContextSlot), U16(256),
908 /* 3459 S> */ B(Wide), B(LdaCurrentContextSlot), U16(256), 911 /* 3459 S> */ B(Wide), B(LdaCurrentContextSlot), U16(256),
909 /* 3468 S> */ B(Return), 912 /* 3468 S> */ B(Return),
910 ] 913 ]
911 constant pool: [ 914 constant pool: [
912 ] 915 ]
913 handlers: [ 916 handlers: [
914 ] 917 ]
915 918
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698