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

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

Issue 2336643002: [Interpreter] Move context chain search loop to handler (Closed)
Patch Set: Fix documentation nits Created 4 years, 3 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 execute: yes 6 execute: yes
7 wrap: yes 7 wrap: yes
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 snippet: " 116 snippet: "
117 var n0 = 'a'; 117 var n0 = 'a';
118 var n1 = 'b'; 118 var n1 = 'b';
119 class N { 119 class N {
120 [n0]() { return n0; } 120 [n0]() { return n0; }
121 static [n1]() { return n1; } 121 static [n1]() { return n1; }
122 } 122 }
123 " 123 "
124 frame size: 11 124 frame size: 11
125 parameter count: 1 125 parameter count: 1
126 bytecode array length: 124 126 bytecode array length: 128
127 bytecodes: [ 127 bytecodes: [
128 B(CreateFunctionContext), U8(2), 128 B(CreateFunctionContext), U8(2),
129 B(PushContext), R(3), 129 B(PushContext), R(3),
130 B(LdaTheHole), 130 B(LdaTheHole),
131 B(Star), R(2), 131 B(Star), R(2),
132 /* 30 E> */ B(StackCheck), 132 /* 30 E> */ B(StackCheck),
133 /* 43 S> */ B(LdaConstant), U8(0), 133 /* 43 S> */ B(LdaConstant), U8(0),
134 /* 43 E> */ B(StaContextSlot), R(context), U8(4), 134 /* 43 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
135 /* 57 S> */ B(LdaConstant), U8(1), 135 /* 57 S> */ B(LdaConstant), U8(1),
136 /* 57 E> */ B(StaContextSlot), R(context), U8(5), 136 /* 57 E> */ B(StaContextSlot), R(context), U8(5), U8(0),
137 B(LdaTheHole), 137 B(LdaTheHole),
138 B(Star), R(0), 138 B(Star), R(0),
139 /* 62 S> */ B(LdaTheHole), 139 /* 62 S> */ B(LdaTheHole),
140 B(Star), R(4), 140 B(Star), R(4),
141 B(CreateClosure), U8(2), U8(2), 141 B(CreateClosure), U8(2), U8(2),
142 B(Star), R(5), 142 B(Star), R(5),
143 B(LdaSmi), U8(62), 143 B(LdaSmi), U8(62),
144 B(Star), R(6), 144 B(Star), R(6),
145 B(Wide), B(LdaSmi), U16(128), 145 B(Wide), B(LdaSmi), U16(128),
146 B(Star), R(7), 146 B(Star), R(7),
147 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 147 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
148 B(Star), R(4), 148 B(Star), R(4),
149 B(LdrNamedProperty), R(4), U8(3), U8(1), R(5), 149 B(LdrNamedProperty), R(4), U8(3), U8(1), R(5),
150 /* 75 E> */ B(LdaContextSlot), R(context), U8(4), 150 /* 75 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
151 B(ToName), R(7), 151 B(ToName), R(7),
152 B(CreateClosure), U8(4), U8(2), 152 B(CreateClosure), U8(4), U8(2),
153 B(Star), R(8), 153 B(Star), R(8),
154 B(LdaSmi), U8(2), 154 B(LdaSmi), U8(2),
155 B(Star), R(9), 155 B(Star), R(9),
156 B(LdaSmi), U8(1), 156 B(LdaSmi), U8(1),
157 B(Star), R(10), 157 B(Star), R(10),
158 B(Mov), R(5), R(6), 158 B(Mov), R(5), R(6),
159 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6) , U8(5), 159 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6) , U8(5),
160 /* 106 E> */ B(LdaContextSlot), R(context), U8(5), 160 /* 106 E> */ B(LdaContextSlot), R(context), U8(5), U8(0),
161 B(ToName), R(7), 161 B(ToName), R(7),
162 B(LdaConstant), U8(3), 162 B(LdaConstant), U8(3),
163 B(TestEqualStrict), R(7), U8(0), 163 B(TestEqualStrict), R(7), U8(0),
164 B(Mov), R(4), R(6), 164 B(Mov), R(4), R(6),
165 B(JumpIfToBooleanFalse), U8(7), 165 B(JumpIfToBooleanFalse), U8(7),
166 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0), 166 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0),
167 B(CreateClosure), U8(5), U8(2), 167 B(CreateClosure), U8(5), U8(2),
168 B(Star), R(8), 168 B(Star), R(8),
169 B(LdaSmi), U8(1), 169 B(LdaSmi), U8(1),
170 B(Star), R(10), 170 B(Star), R(10),
(...skipping 17 matching lines...) Expand all
188 ] 188 ]
189 189
190 --- 190 ---
191 snippet: " 191 snippet: "
192 var count = 0; 192 var count = 0;
193 class C { constructor() { count++; }} 193 class C { constructor() { count++; }}
194 return new C(); 194 return new C();
195 " 195 "
196 frame size: 8 196 frame size: 8
197 parameter count: 1 197 parameter count: 1
198 bytecode array length: 73 198 bytecode array length: 74
199 bytecodes: [ 199 bytecodes: [
200 B(CreateFunctionContext), U8(1), 200 B(CreateFunctionContext), U8(1),
201 B(PushContext), R(3), 201 B(PushContext), R(3),
202 B(LdaTheHole), 202 B(LdaTheHole),
203 B(Star), R(2), 203 B(Star), R(2),
204 /* 30 E> */ B(StackCheck), 204 /* 30 E> */ B(StackCheck),
205 /* 46 S> */ B(LdaZero), 205 /* 46 S> */ B(LdaZero),
206 /* 46 E> */ B(StaContextSlot), R(context), U8(4), 206 /* 46 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
207 B(LdaTheHole), 207 B(LdaTheHole),
208 B(Star), R(0), 208 B(Star), R(0),
209 /* 49 S> */ B(LdaTheHole), 209 /* 49 S> */ B(LdaTheHole),
210 B(Star), R(4), 210 B(Star), R(4),
211 B(CreateClosure), U8(0), U8(2), 211 B(CreateClosure), U8(0), U8(2),
212 B(Star), R(5), 212 B(Star), R(5),
213 B(LdaSmi), U8(49), 213 B(LdaSmi), U8(49),
214 B(Star), R(6), 214 B(Star), R(6),
215 B(LdaSmi), U8(86), 215 B(LdaSmi), U8(86),
216 B(Star), R(7), 216 B(Star), R(7),
(...skipping 13 matching lines...) Expand all
230 /* 103 S> */ B(Return), 230 /* 103 S> */ B(Return),
231 ] 231 ]
232 constant pool: [ 232 constant pool: [
233 SHARED_FUNCTION_INFO_TYPE, 233 SHARED_FUNCTION_INFO_TYPE,
234 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 234 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
235 ONE_BYTE_INTERNALIZED_STRING_TYPE ["C"], 235 ONE_BYTE_INTERNALIZED_STRING_TYPE ["C"],
236 ] 236 ]
237 handlers: [ 237 handlers: [
238 ] 238 ]
239 239
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698