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

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

Issue 1997653002: [interpreter] Bytecode register optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Grammar. Created 4 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
OLDNEW
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 ---
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 ] 72 ]
73 handlers: [ 73 handlers: [
74 ] 74 ]
75 75
76 --- 76 ---
77 snippet: " 77 snippet: "
78 var a; (function() { a = 2; })(); return a; 78 var a; (function() { a = 2; })(); return a;
79 " 79 "
80 frame size: 3 80 frame size: 3
81 parameter count: 1 81 parameter count: 1
82 bytecode array length: 24 82 bytecode array length: 25
83 bytecodes: [ 83 bytecodes: [
84 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 84 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
85 B(PushContext), R(0), 85 B(PushContext), R(0),
86 /* 30 E> */ B(StackCheck), 86 /* 30 E> */ B(StackCheck),
87 /* 41 S> */ B(LdrUndefined), R(2), 87 /* 41 S> */ B(LdaUndefined),
88 B(Star), R(2),
88 B(CreateClosure), U8(0), U8(0), 89 B(CreateClosure), U8(0), U8(0),
89 B(Star), R(1), 90 B(Star), R(1),
90 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(1), 91 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(1),
91 /* 68 S> */ B(LdaContextSlot), R(context), U8(4), 92 /* 68 S> */ B(LdaContextSlot), R(context), U8(4),
92 /* 78 S> */ B(Return), 93 /* 78 S> */ B(Return),
93 ] 94 ]
94 constant pool: [ 95 constant pool: [
95 InstanceType::SHARED_FUNCTION_INFO_TYPE, 96 InstanceType::SHARED_FUNCTION_INFO_TYPE,
96 ] 97 ]
97 handlers: [ 98 handlers: [
98 ] 99 ]
99 100
100 --- 101 ---
101 snippet: " 102 snippet: "
102 'use strict'; 103 'use strict';
103 let a = 1; 104 let a = 1;
104 { let b = 2; return function() { a + b; }; } 105 { let b = 2; return function() { a + b; }; }
105 " 106 "
106 frame size: 4 107 frame size: 4
107 parameter count: 1 108 parameter count: 1
108 bytecode array length: 47 109 bytecode array length: 46
109 bytecodes: [ 110 bytecodes: [
110 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
111 B(PushContext), R(0), 112 B(PushContext), R(0),
112 B(LdaTheHole), 113 B(LdaTheHole),
113 B(StaContextSlot), R(context), U8(4), 114 B(StaContextSlot), R(context), U8(4),
114 /* 30 E> */ B(StackCheck), 115 /* 30 E> */ B(StackCheck),
115 /* 56 S> */ B(LdaSmi), U8(1), 116 /* 56 S> */ B(LdaSmi), U8(1),
116 /* 56 E> */ B(StaContextSlot), R(context), U8(4), 117 /* 56 E> */ B(StaContextSlot), R(context), U8(4),
117 B(LdaConstant), U8(0), 118 B(LdaConstant), U8(0),
118 B(Star), R(2), 119 B(Star), R(2),
119 B(Ldar), R(closure), 120 B(Mov), R(closure), R(3),
120 B(Star), R(3),
121 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2), 121 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2),
122 B(PushContext), R(1), 122 B(PushContext), R(1),
123 B(LdaTheHole), 123 B(LdaTheHole),
124 B(StaContextSlot), R(context), U8(4), 124 B(StaContextSlot), R(context), U8(4),
125 /* 69 S> */ B(LdaSmi), U8(2), 125 /* 69 S> */ B(LdaSmi), U8(2),
126 /* 69 E> */ B(StaContextSlot), R(context), U8(4), 126 /* 69 E> */ B(StaContextSlot), R(context), U8(4),
127 /* 72 S> */ B(CreateClosure), U8(1), U8(0), 127 /* 72 S> */ B(CreateClosure), U8(1), U8(0),
128 B(PopContext), R(0), 128 B(PopContext), R(0),
129 /* 104 S> */ B(Return), 129 /* 104 S> */ B(Return),
130 ] 130 ]
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 var a245 = 0; 386 var a245 = 0;
387 var a246 = 0; 387 var a246 = 0;
388 var a247 = 0; 388 var a247 = 0;
389 var a248 = 0; 389 var a248 = 0;
390 eval(); 390 eval();
391 var b = 100; 391 var b = 100;
392 return b 392 return b
393 " 393 "
394 frame size: 3 394 frame size: 3
395 parameter count: 1 395 parameter count: 1
396 bytecode array length: 1044 396 bytecode array length: 1046
397 bytecodes: [ 397 bytecodes: [
398 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 398 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
399 B(PushContext), R(0), 399 B(PushContext), R(0),
400 B(Ldar), R(this), 400 B(Ldar), R(this),
401 B(StaContextSlot), R(context), U8(4), 401 B(StaContextSlot), R(context), U8(4),
402 B(CreateUnmappedArguments), 402 B(CreateUnmappedArguments),
403 B(StaContextSlot), R(context), U8(5), 403 B(StaContextSlot), R(context), U8(5),
404 B(Ldar), R(new_target), 404 B(Ldar), R(new_target),
405 B(StaContextSlot), R(context), U8(6), 405 B(StaContextSlot), R(context), U8(6),
406 /* 30 E> */ B(StackCheck), 406 /* 30 E> */ B(StackCheck),
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 /* 3365 S> */ B(LdaZero), 895 /* 3365 S> */ B(LdaZero),
896 /* 3365 E> */ B(StaContextSlot), R(context), U8(251), 896 /* 3365 E> */ B(StaContextSlot), R(context), U8(251),
897 /* 3379 S> */ B(LdaZero), 897 /* 3379 S> */ B(LdaZero),
898 /* 3379 E> */ B(StaContextSlot), R(context), U8(252), 898 /* 3379 E> */ B(StaContextSlot), R(context), U8(252),
899 /* 3393 S> */ B(LdaZero), 899 /* 3393 S> */ B(LdaZero),
900 /* 3393 E> */ B(StaContextSlot), R(context), U8(253), 900 /* 3393 E> */ B(StaContextSlot), R(context), U8(253),
901 /* 3407 S> */ B(LdaZero), 901 /* 3407 S> */ B(LdaZero),
902 /* 3407 E> */ B(StaContextSlot), R(context), U8(254), 902 /* 3407 E> */ B(StaContextSlot), R(context), U8(254),
903 /* 3421 S> */ B(LdaZero), 903 /* 3421 S> */ B(LdaZero),
904 /* 3421 E> */ B(StaContextSlot), R(context), U8(255), 904 /* 3421 E> */ B(StaContextSlot), R(context), U8(255),
905 /* 3424 S> */ B(LdrUndefined), R(2), 905 /* 3424 S> */ B(LdaUndefined),
906 /* 3424 E> */ B(LdrGlobal), U8(0), U8(1), R(1), 906 B(Star), R(2),
907 /* 3424 E> */ B(LdaGlobal), U8(0), U8(1),
908 B(Star), R(1),
907 /* 3424 E> */ B(Call), R(1), R(2), U8(1), U8(0), 909 /* 3424 E> */ B(Call), R(1), R(2), U8(1), U8(0),
908 /* 3440 S> */ B(LdaSmi), U8(100), 910 /* 3440 S> */ B(LdaSmi), U8(100),
909 /* 3440 E> */ B(Wide), B(StaContextSlot), R16(context), U16(256), 911 /* 3440 E> */ B(Wide), B(StaContextSlot), R16(context), U16(256),
910 /* 3445 S> */ B(Wide), B(LdaContextSlot), R16(context), U16(256), 912 /* 3445 S> */ B(Wide), B(LdaContextSlot), R16(context), U16(256),
911 /* 3454 S> */ B(Return), 913 /* 3454 S> */ B(Return),
912 ] 914 ]
913 constant pool: [ 915 constant pool: [
914 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 916 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
915 ] 917 ]
916 handlers: [ 918 handlers: [
917 ] 919 ]
918 920
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698