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

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

Issue 2861983002: [ignition] Optimize JSGenerator creation (Closed)
Patch Set: Now with debugger test fixes. 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
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 ---
11 snippet: " 11 snippet: "
12 import \"bar\"; 12 import \"bar\";
13 " 13 "
14 frame size: 9 14 frame size: 9
15 parameter count: 2 15 parameter count: 2
16 bytecode array length: 143 16 bytecode array length: 142
17 bytecodes: [ 17 bytecodes: [
18 B(Ldar), R(new_target), 18 B(Ldar), R(new_target),
19 B(JumpIfUndefined), U8(27), 19 B(JumpIfUndefined), U8(27),
20 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 20 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
21 B(PushContext), R(2), 21 B(PushContext), R(2),
22 B(ResumeGenerator), R(new_target), 22 B(ResumeGenerator), R(new_target),
23 B(Star), R(1), 23 B(Star), R(1),
24 B(LdaZero), 24 B(LdaZero),
25 B(TestEqualStrictNoFeedback), R(1), 25 B(TestEqualStrictNoFeedback), R(1),
26 B(JumpIfTrue), U8(64), 26 B(JumpIfTrue), U8(63),
27 B(LdaSmi), I8(79), 27 B(LdaSmi), I8(79),
28 B(Star), R(3), 28 B(Star), R(3),
29 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 29 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
30 B(LdaSmi), I8(-2), 30 B(LdaSmi), I8(-2),
31 B(Star), R(1), 31 B(Star), R(1),
32 B(LdaConstant), U8(0), 32 B(LdaConstant), U8(0),
33 B(Star), R(5), 33 B(Star), R(5),
34 B(Mov), R(arg0), R(3), 34 B(Mov), R(arg0), R(3),
35 B(Mov), R(closure), R(4), 35 B(Mov), R(closure), R(4),
36 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 36 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
37 B(PushContext), R(0), 37 B(PushContext), R(0),
38 B(Ldar), R(this), 38 B(Ldar), R(this),
39 B(StaCurrentContextSlot), U8(4), 39 B(StaCurrentContextSlot), U8(4),
40 /* 0 E> */ B(StackCheck), 40 /* 0 E> */ B(StackCheck),
41 B(LdaImmutableCurrentContextSlot), U8(4), 41 B(LdaImmutableCurrentContextSlot), U8(4),
42 B(Star), R(4), 42 B(Star), R(4),
43 B(Mov), R(closure), R(3), 43 B(Mov), R(closure), R(3),
44 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 44 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
45 B(StaCurrentContextSlot), U8(5), 45 B(StaCurrentContextSlot), U8(5),
46 B(Star), R(3), 46 B(Star), R(3),
47 B(LdaImmutableCurrentContextSlot), U8(5), 47 B(LdaImmutableCurrentContextSlot), U8(5),
48 B(Star), R(4), 48 B(Star), R(4),
49 B(LdaZero), 49 B(LdaZero),
50 B(SuspendGenerator), R(4), U8(0), 50 B(SuspendGenerator), R(4), U8(0),
51 B(Ldar), R(3), 51 B(Ldar), R(3),
52 /* 13 S> */ B(Return), 52 /* 13 S> */ B(Return),
53 B(LdaSmi), I8(-2), 53 B(LdaSmi), I8(-2),
54 B(Star), R(1), 54 B(Star), R(1),
(...skipping 29 matching lines...) Expand all
84 ] 84 ]
85 handlers: [ 85 handlers: [
86 ] 86 ]
87 87
88 --- 88 ---
89 snippet: " 89 snippet: "
90 import {foo} from \"bar\"; 90 import {foo} from \"bar\";
91 " 91 "
92 frame size: 9 92 frame size: 9
93 parameter count: 2 93 parameter count: 2
94 bytecode array length: 143 94 bytecode array length: 142
95 bytecodes: [ 95 bytecodes: [
96 B(Ldar), R(new_target), 96 B(Ldar), R(new_target),
97 B(JumpIfUndefined), U8(27), 97 B(JumpIfUndefined), U8(27),
98 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 98 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
99 B(PushContext), R(2), 99 B(PushContext), R(2),
100 B(ResumeGenerator), R(new_target), 100 B(ResumeGenerator), R(new_target),
101 B(Star), R(1), 101 B(Star), R(1),
102 B(LdaZero), 102 B(LdaZero),
103 B(TestEqualStrictNoFeedback), R(1), 103 B(TestEqualStrictNoFeedback), R(1),
104 B(JumpIfTrue), U8(64), 104 B(JumpIfTrue), U8(63),
105 B(LdaSmi), I8(79), 105 B(LdaSmi), I8(79),
106 B(Star), R(3), 106 B(Star), R(3),
107 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 107 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
108 B(LdaSmi), I8(-2), 108 B(LdaSmi), I8(-2),
109 B(Star), R(1), 109 B(Star), R(1),
110 B(LdaConstant), U8(0), 110 B(LdaConstant), U8(0),
111 B(Star), R(5), 111 B(Star), R(5),
112 B(Mov), R(arg0), R(3), 112 B(Mov), R(arg0), R(3),
113 B(Mov), R(closure), R(4), 113 B(Mov), R(closure), R(4),
114 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 114 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
115 B(PushContext), R(0), 115 B(PushContext), R(0),
116 B(Ldar), R(this), 116 B(Ldar), R(this),
117 B(StaCurrentContextSlot), U8(4), 117 B(StaCurrentContextSlot), U8(4),
118 /* 0 E> */ B(StackCheck), 118 /* 0 E> */ B(StackCheck),
119 B(LdaImmutableCurrentContextSlot), U8(4), 119 B(LdaImmutableCurrentContextSlot), U8(4),
120 B(Star), R(4), 120 B(Star), R(4),
121 B(Mov), R(closure), R(3), 121 B(Mov), R(closure), R(3),
122 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 122 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
123 B(StaCurrentContextSlot), U8(5), 123 B(StaCurrentContextSlot), U8(5),
124 B(Star), R(3), 124 B(Star), R(3),
125 B(LdaImmutableCurrentContextSlot), U8(5), 125 B(LdaImmutableCurrentContextSlot), U8(5),
126 B(Star), R(4), 126 B(Star), R(4),
127 B(LdaZero), 127 B(LdaZero),
128 B(SuspendGenerator), R(4), U8(0), 128 B(SuspendGenerator), R(4), U8(0),
129 B(Ldar), R(3), 129 B(Ldar), R(3),
130 /* 24 S> */ B(Return), 130 /* 24 S> */ B(Return),
131 B(LdaSmi), I8(-2), 131 B(LdaSmi), I8(-2),
132 B(Star), R(1), 132 B(Star), R(1),
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 ] 164 ]
165 165
166 --- 166 ---
167 snippet: " 167 snippet: "
168 import {foo as goo} from \"bar\"; 168 import {foo as goo} from \"bar\";
169 goo(42); 169 goo(42);
170 { let x; { goo(42) } }; 170 { let x; { goo(42) } };
171 " 171 "
172 frame size: 10 172 frame size: 10
173 parameter count: 2 173 parameter count: 2
174 bytecode array length: 205 174 bytecode array length: 204
175 bytecodes: [ 175 bytecodes: [
176 B(Ldar), R(new_target), 176 B(Ldar), R(new_target),
177 B(JumpIfUndefined), U8(27), 177 B(JumpIfUndefined), U8(27),
178 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 178 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
179 B(PushContext), R(3), 179 B(PushContext), R(3),
180 B(ResumeGenerator), R(new_target), 180 B(ResumeGenerator), R(new_target),
181 B(Star), R(2), 181 B(Star), R(2),
182 B(LdaZero), 182 B(LdaZero),
183 B(TestEqualStrictNoFeedback), R(2), 183 B(TestEqualStrictNoFeedback), R(2),
184 B(JumpIfTrue), U8(64), 184 B(JumpIfTrue), U8(63),
185 B(LdaSmi), I8(79), 185 B(LdaSmi), I8(79),
186 B(Star), R(4), 186 B(Star), R(4),
187 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 187 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
188 B(LdaSmi), I8(-2), 188 B(LdaSmi), I8(-2),
189 B(Star), R(2), 189 B(Star), R(2),
190 B(LdaConstant), U8(0), 190 B(LdaConstant), U8(0),
191 B(Star), R(6), 191 B(Star), R(6),
192 B(Mov), R(arg0), R(4), 192 B(Mov), R(arg0), R(4),
193 B(Mov), R(closure), R(5), 193 B(Mov), R(closure), R(5),
194 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), 194 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3),
195 B(PushContext), R(0), 195 B(PushContext), R(0),
196 B(Ldar), R(this), 196 B(Ldar), R(this),
197 B(StaCurrentContextSlot), U8(4), 197 B(StaCurrentContextSlot), U8(4),
198 /* 0 E> */ B(StackCheck), 198 /* 0 E> */ B(StackCheck),
199 B(LdaImmutableCurrentContextSlot), U8(4), 199 B(LdaImmutableCurrentContextSlot), U8(4),
200 B(Star), R(5), 200 B(Star), R(5),
201 B(Mov), R(closure), R(4), 201 B(Mov), R(closure), R(4),
202 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8 (2), 202 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(4) , U8(2),
203 B(StaCurrentContextSlot), U8(5), 203 B(StaCurrentContextSlot), U8(5),
204 B(Star), R(4), 204 B(Star), R(4),
205 B(LdaImmutableCurrentContextSlot), U8(5), 205 B(LdaImmutableCurrentContextSlot), U8(5),
206 B(Star), R(5), 206 B(Star), R(5),
207 B(LdaZero), 207 B(LdaZero),
208 B(SuspendGenerator), R(5), U8(0), 208 B(SuspendGenerator), R(5), U8(0),
209 B(Ldar), R(4), 209 B(Ldar), R(4),
210 /* 64 S> */ B(Return), 210 /* 64 S> */ B(Return),
211 B(LdaSmi), I8(-2), 211 B(LdaSmi), I8(-2),
212 B(Star), R(2), 212 B(Star), R(2),
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 ] 271 ]
272 272
273 --- 273 ---
274 snippet: " 274 snippet: "
275 export var foo = 42; 275 export var foo = 42;
276 foo++; 276 foo++;
277 { let x; { foo++ } }; 277 { let x; { foo++ } };
278 " 278 "
279 frame size: 10 279 frame size: 10
280 parameter count: 2 280 parameter count: 2
281 bytecode array length: 185 281 bytecode array length: 184
282 bytecodes: [ 282 bytecodes: [
283 B(Ldar), R(new_target), 283 B(Ldar), R(new_target),
284 B(JumpIfUndefined), U8(27), 284 B(JumpIfUndefined), U8(27),
285 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 285 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
286 B(PushContext), R(3), 286 B(PushContext), R(3),
287 B(ResumeGenerator), R(new_target), 287 B(ResumeGenerator), R(new_target),
288 B(Star), R(2), 288 B(Star), R(2),
289 B(LdaZero), 289 B(LdaZero),
290 B(TestEqualStrictNoFeedback), R(2), 290 B(TestEqualStrictNoFeedback), R(2),
291 B(JumpIfTrue), U8(64), 291 B(JumpIfTrue), U8(63),
292 B(LdaSmi), I8(79), 292 B(LdaSmi), I8(79),
293 B(Star), R(4), 293 B(Star), R(4),
294 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 294 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
295 B(LdaSmi), I8(-2), 295 B(LdaSmi), I8(-2),
296 B(Star), R(2), 296 B(Star), R(2),
297 B(LdaConstant), U8(0), 297 B(LdaConstant), U8(0),
298 B(Star), R(6), 298 B(Star), R(6),
299 B(Mov), R(arg0), R(4), 299 B(Mov), R(arg0), R(4),
300 B(Mov), R(closure), R(5), 300 B(Mov), R(closure), R(5),
301 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), 301 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3),
302 B(PushContext), R(0), 302 B(PushContext), R(0),
303 B(Ldar), R(this), 303 B(Ldar), R(this),
304 B(StaCurrentContextSlot), U8(4), 304 B(StaCurrentContextSlot), U8(4),
305 /* 0 E> */ B(StackCheck), 305 /* 0 E> */ B(StackCheck),
306 B(LdaImmutableCurrentContextSlot), U8(4), 306 B(LdaImmutableCurrentContextSlot), U8(4),
307 B(Star), R(5), 307 B(Star), R(5),
308 B(Mov), R(closure), R(4), 308 B(Mov), R(closure), R(4),
309 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8 (2), 309 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(4) , U8(2),
310 B(StaCurrentContextSlot), U8(5), 310 B(StaCurrentContextSlot), U8(5),
311 B(Star), R(4), 311 B(Star), R(4),
312 B(LdaImmutableCurrentContextSlot), U8(5), 312 B(LdaImmutableCurrentContextSlot), U8(5),
313 B(Star), R(5), 313 B(Star), R(5),
314 B(LdaZero), 314 B(LdaZero),
315 B(SuspendGenerator), R(5), U8(0), 315 B(SuspendGenerator), R(5), U8(0),
316 B(Ldar), R(4), 316 B(Ldar), R(4),
317 /* 49 S> */ B(Return), 317 /* 49 S> */ B(Return),
318 B(LdaSmi), I8(-2), 318 B(LdaSmi), I8(-2),
319 B(Star), R(2), 319 B(Star), R(2),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 ] 370 ]
371 371
372 --- 372 ---
373 snippet: " 373 snippet: "
374 export let foo = 42; 374 export let foo = 42;
375 foo++; 375 foo++;
376 { let x; { foo++ } }; 376 { let x; { foo++ } };
377 " 377 "
378 frame size: 10 378 frame size: 10
379 parameter count: 2 379 parameter count: 2
380 bytecode array length: 189 380 bytecode array length: 188
381 bytecodes: [ 381 bytecodes: [
382 B(Ldar), R(new_target), 382 B(Ldar), R(new_target),
383 B(JumpIfUndefined), U8(27), 383 B(JumpIfUndefined), U8(27),
384 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 384 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
385 B(PushContext), R(3), 385 B(PushContext), R(3),
386 B(ResumeGenerator), R(new_target), 386 B(ResumeGenerator), R(new_target),
387 B(Star), R(2), 387 B(Star), R(2),
388 B(LdaZero), 388 B(LdaZero),
389 B(TestEqualStrictNoFeedback), R(2), 389 B(TestEqualStrictNoFeedback), R(2),
390 B(JumpIfTrue), U8(68), 390 B(JumpIfTrue), U8(67),
391 B(LdaSmi), I8(79), 391 B(LdaSmi), I8(79),
392 B(Star), R(4), 392 B(Star), R(4),
393 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 393 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
394 B(LdaSmi), I8(-2), 394 B(LdaSmi), I8(-2),
395 B(Star), R(2), 395 B(Star), R(2),
396 B(LdaConstant), U8(0), 396 B(LdaConstant), U8(0),
397 B(Star), R(6), 397 B(Star), R(6),
398 B(Mov), R(arg0), R(4), 398 B(Mov), R(arg0), R(4),
399 B(Mov), R(closure), R(5), 399 B(Mov), R(closure), R(5),
400 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), 400 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3),
401 B(PushContext), R(0), 401 B(PushContext), R(0),
402 B(Ldar), R(this), 402 B(Ldar), R(this),
403 B(StaCurrentContextSlot), U8(4), 403 B(StaCurrentContextSlot), U8(4),
404 B(LdaTheHole), 404 B(LdaTheHole),
405 B(StaModuleVariable), I8(1), U8(0), 405 B(StaModuleVariable), I8(1), U8(0),
406 /* 0 E> */ B(StackCheck), 406 /* 0 E> */ B(StackCheck),
407 B(LdaImmutableCurrentContextSlot), U8(4), 407 B(LdaImmutableCurrentContextSlot), U8(4),
408 B(Star), R(5), 408 B(Star), R(5),
409 B(Mov), R(closure), R(4), 409 B(Mov), R(closure), R(4),
410 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8 (2), 410 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(4) , U8(2),
411 B(StaCurrentContextSlot), U8(5), 411 B(StaCurrentContextSlot), U8(5),
412 B(Star), R(4), 412 B(Star), R(4),
413 B(LdaImmutableCurrentContextSlot), U8(5), 413 B(LdaImmutableCurrentContextSlot), U8(5),
414 B(Star), R(5), 414 B(Star), R(5),
415 B(LdaZero), 415 B(LdaZero),
416 B(SuspendGenerator), R(5), U8(0), 416 B(SuspendGenerator), R(5), U8(0),
417 B(Ldar), R(4), 417 B(Ldar), R(4),
418 /* 49 S> */ B(Return), 418 /* 49 S> */ B(Return),
419 B(LdaSmi), I8(-2), 419 B(LdaSmi), I8(-2),
420 B(Star), R(2), 420 B(Star), R(2),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 ] 471 ]
472 472
473 --- 473 ---
474 snippet: " 474 snippet: "
475 export const foo = 42; 475 export const foo = 42;
476 foo++; 476 foo++;
477 { let x; { foo++ } }; 477 { let x; { foo++ } };
478 " 478 "
479 frame size: 10 479 frame size: 10
480 parameter count: 2 480 parameter count: 2
481 bytecode array length: 193 481 bytecode array length: 192
482 bytecodes: [ 482 bytecodes: [
483 B(Ldar), R(new_target), 483 B(Ldar), R(new_target),
484 B(JumpIfUndefined), U8(27), 484 B(JumpIfUndefined), U8(27),
485 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 485 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
486 B(PushContext), R(3), 486 B(PushContext), R(3),
487 B(ResumeGenerator), R(new_target), 487 B(ResumeGenerator), R(new_target),
488 B(Star), R(2), 488 B(Star), R(2),
489 B(LdaZero), 489 B(LdaZero),
490 B(TestEqualStrictNoFeedback), R(2), 490 B(TestEqualStrictNoFeedback), R(2),
491 B(JumpIfTrue), U8(68), 491 B(JumpIfTrue), U8(67),
492 B(LdaSmi), I8(79), 492 B(LdaSmi), I8(79),
493 B(Star), R(4), 493 B(Star), R(4),
494 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 494 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
495 B(LdaSmi), I8(-2), 495 B(LdaSmi), I8(-2),
496 B(Star), R(2), 496 B(Star), R(2),
497 B(LdaConstant), U8(0), 497 B(LdaConstant), U8(0),
498 B(Star), R(6), 498 B(Star), R(6),
499 B(Mov), R(arg0), R(4), 499 B(Mov), R(arg0), R(4),
500 B(Mov), R(closure), R(5), 500 B(Mov), R(closure), R(5),
501 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), 501 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3),
502 B(PushContext), R(0), 502 B(PushContext), R(0),
503 B(Ldar), R(this), 503 B(Ldar), R(this),
504 B(StaCurrentContextSlot), U8(4), 504 B(StaCurrentContextSlot), U8(4),
505 B(LdaTheHole), 505 B(LdaTheHole),
506 B(StaModuleVariable), I8(1), U8(0), 506 B(StaModuleVariable), I8(1), U8(0),
507 /* 0 E> */ B(StackCheck), 507 /* 0 E> */ B(StackCheck),
508 B(LdaImmutableCurrentContextSlot), U8(4), 508 B(LdaImmutableCurrentContextSlot), U8(4),
509 B(Star), R(5), 509 B(Star), R(5),
510 B(Mov), R(closure), R(4), 510 B(Mov), R(closure), R(4),
511 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8 (2), 511 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(4) , U8(2),
512 B(StaCurrentContextSlot), U8(5), 512 B(StaCurrentContextSlot), U8(5),
513 B(Star), R(4), 513 B(Star), R(4),
514 B(LdaImmutableCurrentContextSlot), U8(5), 514 B(LdaImmutableCurrentContextSlot), U8(5),
515 B(Star), R(5), 515 B(Star), R(5),
516 B(LdaZero), 516 B(LdaZero),
517 B(SuspendGenerator), R(5), U8(0), 517 B(SuspendGenerator), R(5), U8(0),
518 B(Ldar), R(4), 518 B(Ldar), R(4),
519 /* 51 S> */ B(Return), 519 /* 51 S> */ B(Return),
520 B(LdaSmi), I8(-2), 520 B(LdaSmi), I8(-2),
521 B(Star), R(2), 521 B(Star), R(2),
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 ] 570 ]
571 handlers: [ 571 handlers: [
572 ] 572 ]
573 573
574 --- 574 ---
575 snippet: " 575 snippet: "
576 export default (function () {}); 576 export default (function () {});
577 " 577 "
578 frame size: 9 578 frame size: 9
579 parameter count: 2 579 parameter count: 2
580 bytecode array length: 154 580 bytecode array length: 153
581 bytecodes: [ 581 bytecodes: [
582 B(Ldar), R(new_target), 582 B(Ldar), R(new_target),
583 B(JumpIfUndefined), U8(27), 583 B(JumpIfUndefined), U8(27),
584 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 584 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
585 B(PushContext), R(2), 585 B(PushContext), R(2),
586 B(ResumeGenerator), R(new_target), 586 B(ResumeGenerator), R(new_target),
587 B(Star), R(1), 587 B(Star), R(1),
588 B(LdaZero), 588 B(LdaZero),
589 B(TestEqualStrictNoFeedback), R(1), 589 B(TestEqualStrictNoFeedback), R(1),
590 B(JumpIfTrue), U8(68), 590 B(JumpIfTrue), U8(67),
591 B(LdaSmi), I8(79), 591 B(LdaSmi), I8(79),
592 B(Star), R(3), 592 B(Star), R(3),
593 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 593 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
594 B(LdaSmi), I8(-2), 594 B(LdaSmi), I8(-2),
595 B(Star), R(1), 595 B(Star), R(1),
596 B(LdaConstant), U8(0), 596 B(LdaConstant), U8(0),
597 B(Star), R(5), 597 B(Star), R(5),
598 B(Mov), R(arg0), R(3), 598 B(Mov), R(arg0), R(3),
599 B(Mov), R(closure), R(4), 599 B(Mov), R(closure), R(4),
600 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 600 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
601 B(PushContext), R(0), 601 B(PushContext), R(0),
602 B(Ldar), R(this), 602 B(Ldar), R(this),
603 B(StaCurrentContextSlot), U8(4), 603 B(StaCurrentContextSlot), U8(4),
604 B(LdaTheHole), 604 B(LdaTheHole),
605 B(StaModuleVariable), I8(1), U8(0), 605 B(StaModuleVariable), I8(1), U8(0),
606 /* 0 E> */ B(StackCheck), 606 /* 0 E> */ B(StackCheck),
607 B(LdaImmutableCurrentContextSlot), U8(4), 607 B(LdaImmutableCurrentContextSlot), U8(4),
608 B(Star), R(4), 608 B(Star), R(4),
609 B(Mov), R(closure), R(3), 609 B(Mov), R(closure), R(3),
610 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 610 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
611 B(StaCurrentContextSlot), U8(5), 611 B(StaCurrentContextSlot), U8(5),
612 B(Star), R(3), 612 B(Star), R(3),
613 B(LdaImmutableCurrentContextSlot), U8(5), 613 B(LdaImmutableCurrentContextSlot), U8(5),
614 B(Star), R(4), 614 B(Star), R(4),
615 B(LdaZero), 615 B(LdaZero),
616 B(SuspendGenerator), R(4), U8(0), 616 B(SuspendGenerator), R(4), U8(0),
617 B(Ldar), R(3), 617 B(Ldar), R(3),
618 /* 32 S> */ B(Return), 618 /* 32 S> */ B(Return),
619 B(LdaSmi), I8(-2), 619 B(LdaSmi), I8(-2),
620 B(Star), R(1), 620 B(Star), R(1),
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 ] 653 ]
654 handlers: [ 654 handlers: [
655 ] 655 ]
656 656
657 --- 657 ---
658 snippet: " 658 snippet: "
659 export default (class {}); 659 export default (class {});
660 " 660 "
661 frame size: 9 661 frame size: 9
662 parameter count: 2 662 parameter count: 2
663 bytecode array length: 191 663 bytecode array length: 190
664 bytecodes: [ 664 bytecodes: [
665 B(Ldar), R(new_target), 665 B(Ldar), R(new_target),
666 B(JumpIfUndefined), U8(27), 666 B(JumpIfUndefined), U8(27),
667 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 667 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
668 B(PushContext), R(2), 668 B(PushContext), R(2),
669 B(ResumeGenerator), R(new_target), 669 B(ResumeGenerator), R(new_target),
670 B(Star), R(1), 670 B(Star), R(1),
671 B(LdaZero), 671 B(LdaZero),
672 B(TestEqualStrictNoFeedback), R(1), 672 B(TestEqualStrictNoFeedback), R(1),
673 B(JumpIfTrue), U8(68), 673 B(JumpIfTrue), U8(67),
674 B(LdaSmi), I8(79), 674 B(LdaSmi), I8(79),
675 B(Star), R(3), 675 B(Star), R(3),
676 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 676 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
677 B(LdaSmi), I8(-2), 677 B(LdaSmi), I8(-2),
678 B(Star), R(1), 678 B(Star), R(1),
679 B(LdaConstant), U8(0), 679 B(LdaConstant), U8(0),
680 B(Star), R(5), 680 B(Star), R(5),
681 B(Mov), R(arg0), R(3), 681 B(Mov), R(arg0), R(3),
682 B(Mov), R(closure), R(4), 682 B(Mov), R(closure), R(4),
683 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 683 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
684 B(PushContext), R(0), 684 B(PushContext), R(0),
685 B(Ldar), R(this), 685 B(Ldar), R(this),
686 B(StaCurrentContextSlot), U8(4), 686 B(StaCurrentContextSlot), U8(4),
687 B(LdaTheHole), 687 B(LdaTheHole),
688 B(StaModuleVariable), I8(1), U8(0), 688 B(StaModuleVariable), I8(1), U8(0),
689 /* 0 E> */ B(StackCheck), 689 /* 0 E> */ B(StackCheck),
690 B(LdaImmutableCurrentContextSlot), U8(4), 690 B(LdaImmutableCurrentContextSlot), U8(4),
691 B(Star), R(4), 691 B(Star), R(4),
692 B(Mov), R(closure), R(3), 692 B(Mov), R(closure), R(3),
693 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 693 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
694 B(StaCurrentContextSlot), U8(5), 694 B(StaCurrentContextSlot), U8(5),
695 B(Star), R(3), 695 B(Star), R(3),
696 B(LdaImmutableCurrentContextSlot), U8(5), 696 B(LdaImmutableCurrentContextSlot), U8(5),
697 B(Star), R(4), 697 B(Star), R(4),
698 B(LdaZero), 698 B(LdaZero),
699 B(SuspendGenerator), R(4), U8(0), 699 B(SuspendGenerator), R(4), U8(0),
700 B(Ldar), R(3), 700 B(Ldar), R(3),
701 /* 26 S> */ B(Return), 701 /* 26 S> */ B(Return),
702 B(LdaSmi), I8(-2), 702 B(LdaSmi), I8(-2),
703 B(Star), R(1), 703 B(Star), R(1),
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 ] 750 ]
751 handlers: [ 751 handlers: [
752 ] 752 ]
753 753
754 --- 754 ---
755 snippet: " 755 snippet: "
756 export {foo as goo} from \"bar\" 756 export {foo as goo} from \"bar\"
757 " 757 "
758 frame size: 9 758 frame size: 9
759 parameter count: 2 759 parameter count: 2
760 bytecode array length: 143 760 bytecode array length: 142
761 bytecodes: [ 761 bytecodes: [
762 B(Ldar), R(new_target), 762 B(Ldar), R(new_target),
763 B(JumpIfUndefined), U8(27), 763 B(JumpIfUndefined), U8(27),
764 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 764 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
765 B(PushContext), R(2), 765 B(PushContext), R(2),
766 B(ResumeGenerator), R(new_target), 766 B(ResumeGenerator), R(new_target),
767 B(Star), R(1), 767 B(Star), R(1),
768 B(LdaZero), 768 B(LdaZero),
769 B(TestEqualStrictNoFeedback), R(1), 769 B(TestEqualStrictNoFeedback), R(1),
770 B(JumpIfTrue), U8(64), 770 B(JumpIfTrue), U8(63),
771 B(LdaSmi), I8(79), 771 B(LdaSmi), I8(79),
772 B(Star), R(3), 772 B(Star), R(3),
773 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 773 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
774 B(LdaSmi), I8(-2), 774 B(LdaSmi), I8(-2),
775 B(Star), R(1), 775 B(Star), R(1),
776 B(LdaConstant), U8(0), 776 B(LdaConstant), U8(0),
777 B(Star), R(5), 777 B(Star), R(5),
778 B(Mov), R(arg0), R(3), 778 B(Mov), R(arg0), R(3),
779 B(Mov), R(closure), R(4), 779 B(Mov), R(closure), R(4),
780 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 780 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
781 B(PushContext), R(0), 781 B(PushContext), R(0),
782 B(Ldar), R(this), 782 B(Ldar), R(this),
783 B(StaCurrentContextSlot), U8(4), 783 B(StaCurrentContextSlot), U8(4),
784 /* 0 E> */ B(StackCheck), 784 /* 0 E> */ B(StackCheck),
785 B(LdaImmutableCurrentContextSlot), U8(4), 785 B(LdaImmutableCurrentContextSlot), U8(4),
786 B(Star), R(4), 786 B(Star), R(4),
787 B(Mov), R(closure), R(3), 787 B(Mov), R(closure), R(3),
788 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 788 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
789 B(StaCurrentContextSlot), U8(5), 789 B(StaCurrentContextSlot), U8(5),
790 B(Star), R(3), 790 B(Star), R(3),
791 B(LdaImmutableCurrentContextSlot), U8(5), 791 B(LdaImmutableCurrentContextSlot), U8(5),
792 B(Star), R(4), 792 B(Star), R(4),
793 B(LdaZero), 793 B(LdaZero),
794 B(SuspendGenerator), R(4), U8(0), 794 B(SuspendGenerator), R(4), U8(0),
795 B(Ldar), R(3), 795 B(Ldar), R(3),
796 /* 30 S> */ B(Return), 796 /* 30 S> */ B(Return),
797 B(LdaSmi), I8(-2), 797 B(LdaSmi), I8(-2),
798 B(Star), R(1), 798 B(Star), R(1),
(...skipping 29 matching lines...) Expand all
828 ] 828 ]
829 handlers: [ 829 handlers: [
830 ] 830 ]
831 831
832 --- 832 ---
833 snippet: " 833 snippet: "
834 export * from \"bar\" 834 export * from \"bar\"
835 " 835 "
836 frame size: 9 836 frame size: 9
837 parameter count: 2 837 parameter count: 2
838 bytecode array length: 143 838 bytecode array length: 142
839 bytecodes: [ 839 bytecodes: [
840 B(Ldar), R(new_target), 840 B(Ldar), R(new_target),
841 B(JumpIfUndefined), U8(27), 841 B(JumpIfUndefined), U8(27),
842 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 842 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
843 B(PushContext), R(2), 843 B(PushContext), R(2),
844 B(ResumeGenerator), R(new_target), 844 B(ResumeGenerator), R(new_target),
845 B(Star), R(1), 845 B(Star), R(1),
846 B(LdaZero), 846 B(LdaZero),
847 B(TestEqualStrictNoFeedback), R(1), 847 B(TestEqualStrictNoFeedback), R(1),
848 B(JumpIfTrue), U8(64), 848 B(JumpIfTrue), U8(63),
849 B(LdaSmi), I8(79), 849 B(LdaSmi), I8(79),
850 B(Star), R(3), 850 B(Star), R(3),
851 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 851 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
852 B(LdaSmi), I8(-2), 852 B(LdaSmi), I8(-2),
853 B(Star), R(1), 853 B(Star), R(1),
854 B(LdaConstant), U8(0), 854 B(LdaConstant), U8(0),
855 B(Star), R(5), 855 B(Star), R(5),
856 B(Mov), R(arg0), R(3), 856 B(Mov), R(arg0), R(3),
857 B(Mov), R(closure), R(4), 857 B(Mov), R(closure), R(4),
858 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 858 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
859 B(PushContext), R(0), 859 B(PushContext), R(0),
860 B(Ldar), R(this), 860 B(Ldar), R(this),
861 B(StaCurrentContextSlot), U8(4), 861 B(StaCurrentContextSlot), U8(4),
862 /* 0 E> */ B(StackCheck), 862 /* 0 E> */ B(StackCheck),
863 B(LdaImmutableCurrentContextSlot), U8(4), 863 B(LdaImmutableCurrentContextSlot), U8(4),
864 B(Star), R(4), 864 B(Star), R(4),
865 B(Mov), R(closure), R(3), 865 B(Mov), R(closure), R(3),
866 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 866 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
867 B(StaCurrentContextSlot), U8(5), 867 B(StaCurrentContextSlot), U8(5),
868 B(Star), R(3), 868 B(Star), R(3),
869 B(LdaImmutableCurrentContextSlot), U8(5), 869 B(LdaImmutableCurrentContextSlot), U8(5),
870 B(Star), R(4), 870 B(Star), R(4),
871 B(LdaZero), 871 B(LdaZero),
872 B(SuspendGenerator), R(4), U8(0), 872 B(SuspendGenerator), R(4), U8(0),
873 B(Ldar), R(3), 873 B(Ldar), R(3),
874 /* 19 S> */ B(Return), 874 /* 19 S> */ B(Return),
875 B(LdaSmi), I8(-2), 875 B(LdaSmi), I8(-2),
876 B(Star), R(1), 876 B(Star), R(1),
(...skipping 30 matching lines...) Expand all
907 handlers: [ 907 handlers: [
908 ] 908 ]
909 909
910 --- 910 ---
911 snippet: " 911 snippet: "
912 import * as foo from \"bar\" 912 import * as foo from \"bar\"
913 foo.f(foo, foo.x); 913 foo.f(foo, foo.x);
914 " 914 "
915 frame size: 9 915 frame size: 9
916 parameter count: 2 916 parameter count: 2
917 bytecode array length: 181 917 bytecode array length: 180
918 bytecodes: [ 918 bytecodes: [
919 B(Ldar), R(new_target), 919 B(Ldar), R(new_target),
920 B(JumpIfUndefined), U8(27), 920 B(JumpIfUndefined), U8(27),
921 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 921 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
922 B(PushContext), R(2), 922 B(PushContext), R(2),
923 B(ResumeGenerator), R(new_target), 923 B(ResumeGenerator), R(new_target),
924 B(Star), R(1), 924 B(Star), R(1),
925 B(LdaZero), 925 B(LdaZero),
926 B(TestEqualStrictNoFeedback), R(1), 926 B(TestEqualStrictNoFeedback), R(1),
927 B(JumpIfTrue), U8(74), 927 B(JumpIfTrue), U8(73),
928 B(LdaSmi), I8(79), 928 B(LdaSmi), I8(79),
929 B(Star), R(3), 929 B(Star), R(3),
930 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 930 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
931 B(LdaSmi), I8(-2), 931 B(LdaSmi), I8(-2),
932 B(Star), R(1), 932 B(Star), R(1),
933 B(LdaConstant), U8(0), 933 B(LdaConstant), U8(0),
934 B(Star), R(5), 934 B(Star), R(5),
935 B(Mov), R(arg0), R(3), 935 B(Mov), R(arg0), R(3),
936 B(Mov), R(closure), R(4), 936 B(Mov), R(closure), R(4),
937 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 937 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
938 B(PushContext), R(0), 938 B(PushContext), R(0),
939 B(Ldar), R(this), 939 B(Ldar), R(this),
940 B(StaCurrentContextSlot), U8(4), 940 B(StaCurrentContextSlot), U8(4),
941 B(LdaZero), 941 B(LdaZero),
942 B(Star), R(3), 942 B(Star), R(3),
943 B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1), 943 B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1),
944 B(StaCurrentContextSlot), U8(6), 944 B(StaCurrentContextSlot), U8(6),
945 /* 0 E> */ B(StackCheck), 945 /* 0 E> */ B(StackCheck),
946 B(LdaImmutableCurrentContextSlot), U8(4), 946 B(LdaImmutableCurrentContextSlot), U8(4),
947 B(Star), R(4), 947 B(Star), R(4),
948 B(Mov), R(closure), R(3), 948 B(Mov), R(closure), R(3),
949 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 949 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
950 B(StaCurrentContextSlot), U8(5), 950 B(StaCurrentContextSlot), U8(5),
951 B(Star), R(3), 951 B(Star), R(3),
952 B(LdaImmutableCurrentContextSlot), U8(5), 952 B(LdaImmutableCurrentContextSlot), U8(5),
953 B(Star), R(4), 953 B(Star), R(4),
954 B(LdaZero), 954 B(LdaZero),
955 B(SuspendGenerator), R(4), U8(0), 955 B(SuspendGenerator), R(4), U8(0),
956 B(Ldar), R(3), 956 B(Ldar), R(3),
957 /* 45 S> */ B(Return), 957 /* 45 S> */ B(Return),
958 B(LdaSmi), I8(-2), 958 B(LdaSmi), I8(-2),
959 B(Star), R(1), 959 B(Star), R(1),
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 /* 45 S> */ B(Return), 995 /* 45 S> */ B(Return),
996 ] 996 ]
997 constant pool: [ 997 constant pool: [
998 FIXED_ARRAY_TYPE, 998 FIXED_ARRAY_TYPE,
999 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], 999 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
1000 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 1000 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
1001 ] 1001 ]
1002 handlers: [ 1002 handlers: [
1003 ] 1003 ]
1004 1004
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698