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

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

Issue 2861983002: [ignition] Optimize JSGenerator creation (Closed)
Patch Set: rebase 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: 187 663 bytecode array length: 186
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 ] 748 ]
749 handlers: [ 749 handlers: [
750 ] 750 ]
751 751
752 --- 752 ---
753 snippet: " 753 snippet: "
754 export {foo as goo} from \"bar\" 754 export {foo as goo} from \"bar\"
755 " 755 "
756 frame size: 9 756 frame size: 9
757 parameter count: 2 757 parameter count: 2
758 bytecode array length: 143 758 bytecode array length: 142
759 bytecodes: [ 759 bytecodes: [
760 B(Ldar), R(new_target), 760 B(Ldar), R(new_target),
761 B(JumpIfUndefined), U8(27), 761 B(JumpIfUndefined), U8(27),
762 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 762 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
763 B(PushContext), R(2), 763 B(PushContext), R(2),
764 B(ResumeGenerator), R(new_target), 764 B(ResumeGenerator), R(new_target),
765 B(Star), R(1), 765 B(Star), R(1),
766 B(LdaZero), 766 B(LdaZero),
767 B(TestEqualStrictNoFeedback), R(1), 767 B(TestEqualStrictNoFeedback), R(1),
768 B(JumpIfTrue), U8(64), 768 B(JumpIfTrue), U8(63),
769 B(LdaSmi), I8(79), 769 B(LdaSmi), I8(79),
770 B(Star), R(3), 770 B(Star), R(3),
771 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 771 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
772 B(LdaSmi), I8(-2), 772 B(LdaSmi), I8(-2),
773 B(Star), R(1), 773 B(Star), R(1),
774 B(LdaConstant), U8(0), 774 B(LdaConstant), U8(0),
775 B(Star), R(5), 775 B(Star), R(5),
776 B(Mov), R(arg0), R(3), 776 B(Mov), R(arg0), R(3),
777 B(Mov), R(closure), R(4), 777 B(Mov), R(closure), R(4),
778 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 778 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
779 B(PushContext), R(0), 779 B(PushContext), R(0),
780 B(Ldar), R(this), 780 B(Ldar), R(this),
781 B(StaCurrentContextSlot), U8(4), 781 B(StaCurrentContextSlot), U8(4),
782 /* 0 E> */ B(StackCheck), 782 /* 0 E> */ B(StackCheck),
783 B(LdaImmutableCurrentContextSlot), U8(4), 783 B(LdaImmutableCurrentContextSlot), U8(4),
784 B(Star), R(4), 784 B(Star), R(4),
785 B(Mov), R(closure), R(3), 785 B(Mov), R(closure), R(3),
786 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 786 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
787 B(StaCurrentContextSlot), U8(5), 787 B(StaCurrentContextSlot), U8(5),
788 B(Star), R(3), 788 B(Star), R(3),
789 B(LdaImmutableCurrentContextSlot), U8(5), 789 B(LdaImmutableCurrentContextSlot), U8(5),
790 B(Star), R(4), 790 B(Star), R(4),
791 B(LdaZero), 791 B(LdaZero),
792 B(SuspendGenerator), R(4), U8(0), 792 B(SuspendGenerator), R(4), U8(0),
793 B(Ldar), R(3), 793 B(Ldar), R(3),
794 /* 30 S> */ B(Return), 794 /* 30 S> */ B(Return),
795 B(LdaSmi), I8(-2), 795 B(LdaSmi), I8(-2),
796 B(Star), R(1), 796 B(Star), R(1),
(...skipping 29 matching lines...) Expand all
826 ] 826 ]
827 handlers: [ 827 handlers: [
828 ] 828 ]
829 829
830 --- 830 ---
831 snippet: " 831 snippet: "
832 export * from \"bar\" 832 export * from \"bar\"
833 " 833 "
834 frame size: 9 834 frame size: 9
835 parameter count: 2 835 parameter count: 2
836 bytecode array length: 143 836 bytecode array length: 142
837 bytecodes: [ 837 bytecodes: [
838 B(Ldar), R(new_target), 838 B(Ldar), R(new_target),
839 B(JumpIfUndefined), U8(27), 839 B(JumpIfUndefined), U8(27),
840 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 840 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
841 B(PushContext), R(2), 841 B(PushContext), R(2),
842 B(ResumeGenerator), R(new_target), 842 B(ResumeGenerator), R(new_target),
843 B(Star), R(1), 843 B(Star), R(1),
844 B(LdaZero), 844 B(LdaZero),
845 B(TestEqualStrictNoFeedback), R(1), 845 B(TestEqualStrictNoFeedback), R(1),
846 B(JumpIfTrue), U8(64), 846 B(JumpIfTrue), U8(63),
847 B(LdaSmi), I8(79), 847 B(LdaSmi), I8(79),
848 B(Star), R(3), 848 B(Star), R(3),
849 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 849 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
850 B(LdaSmi), I8(-2), 850 B(LdaSmi), I8(-2),
851 B(Star), R(1), 851 B(Star), R(1),
852 B(LdaConstant), U8(0), 852 B(LdaConstant), U8(0),
853 B(Star), R(5), 853 B(Star), R(5),
854 B(Mov), R(arg0), R(3), 854 B(Mov), R(arg0), R(3),
855 B(Mov), R(closure), R(4), 855 B(Mov), R(closure), R(4),
856 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 856 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
857 B(PushContext), R(0), 857 B(PushContext), R(0),
858 B(Ldar), R(this), 858 B(Ldar), R(this),
859 B(StaCurrentContextSlot), U8(4), 859 B(StaCurrentContextSlot), U8(4),
860 /* 0 E> */ B(StackCheck), 860 /* 0 E> */ B(StackCheck),
861 B(LdaImmutableCurrentContextSlot), U8(4), 861 B(LdaImmutableCurrentContextSlot), U8(4),
862 B(Star), R(4), 862 B(Star), R(4),
863 B(Mov), R(closure), R(3), 863 B(Mov), R(closure), R(3),
864 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 864 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
865 B(StaCurrentContextSlot), U8(5), 865 B(StaCurrentContextSlot), U8(5),
866 B(Star), R(3), 866 B(Star), R(3),
867 B(LdaImmutableCurrentContextSlot), U8(5), 867 B(LdaImmutableCurrentContextSlot), U8(5),
868 B(Star), R(4), 868 B(Star), R(4),
869 B(LdaZero), 869 B(LdaZero),
870 B(SuspendGenerator), R(4), U8(0), 870 B(SuspendGenerator), R(4), U8(0),
871 B(Ldar), R(3), 871 B(Ldar), R(3),
872 /* 19 S> */ B(Return), 872 /* 19 S> */ B(Return),
873 B(LdaSmi), I8(-2), 873 B(LdaSmi), I8(-2),
874 B(Star), R(1), 874 B(Star), R(1),
(...skipping 30 matching lines...) Expand all
905 handlers: [ 905 handlers: [
906 ] 906 ]
907 907
908 --- 908 ---
909 snippet: " 909 snippet: "
910 import * as foo from \"bar\" 910 import * as foo from \"bar\"
911 foo.f(foo, foo.x); 911 foo.f(foo, foo.x);
912 " 912 "
913 frame size: 9 913 frame size: 9
914 parameter count: 2 914 parameter count: 2
915 bytecode array length: 181 915 bytecode array length: 180
916 bytecodes: [ 916 bytecodes: [
917 B(Ldar), R(new_target), 917 B(Ldar), R(new_target),
918 B(JumpIfUndefined), U8(27), 918 B(JumpIfUndefined), U8(27),
919 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 919 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
920 B(PushContext), R(2), 920 B(PushContext), R(2),
921 B(ResumeGenerator), R(new_target), 921 B(ResumeGenerator), R(new_target),
922 B(Star), R(1), 922 B(Star), R(1),
923 B(LdaZero), 923 B(LdaZero),
924 B(TestEqualStrictNoFeedback), R(1), 924 B(TestEqualStrictNoFeedback), R(1),
925 B(JumpIfTrue), U8(74), 925 B(JumpIfTrue), U8(73),
926 B(LdaSmi), I8(79), 926 B(LdaSmi), I8(79),
927 B(Star), R(3), 927 B(Star), R(3),
928 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 928 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
929 B(LdaSmi), I8(-2), 929 B(LdaSmi), I8(-2),
930 B(Star), R(1), 930 B(Star), R(1),
931 B(LdaConstant), U8(0), 931 B(LdaConstant), U8(0),
932 B(Star), R(5), 932 B(Star), R(5),
933 B(Mov), R(arg0), R(3), 933 B(Mov), R(arg0), R(3),
934 B(Mov), R(closure), R(4), 934 B(Mov), R(closure), R(4),
935 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 935 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
936 B(PushContext), R(0), 936 B(PushContext), R(0),
937 B(Ldar), R(this), 937 B(Ldar), R(this),
938 B(StaCurrentContextSlot), U8(4), 938 B(StaCurrentContextSlot), U8(4),
939 B(LdaZero), 939 B(LdaZero),
940 B(Star), R(3), 940 B(Star), R(3),
941 B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1), 941 B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1),
942 B(StaCurrentContextSlot), U8(6), 942 B(StaCurrentContextSlot), U8(6),
943 /* 0 E> */ B(StackCheck), 943 /* 0 E> */ B(StackCheck),
944 B(LdaImmutableCurrentContextSlot), U8(4), 944 B(LdaImmutableCurrentContextSlot), U8(4),
945 B(Star), R(4), 945 B(Star), R(4),
946 B(Mov), R(closure), R(3), 946 B(Mov), R(closure), R(3),
947 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 947 /* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3) , U8(2),
948 B(StaCurrentContextSlot), U8(5), 948 B(StaCurrentContextSlot), U8(5),
949 B(Star), R(3), 949 B(Star), R(3),
950 B(LdaImmutableCurrentContextSlot), U8(5), 950 B(LdaImmutableCurrentContextSlot), U8(5),
951 B(Star), R(4), 951 B(Star), R(4),
952 B(LdaZero), 952 B(LdaZero),
953 B(SuspendGenerator), R(4), U8(0), 953 B(SuspendGenerator), R(4), U8(0),
954 B(Ldar), R(3), 954 B(Ldar), R(3),
955 /* 45 S> */ B(Return), 955 /* 45 S> */ B(Return),
956 B(LdaSmi), I8(-2), 956 B(LdaSmi), I8(-2),
957 B(Star), R(1), 957 B(Star), R(1),
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 /* 45 S> */ B(Return), 993 /* 45 S> */ B(Return),
994 ] 994 ]
995 constant pool: [ 995 constant pool: [
996 FIXED_ARRAY_TYPE, 996 FIXED_ARRAY_TYPE,
997 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], 997 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
998 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 998 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
999 ] 999 ]
1000 handlers: [ 1000 handlers: [
1001 ] 1001 ]
1002 1002
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698