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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/Modules.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: no 6 wrap: no
7 module: yes 7 module: yes
8 top level: yes 8 top level: yes
9 9
10 --- 10 ---
(...skipping 18 matching lines...) Expand all
29 B(Star), R(1), 29 B(Star), R(1),
30 B(LdaConstant), U8(0), 30 B(LdaConstant), U8(0),
31 B(Star), R(4), 31 B(Star), R(4),
32 B(Mov), R(arg0), R(2), 32 B(Mov), R(arg0), R(2),
33 B(Mov), R(closure), R(3), 33 B(Mov), R(closure), R(3),
34 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 34 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
35 B(PushContext), R(0), 35 B(PushContext), R(0),
36 B(Ldar), R(this), 36 B(Ldar), R(this),
37 B(StaCurrentContextSlot), U8(4), 37 B(StaCurrentContextSlot), U8(4),
38 /* 0 E> */ B(StackCheck), 38 /* 0 E> */ B(StackCheck),
39 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), 39 B(LdaCurrentContextSlot), U8(4),
40 B(Ldar), R(3), 40 B(Star), R(3),
41 B(Mov), R(closure), R(2), 41 B(Mov), R(closure), R(2),
42 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 42 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
43 B(StaCurrentContextSlot), U8(5), 43 B(StaCurrentContextSlot), U8(5),
44 B(Star), R(2), 44 B(Star), R(2),
45 B(LdrCurrentContextSlot), U8(5), R(3), 45 B(LdaCurrentContextSlot), U8(5),
46 B(Star), R(3),
46 B(LdaZero), 47 B(LdaZero),
47 B(SuspendGenerator), R(3), 48 B(SuspendGenerator), R(3),
48 B(Ldar), R(2), 49 B(Ldar), R(2),
49 /* 13 S> */ B(Return), 50 /* 13 S> */ B(Return),
50 B(LdaSmi), U8(-2), 51 B(LdaSmi), U8(-2),
51 B(Star), R(1), 52 B(Star), R(1),
52 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 53 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
53 B(Star), R(4), 54 B(Star), R(4),
54 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 55 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
55 B(Star), R(5), 56 B(Star), R(5),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 B(Star), R(1), 99 B(Star), R(1),
99 B(LdaConstant), U8(0), 100 B(LdaConstant), U8(0),
100 B(Star), R(4), 101 B(Star), R(4),
101 B(Mov), R(arg0), R(2), 102 B(Mov), R(arg0), R(2),
102 B(Mov), R(closure), R(3), 103 B(Mov), R(closure), R(3),
103 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 104 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
104 B(PushContext), R(0), 105 B(PushContext), R(0),
105 B(Ldar), R(this), 106 B(Ldar), R(this),
106 B(StaCurrentContextSlot), U8(4), 107 B(StaCurrentContextSlot), U8(4),
107 /* 0 E> */ B(StackCheck), 108 /* 0 E> */ B(StackCheck),
108 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), 109 B(LdaCurrentContextSlot), U8(4),
109 B(Ldar), R(3), 110 B(Star), R(3),
110 B(Mov), R(closure), R(2), 111 B(Mov), R(closure), R(2),
111 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 112 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
112 B(StaCurrentContextSlot), U8(5), 113 B(StaCurrentContextSlot), U8(5),
113 B(Star), R(2), 114 B(Star), R(2),
114 B(LdrCurrentContextSlot), U8(5), R(3), 115 B(LdaCurrentContextSlot), U8(5),
116 B(Star), R(3),
115 B(LdaZero), 117 B(LdaZero),
116 B(SuspendGenerator), R(3), 118 B(SuspendGenerator), R(3),
117 B(Ldar), R(2), 119 B(Ldar), R(2),
118 /* 24 S> */ B(Return), 120 /* 24 S> */ B(Return),
119 B(LdaSmi), U8(-2), 121 B(LdaSmi), U8(-2),
120 B(Star), R(1), 122 B(Star), R(1),
121 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 123 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
122 B(Star), R(4), 124 B(Star), R(4),
123 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 125 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
124 B(Star), R(5), 126 B(Star), R(5),
(...skipping 21 matching lines...) Expand all
146 ] 148 ]
147 149
148 --- 150 ---
149 snippet: " 151 snippet: "
150 import {foo as goo} from \"bar\"; 152 import {foo as goo} from \"bar\";
151 goo(42); 153 goo(42);
152 { let x; { goo(42) } }; 154 { let x; { goo(42) } };
153 " 155 "
154 frame size: 9 156 frame size: 9
155 parameter count: 2 157 parameter count: 2
156 bytecode array length: 193 158 bytecode array length: 195
157 bytecodes: [ 159 bytecodes: [
158 B(Ldar), R(new_target), 160 B(Ldar), R(new_target),
159 B(JumpIfUndefined), U8(21), 161 B(JumpIfUndefined), U8(21),
160 B(ResumeGenerator), R(new_target), 162 B(ResumeGenerator), R(new_target),
161 B(Star), R(2), 163 B(Star), R(2),
162 B(LdaZero), 164 B(LdaZero),
163 B(TestEqualStrict), R(2), U8(0), 165 B(TestEqualStrict), R(2), U8(0),
164 B(JumpIfTrue), U8(63), 166 B(JumpIfTrue), U8(63),
165 B(LdaSmi), U8(76), 167 B(LdaSmi), U8(76),
166 B(Star), R(3), 168 B(Star), R(3),
167 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 169 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
168 B(LdaSmi), U8(-2), 170 B(LdaSmi), U8(-2),
169 B(Star), R(2), 171 B(Star), R(2),
170 B(LdaConstant), U8(0), 172 B(LdaConstant), U8(0),
171 B(Star), R(5), 173 B(Star), R(5),
172 B(Mov), R(arg0), R(3), 174 B(Mov), R(arg0), R(3),
173 B(Mov), R(closure), R(4), 175 B(Mov), R(closure), R(4),
174 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 176 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
175 B(PushContext), R(0), 177 B(PushContext), R(0),
176 B(Ldar), R(this), 178 B(Ldar), R(this),
177 B(StaCurrentContextSlot), U8(4), 179 B(StaCurrentContextSlot), U8(4),
178 /* 0 E> */ B(StackCheck), 180 /* 0 E> */ B(StackCheck),
179 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4), 181 B(LdaCurrentContextSlot), U8(4),
180 B(Ldar), R(4), 182 B(Star), R(4),
181 B(Mov), R(closure), R(3), 183 B(Mov), R(closure), R(3),
182 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 184 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2),
183 B(StaCurrentContextSlot), U8(5), 185 B(StaCurrentContextSlot), U8(5),
184 B(Star), R(3), 186 B(Star), R(3),
185 B(LdrCurrentContextSlot), U8(5), R(4), 187 B(LdaCurrentContextSlot), U8(5),
188 B(Star), R(4),
186 B(LdaZero), 189 B(LdaZero),
187 B(SuspendGenerator), R(4), 190 B(SuspendGenerator), R(4),
188 B(Ldar), R(3), 191 B(Ldar), R(3),
189 /* 64 S> */ B(Return), 192 /* 64 S> */ B(Return),
190 B(LdaSmi), U8(-2), 193 B(LdaSmi), U8(-2),
191 B(Star), R(2), 194 B(Star), R(2),
192 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 195 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
193 B(Star), R(5), 196 B(Star), R(5),
194 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 197 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
195 B(Star), R(6), 198 B(Star), R(6),
196 B(LdaZero), 199 B(LdaZero),
197 B(TestEqualStrict), R(6), U8(0), 200 B(TestEqualStrict), R(6), U8(0),
198 B(JumpIfTrue), U8(26), 201 B(JumpIfTrue), U8(26),
199 B(LdaSmi), U8(2), 202 B(LdaSmi), U8(2),
200 B(TestEqualStrict), R(6), U8(0), 203 B(TestEqualStrict), R(6), U8(0),
201 B(JumpIfTrue), U8(16), 204 B(JumpIfTrue), U8(16),
202 B(Jump), U8(2), 205 B(Jump), U8(2),
203 B(LdaTrue), 206 B(LdaTrue),
204 B(Star), R(8), 207 B(Star), R(8),
205 B(Mov), R(5), R(7), 208 B(Mov), R(5), R(7),
206 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8 (2), 209 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8 (2),
207 /* 64 S> */ B(Return), 210 /* 64 S> */ B(Return),
208 B(Ldar), R(5), 211 B(Ldar), R(5),
209 /* 0 E> */ B(Throw), 212 /* 0 E> */ B(Throw),
210 /* 32 S> */ B(LdrUndefined), R(4), 213 /* 32 S> */ B(LdaUndefined),
214 B(Star), R(4),
211 /* 32 E> */ B(LdaModuleVariable), U8(-1), U8(0), 215 /* 32 E> */ B(LdaModuleVariable), U8(-1), U8(0),
212 B(JumpIfNotHole), U8(11), 216 B(JumpIfNotHole), U8(11),
213 B(LdaConstant), U8(1), 217 B(LdaConstant), U8(1),
214 B(Star), R(6), 218 B(Star), R(6),
215 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), 219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1),
216 B(Star), R(3), 220 B(Star), R(3),
217 B(LdaSmi), U8(42), 221 B(LdaSmi), U8(42),
218 B(Star), R(5), 222 B(Star), R(5),
219 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2), 223 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2),
220 B(Ldar), R(closure), 224 B(Ldar), R(closure),
221 B(CreateBlockContext), U8(2), 225 B(CreateBlockContext), U8(2),
222 B(PushContext), R(1), 226 B(PushContext), R(1),
223 B(LdaTheHole), 227 B(LdaTheHole),
224 B(StaCurrentContextSlot), U8(4), 228 B(StaCurrentContextSlot), U8(4),
225 /* 47 S> */ B(LdaUndefined), 229 /* 47 S> */ B(LdaUndefined),
226 /* 47 E> */ B(StaCurrentContextSlot), U8(4), 230 /* 47 E> */ B(StaCurrentContextSlot), U8(4),
227 /* 52 S> */ B(LdrUndefined), R(4), 231 /* 52 S> */ B(LdaUndefined),
232 B(Star), R(4),
228 /* 52 E> */ B(LdaModuleVariable), U8(-1), U8(1), 233 /* 52 E> */ B(LdaModuleVariable), U8(-1), U8(1),
229 B(JumpIfNotHole), U8(11), 234 B(JumpIfNotHole), U8(11),
230 B(LdaConstant), U8(1), 235 B(LdaConstant), U8(1),
231 B(Star), R(6), 236 B(Star), R(6),
232 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), 237 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1),
233 B(Star), R(3), 238 B(Star), R(3),
234 B(LdaSmi), U8(42), 239 B(LdaSmi), U8(42),
235 B(Star), R(5), 240 B(Star), R(5),
236 /* 52 E> */ B(Call), R(3), R(4), U8(2), U8(4), 241 /* 52 E> */ B(Call), R(3), R(4), U8(2), U8(4),
237 B(PopContext), R(1), 242 B(PopContext), R(1),
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 B(Star), R(2), 275 B(Star), R(2),
271 B(LdaConstant), U8(0), 276 B(LdaConstant), U8(0),
272 B(Star), R(5), 277 B(Star), R(5),
273 B(Mov), R(arg0), R(3), 278 B(Mov), R(arg0), R(3),
274 B(Mov), R(closure), R(4), 279 B(Mov), R(closure), R(4),
275 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 280 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
276 B(PushContext), R(0), 281 B(PushContext), R(0),
277 B(Ldar), R(this), 282 B(Ldar), R(this),
278 B(StaCurrentContextSlot), U8(4), 283 B(StaCurrentContextSlot), U8(4),
279 /* 0 E> */ B(StackCheck), 284 /* 0 E> */ B(StackCheck),
280 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4), 285 B(LdaCurrentContextSlot), U8(4),
281 B(Ldar), R(4), 286 B(Star), R(4),
282 B(Mov), R(closure), R(3), 287 B(Mov), R(closure), R(3),
283 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 288 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2),
284 B(StaCurrentContextSlot), U8(5), 289 B(StaCurrentContextSlot), U8(5),
285 B(Star), R(3), 290 B(Star), R(3),
286 B(LdrCurrentContextSlot), U8(5), R(4), 291 B(LdaCurrentContextSlot), U8(5),
292 B(Star), R(4),
287 B(LdaZero), 293 B(LdaZero),
288 B(SuspendGenerator), R(4), 294 B(SuspendGenerator), R(4),
289 B(Ldar), R(3), 295 B(Ldar), R(3),
290 /* 49 S> */ B(Return), 296 /* 49 S> */ B(Return),
291 B(LdaSmi), U8(-2), 297 B(LdaSmi), U8(-2),
292 B(Star), R(2), 298 B(Star), R(2),
293 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 299 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
294 B(Star), R(5), 300 B(Star), R(5),
295 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 301 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
296 B(Star), R(6), 302 B(Star), R(6),
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 B(Star), R(5), 366 B(Star), R(5),
361 B(Mov), R(arg0), R(3), 367 B(Mov), R(arg0), R(3),
362 B(Mov), R(closure), R(4), 368 B(Mov), R(closure), R(4),
363 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 369 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
364 B(PushContext), R(0), 370 B(PushContext), R(0),
365 B(Ldar), R(this), 371 B(Ldar), R(this),
366 B(StaCurrentContextSlot), U8(4), 372 B(StaCurrentContextSlot), U8(4),
367 B(LdaTheHole), 373 B(LdaTheHole),
368 B(StaModuleVariable), U8(1), U8(0), 374 B(StaModuleVariable), U8(1), U8(0),
369 /* 0 E> */ B(StackCheck), 375 /* 0 E> */ B(StackCheck),
370 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4), 376 B(LdaCurrentContextSlot), U8(4),
371 B(Ldar), R(4), 377 B(Star), R(4),
372 B(Mov), R(closure), R(3), 378 B(Mov), R(closure), R(3),
373 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 379 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2),
374 B(StaCurrentContextSlot), U8(5), 380 B(StaCurrentContextSlot), U8(5),
375 B(Star), R(3), 381 B(Star), R(3),
376 B(LdrCurrentContextSlot), U8(5), R(4), 382 B(LdaCurrentContextSlot), U8(5),
383 B(Star), R(4),
377 B(LdaZero), 384 B(LdaZero),
378 B(SuspendGenerator), R(4), 385 B(SuspendGenerator), R(4),
379 B(Ldar), R(3), 386 B(Ldar), R(3),
380 /* 49 S> */ B(Return), 387 /* 49 S> */ B(Return),
381 B(LdaSmi), U8(-2), 388 B(LdaSmi), U8(-2),
382 B(Star), R(2), 389 B(Star), R(2),
383 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 390 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
384 B(Star), R(5), 391 B(Star), R(5),
385 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 392 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
386 B(Star), R(6), 393 B(Star), R(6),
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 B(Star), R(5), 457 B(Star), R(5),
451 B(Mov), R(arg0), R(3), 458 B(Mov), R(arg0), R(3),
452 B(Mov), R(closure), R(4), 459 B(Mov), R(closure), R(4),
453 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 460 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
454 B(PushContext), R(0), 461 B(PushContext), R(0),
455 B(Ldar), R(this), 462 B(Ldar), R(this),
456 B(StaCurrentContextSlot), U8(4), 463 B(StaCurrentContextSlot), U8(4),
457 B(LdaTheHole), 464 B(LdaTheHole),
458 B(StaModuleVariable), U8(1), U8(0), 465 B(StaModuleVariable), U8(1), U8(0),
459 /* 0 E> */ B(StackCheck), 466 /* 0 E> */ B(StackCheck),
460 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4), 467 B(LdaCurrentContextSlot), U8(4),
461 B(Ldar), R(4), 468 B(Star), R(4),
462 B(Mov), R(closure), R(3), 469 B(Mov), R(closure), R(3),
463 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 470 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2),
464 B(StaCurrentContextSlot), U8(5), 471 B(StaCurrentContextSlot), U8(5),
465 B(Star), R(3), 472 B(Star), R(3),
466 B(LdrCurrentContextSlot), U8(5), R(4), 473 B(LdaCurrentContextSlot), U8(5),
474 B(Star), R(4),
467 B(LdaZero), 475 B(LdaZero),
468 B(SuspendGenerator), R(4), 476 B(SuspendGenerator), R(4),
469 B(Ldar), R(3), 477 B(Ldar), R(3),
470 /* 51 S> */ B(Return), 478 /* 51 S> */ B(Return),
471 B(LdaSmi), U8(-2), 479 B(LdaSmi), U8(-2),
472 B(Star), R(2), 480 B(Star), R(2),
473 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 481 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
474 B(Star), R(5), 482 B(Star), R(5),
475 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 483 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
476 B(Star), R(6), 484 B(Star), R(6),
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 B(Star), R(4), 546 B(Star), R(4),
539 B(Mov), R(arg0), R(2), 547 B(Mov), R(arg0), R(2),
540 B(Mov), R(closure), R(3), 548 B(Mov), R(closure), R(3),
541 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 549 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
542 B(PushContext), R(0), 550 B(PushContext), R(0),
543 B(Ldar), R(this), 551 B(Ldar), R(this),
544 B(StaCurrentContextSlot), U8(4), 552 B(StaCurrentContextSlot), U8(4),
545 B(LdaTheHole), 553 B(LdaTheHole),
546 B(StaModuleVariable), U8(1), U8(0), 554 B(StaModuleVariable), U8(1), U8(0),
547 /* 0 E> */ B(StackCheck), 555 /* 0 E> */ B(StackCheck),
548 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), 556 B(LdaCurrentContextSlot), U8(4),
549 B(Ldar), R(3), 557 B(Star), R(3),
550 B(Mov), R(closure), R(2), 558 B(Mov), R(closure), R(2),
551 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 559 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
552 B(StaCurrentContextSlot), U8(5), 560 B(StaCurrentContextSlot), U8(5),
553 B(Star), R(2), 561 B(Star), R(2),
554 B(LdrCurrentContextSlot), U8(5), R(3), 562 B(LdaCurrentContextSlot), U8(5),
563 B(Star), R(3),
555 B(LdaZero), 564 B(LdaZero),
556 B(SuspendGenerator), R(3), 565 B(SuspendGenerator), R(3),
557 B(Ldar), R(2), 566 B(Ldar), R(2),
558 /* 32 S> */ B(Return), 567 /* 32 S> */ B(Return),
559 B(LdaSmi), U8(-2), 568 B(LdaSmi), U8(-2),
560 B(Star), R(1), 569 B(Star), R(1),
561 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 570 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
562 B(Star), R(4), 571 B(Star), R(4),
563 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 572 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
564 B(Star), R(5), 573 B(Star), R(5),
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 B(Star), R(4), 621 B(Star), R(4),
613 B(Mov), R(arg0), R(2), 622 B(Mov), R(arg0), R(2),
614 B(Mov), R(closure), R(3), 623 B(Mov), R(closure), R(3),
615 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 624 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
616 B(PushContext), R(0), 625 B(PushContext), R(0),
617 B(Ldar), R(this), 626 B(Ldar), R(this),
618 B(StaCurrentContextSlot), U8(4), 627 B(StaCurrentContextSlot), U8(4),
619 B(LdaTheHole), 628 B(LdaTheHole),
620 B(StaModuleVariable), U8(1), U8(0), 629 B(StaModuleVariable), U8(1), U8(0),
621 /* 0 E> */ B(StackCheck), 630 /* 0 E> */ B(StackCheck),
622 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), 631 B(LdaCurrentContextSlot), U8(4),
623 B(Ldar), R(3), 632 B(Star), R(3),
624 B(Mov), R(closure), R(2), 633 B(Mov), R(closure), R(2),
625 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 634 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
626 B(StaCurrentContextSlot), U8(5), 635 B(StaCurrentContextSlot), U8(5),
627 B(Star), R(2), 636 B(Star), R(2),
628 B(LdrCurrentContextSlot), U8(5), R(3), 637 B(LdaCurrentContextSlot), U8(5),
638 B(Star), R(3),
629 B(LdaZero), 639 B(LdaZero),
630 B(SuspendGenerator), R(3), 640 B(SuspendGenerator), R(3),
631 B(Ldar), R(2), 641 B(Ldar), R(2),
632 /* 26 S> */ B(Return), 642 /* 26 S> */ B(Return),
633 B(LdaSmi), U8(-2), 643 B(LdaSmi), U8(-2),
634 B(Star), R(1), 644 B(Star), R(1),
635 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 645 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
636 B(Star), R(4), 646 B(Star), R(4),
637 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 647 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
638 B(Star), R(5), 648 B(Star), R(5),
(...skipping 18 matching lines...) Expand all
657 B(LdaSmi), U8(16), 667 B(LdaSmi), U8(16),
658 B(Star), R(4), 668 B(Star), R(4),
659 B(LdaSmi), U8(24), 669 B(LdaSmi), U8(24),
660 B(Star), R(5), 670 B(Star), R(5),
661 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4), 671 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4),
662 B(Star), R(2), 672 B(Star), R(2),
663 B(LdaNamedProperty), R(2), U8(2), U8(2), 673 B(LdaNamedProperty), R(2), U8(2), U8(2),
664 B(Star), R(3), 674 B(Star), R(3),
665 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), 675 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1),
666 B(StaCurrentContextSlot), U8(6), 676 B(StaCurrentContextSlot), U8(6),
667 /* 16 E> */ B(LdaCurrentContextSlot), U8(6), 677 B(LdaCurrentContextSlot), U8(6),
668 B(StaModuleVariable), U8(1), U8(0), 678 /* 16 E> */ B(StaModuleVariable), U8(1), U8(0),
669 B(LdaUndefined), 679 B(LdaUndefined),
670 /* 26 S> */ B(Return), 680 /* 26 S> */ B(Return),
671 ] 681 ]
672 constant pool: [ 682 constant pool: [
673 FIXED_ARRAY_TYPE, 683 FIXED_ARRAY_TYPE,
674 SHARED_FUNCTION_INFO_TYPE, 684 SHARED_FUNCTION_INFO_TYPE,
675 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 685 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
676 ] 686 ]
677 handlers: [ 687 handlers: [
678 ] 688 ]
(...skipping 20 matching lines...) Expand all
699 B(Star), R(1), 709 B(Star), R(1),
700 B(LdaConstant), U8(0), 710 B(LdaConstant), U8(0),
701 B(Star), R(4), 711 B(Star), R(4),
702 B(Mov), R(arg0), R(2), 712 B(Mov), R(arg0), R(2),
703 B(Mov), R(closure), R(3), 713 B(Mov), R(closure), R(3),
704 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 714 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
705 B(PushContext), R(0), 715 B(PushContext), R(0),
706 B(Ldar), R(this), 716 B(Ldar), R(this),
707 B(StaCurrentContextSlot), U8(4), 717 B(StaCurrentContextSlot), U8(4),
708 /* 0 E> */ B(StackCheck), 718 /* 0 E> */ B(StackCheck),
709 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), 719 B(LdaCurrentContextSlot), U8(4),
710 B(Ldar), R(3), 720 B(Star), R(3),
711 B(Mov), R(closure), R(2), 721 B(Mov), R(closure), R(2),
712 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 722 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
713 B(StaCurrentContextSlot), U8(5), 723 B(StaCurrentContextSlot), U8(5),
714 B(Star), R(2), 724 B(Star), R(2),
715 B(LdrCurrentContextSlot), U8(5), R(3), 725 B(LdaCurrentContextSlot), U8(5),
726 B(Star), R(3),
716 B(LdaZero), 727 B(LdaZero),
717 B(SuspendGenerator), R(3), 728 B(SuspendGenerator), R(3),
718 B(Ldar), R(2), 729 B(Ldar), R(2),
719 /* 30 S> */ B(Return), 730 /* 30 S> */ B(Return),
720 B(LdaSmi), U8(-2), 731 B(LdaSmi), U8(-2),
721 B(Star), R(1), 732 B(Star), R(1),
722 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 733 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
723 B(Star), R(4), 734 B(Star), R(4),
724 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 735 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
725 B(Star), R(5), 736 B(Star), R(5),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 B(Star), R(1), 779 B(Star), R(1),
769 B(LdaConstant), U8(0), 780 B(LdaConstant), U8(0),
770 B(Star), R(4), 781 B(Star), R(4),
771 B(Mov), R(arg0), R(2), 782 B(Mov), R(arg0), R(2),
772 B(Mov), R(closure), R(3), 783 B(Mov), R(closure), R(3),
773 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 784 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
774 B(PushContext), R(0), 785 B(PushContext), R(0),
775 B(Ldar), R(this), 786 B(Ldar), R(this),
776 B(StaCurrentContextSlot), U8(4), 787 B(StaCurrentContextSlot), U8(4),
777 /* 0 E> */ B(StackCheck), 788 /* 0 E> */ B(StackCheck),
778 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), 789 B(LdaCurrentContextSlot), U8(4),
779 B(Ldar), R(3), 790 B(Star), R(3),
780 B(Mov), R(closure), R(2), 791 B(Mov), R(closure), R(2),
781 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 792 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
782 B(StaCurrentContextSlot), U8(5), 793 B(StaCurrentContextSlot), U8(5),
783 B(Star), R(2), 794 B(Star), R(2),
784 B(LdrCurrentContextSlot), U8(5), R(3), 795 B(LdaCurrentContextSlot), U8(5),
796 B(Star), R(3),
785 B(LdaZero), 797 B(LdaZero),
786 B(SuspendGenerator), R(3), 798 B(SuspendGenerator), R(3),
787 B(Ldar), R(2), 799 B(Ldar), R(2),
788 /* 19 S> */ B(Return), 800 /* 19 S> */ B(Return),
789 B(LdaSmi), U8(-2), 801 B(LdaSmi), U8(-2),
790 B(Star), R(1), 802 B(Star), R(1),
791 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 803 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
792 B(Star), R(4), 804 B(Star), R(4),
793 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 805 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
794 B(Star), R(5), 806 B(Star), R(5),
(...skipping 20 matching lines...) Expand all
815 handlers: [ 827 handlers: [
816 ] 828 ]
817 829
818 --- 830 ---
819 snippet: " 831 snippet: "
820 import * as foo from \"bar\" 832 import * as foo from \"bar\"
821 foo.f(foo, foo.x); 833 foo.f(foo, foo.x);
822 " 834 "
823 frame size: 8 835 frame size: 8
824 parameter count: 2 836 parameter count: 2
825 bytecode array length: 161 837 bytecode array length: 164
826 bytecodes: [ 838 bytecodes: [
827 B(Ldar), R(new_target), 839 B(Ldar), R(new_target),
828 B(JumpIfUndefined), U8(21), 840 B(JumpIfUndefined), U8(21),
829 B(ResumeGenerator), R(new_target), 841 B(ResumeGenerator), R(new_target),
830 B(Star), R(1), 842 B(Star), R(1),
831 B(LdaZero), 843 B(LdaZero),
832 B(TestEqualStrict), R(1), U8(0), 844 B(TestEqualStrict), R(1), U8(0),
833 B(JumpIfTrue), U8(73), 845 B(JumpIfTrue), U8(73),
834 B(LdaSmi), U8(76), 846 B(LdaSmi), U8(76),
835 B(Star), R(2), 847 B(Star), R(2),
836 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 848 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
837 B(LdaSmi), U8(-2), 849 B(LdaSmi), U8(-2),
838 B(Star), R(1), 850 B(Star), R(1),
839 B(LdaConstant), U8(0), 851 B(LdaConstant), U8(0),
840 B(Star), R(4), 852 B(Star), R(4),
841 B(Mov), R(arg0), R(2), 853 B(Mov), R(arg0), R(2),
842 B(Mov), R(closure), R(3), 854 B(Mov), R(closure), R(3),
843 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 855 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
844 B(PushContext), R(0), 856 B(PushContext), R(0),
845 B(Ldar), R(this), 857 B(Ldar), R(this),
846 B(StaCurrentContextSlot), U8(4), 858 B(StaCurrentContextSlot), U8(4),
847 B(LdaZero), 859 B(LdaZero),
848 B(Star), R(2), 860 B(Star), R(2),
849 B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(2), U8(1), 861 B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(2), U8(1),
850 B(StaCurrentContextSlot), U8(6), 862 B(StaCurrentContextSlot), U8(6),
851 /* 0 E> */ B(StackCheck), 863 /* 0 E> */ B(StackCheck),
852 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), 864 B(LdaCurrentContextSlot), U8(4),
853 B(Ldar), R(3), 865 B(Star), R(3),
854 B(Mov), R(closure), R(2), 866 B(Mov), R(closure), R(2),
855 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 867 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
856 B(StaCurrentContextSlot), U8(5), 868 B(StaCurrentContextSlot), U8(5),
857 B(Star), R(2), 869 B(Star), R(2),
858 B(LdrCurrentContextSlot), U8(5), R(3), 870 B(LdaCurrentContextSlot), U8(5),
871 B(Star), R(3),
859 B(LdaZero), 872 B(LdaZero),
860 B(SuspendGenerator), R(3), 873 B(SuspendGenerator), R(3),
861 B(Ldar), R(2), 874 B(Ldar), R(2),
862 /* 45 S> */ B(Return), 875 /* 45 S> */ B(Return),
863 B(LdaSmi), U8(-2), 876 B(LdaSmi), U8(-2),
864 B(Star), R(1), 877 B(Star), R(1),
865 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 878 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
866 B(Star), R(4), 879 B(Star), R(4),
867 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 880 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
868 B(Star), R(5), 881 B(Star), R(5),
869 B(LdaZero), 882 B(LdaZero),
870 B(TestEqualStrict), R(5), U8(0), 883 B(TestEqualStrict), R(5), U8(0),
871 B(JumpIfTrue), U8(26), 884 B(JumpIfTrue), U8(26),
872 B(LdaSmi), U8(2), 885 B(LdaSmi), U8(2),
873 B(TestEqualStrict), R(5), U8(0), 886 B(TestEqualStrict), R(5), U8(0),
874 B(JumpIfTrue), U8(16), 887 B(JumpIfTrue), U8(16),
875 B(Jump), U8(2), 888 B(Jump), U8(2),
876 B(LdaTrue), 889 B(LdaTrue),
877 B(Star), R(7), 890 B(Star), R(7),
878 B(Mov), R(4), R(6), 891 B(Mov), R(4), R(6),
879 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2), 892 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2),
880 /* 45 S> */ B(Return), 893 /* 45 S> */ B(Return),
881 B(Ldar), R(4), 894 B(Ldar), R(4),
882 /* 0 E> */ B(Throw), 895 /* 0 E> */ B(Throw),
883 /* 27 S> */ B(LdrCurrentContextSlot), U8(6), R(3), 896 /* 27 S> */ B(LdaCurrentContextSlot), U8(6),
897 B(Star), R(3),
884 /* 30 E> */ B(LdaNamedProperty), R(3), U8(1), U8(4), 898 /* 30 E> */ B(LdaNamedProperty), R(3), U8(1), U8(4),
885 B(Star), R(2), 899 B(Star), R(2),
886 /* 33 E> */ B(LdrCurrentContextSlot), U8(6), R(4), 900 B(LdaCurrentContextSlot), U8(6),
887 /* 38 E> */ B(LdrCurrentContextSlot), U8(6), R(6), 901 B(Star), R(4),
902 B(LdaCurrentContextSlot), U8(6),
903 B(Star), R(6),
888 /* 41 E> */ B(LdaNamedProperty), R(6), U8(2), U8(6), 904 /* 41 E> */ B(LdaNamedProperty), R(6), U8(2), U8(6),
889 B(Star), R(5), 905 B(Star), R(5),
890 /* 31 E> */ B(CallProperty), R(2), R(3), U8(3), U8(2), 906 /* 31 E> */ B(CallProperty), R(2), R(3), U8(3), U8(2),
891 B(LdaUndefined), 907 B(LdaUndefined),
892 /* 45 S> */ B(Return), 908 /* 45 S> */ B(Return),
893 ] 909 ]
894 constant pool: [ 910 constant pool: [
895 FIXED_ARRAY_TYPE, 911 FIXED_ARRAY_TYPE,
896 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], 912 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
897 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 913 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
898 ] 914 ]
899 handlers: [ 915 handlers: [
900 ] 916 ]
901 917
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698