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

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

Issue 2936813002: Move closing of generators upon final return to the generator-resume builtin. (Closed)
Patch Set: Add TODO Created 3 years, 6 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: 5 14 frame size: 5
15 parameter count: 2 15 parameter count: 2
16 bytecode array length: 120 16 bytecode array length: 111
17 bytecodes: [ 17 bytecodes: [
18 B(Mov), R(new_target), R(0), 18 B(Mov), R(new_target), R(0),
19 B(Ldar), R(new_target), 19 B(Ldar), R(new_target),
20 B(JumpIfUndefined), U8(25), 20 B(JumpIfUndefined), U8(25),
21 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 21 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
22 B(PushContext), R(2), 22 B(PushContext), R(2),
23 B(RestoreGeneratorState), R(0), 23 B(RestoreGeneratorState), R(0),
24 B(Star), R(1), 24 B(Star), R(1),
25 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 25 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
26 B(LdaSmi), I8(79), 26 B(LdaSmi), I8(79),
(...skipping 25 matching lines...) Expand all
52 B(Star), R(3), 52 B(Star), R(3),
53 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1), 53 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
54 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), 54 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
55 B(Ldar), R(3), 55 B(Ldar), R(3),
56 /* 0 E> */ B(Throw), 56 /* 0 E> */ B(Throw),
57 B(Ldar), R(3), 57 B(Ldar), R(3),
58 /* 13 S> */ B(Return), 58 /* 13 S> */ B(Return),
59 B(Ldar), R(3), 59 B(Ldar), R(3),
60 B(StaCurrentContextSlot), U8(5), 60 B(StaCurrentContextSlot), U8(5),
61 B(LdaCurrentContextSlot), U8(5), 61 B(LdaCurrentContextSlot), U8(5),
62 B(Star), R(3),
63 B(LdaTrue),
64 B(Star), R(4),
65 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
66 /* 13 S> */ B(Return), 62 /* 13 S> */ B(Return),
67 ] 63 ]
68 constant pool: [ 64 constant pool: [
69 Smi [59], 65 Smi [59],
70 FIXED_ARRAY_TYPE, 66 FIXED_ARRAY_TYPE,
71 Smi [10], 67 Smi [10],
72 Smi [7], 68 Smi [7],
73 ] 69 ]
74 handlers: [ 70 handlers: [
75 ] 71 ]
76 72
77 --- 73 ---
78 snippet: " 74 snippet: "
79 import {foo} from \"bar\"; 75 import {foo} from \"bar\";
80 " 76 "
81 frame size: 5 77 frame size: 5
82 parameter count: 2 78 parameter count: 2
83 bytecode array length: 120 79 bytecode array length: 111
84 bytecodes: [ 80 bytecodes: [
85 B(Mov), R(new_target), R(0), 81 B(Mov), R(new_target), R(0),
86 B(Ldar), R(new_target), 82 B(Ldar), R(new_target),
87 B(JumpIfUndefined), U8(25), 83 B(JumpIfUndefined), U8(25),
88 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 84 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
89 B(PushContext), R(2), 85 B(PushContext), R(2),
90 B(RestoreGeneratorState), R(0), 86 B(RestoreGeneratorState), R(0),
91 B(Star), R(1), 87 B(Star), R(1),
92 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 88 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
93 B(LdaSmi), I8(79), 89 B(LdaSmi), I8(79),
(...skipping 25 matching lines...) Expand all
119 B(Star), R(3), 115 B(Star), R(3),
120 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1), 116 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
121 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), 117 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
122 B(Ldar), R(3), 118 B(Ldar), R(3),
123 /* 0 E> */ B(Throw), 119 /* 0 E> */ B(Throw),
124 B(Ldar), R(3), 120 B(Ldar), R(3),
125 /* 24 S> */ B(Return), 121 /* 24 S> */ B(Return),
126 B(Ldar), R(3), 122 B(Ldar), R(3),
127 B(StaCurrentContextSlot), U8(5), 123 B(StaCurrentContextSlot), U8(5),
128 B(LdaCurrentContextSlot), U8(5), 124 B(LdaCurrentContextSlot), U8(5),
129 B(Star), R(3),
130 B(LdaTrue),
131 B(Star), R(4),
132 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
133 /* 24 S> */ B(Return), 125 /* 24 S> */ B(Return),
134 ] 126 ]
135 constant pool: [ 127 constant pool: [
136 Smi [59], 128 Smi [59],
137 FIXED_ARRAY_TYPE, 129 FIXED_ARRAY_TYPE,
138 Smi [10], 130 Smi [10],
139 Smi [7], 131 Smi [7],
140 ] 132 ]
141 handlers: [ 133 handlers: [
142 ] 134 ]
143 135
144 --- 136 ---
145 snippet: " 137 snippet: "
146 import {foo as goo} from \"bar\"; 138 import {foo as goo} from \"bar\";
147 goo(42); 139 goo(42);
148 { let x; { goo(42) } }; 140 { let x; { goo(42) } };
149 " 141 "
150 frame size: 6 142 frame size: 6
151 parameter count: 2 143 parameter count: 2
152 bytecode array length: 164 144 bytecode array length: 155
153 bytecodes: [ 145 bytecodes: [
154 B(Mov), R(new_target), R(0), 146 B(Mov), R(new_target), R(0),
155 B(Ldar), R(new_target), 147 B(Ldar), R(new_target),
156 B(JumpIfUndefined), U8(25), 148 B(JumpIfUndefined), U8(25),
157 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 149 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
158 B(PushContext), R(2), 150 B(PushContext), R(2),
159 B(RestoreGeneratorState), R(0), 151 B(RestoreGeneratorState), R(0),
160 B(Star), R(1), 152 B(Star), R(1),
161 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 153 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
162 B(LdaSmi), I8(79), 154 B(LdaSmi), I8(79),
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 /* 47 E> */ B(StaCurrentContextSlot), U8(4), 199 /* 47 E> */ B(StaCurrentContextSlot), U8(4),
208 /* 52 S> */ B(LdaModuleVariable), I8(-1), U8(1), 200 /* 52 S> */ B(LdaModuleVariable), I8(-1), U8(1),
209 B(ThrowReferenceErrorIfHole), U8(4), 201 B(ThrowReferenceErrorIfHole), U8(4),
210 B(Star), R(4), 202 B(Star), R(4),
211 B(LdaSmi), I8(42), 203 B(LdaSmi), I8(42),
212 B(Star), R(5), 204 B(Star), R(5),
213 /* 52 E> */ B(CallUndefinedReceiver1), R(4), R(5), U8(5), 205 /* 52 E> */ B(CallUndefinedReceiver1), R(4), R(5), U8(5),
214 B(StaContextSlot), R(3), U8(5), U8(0), 206 B(StaContextSlot), R(3), U8(5), U8(0),
215 B(PopContext), R(3), 207 B(PopContext), R(3),
216 B(LdaCurrentContextSlot), U8(5), 208 B(LdaCurrentContextSlot), U8(5),
217 B(Star), R(3),
218 B(LdaTrue),
219 B(Star), R(4),
220 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
221 /* 64 S> */ B(Return), 209 /* 64 S> */ B(Return),
222 ] 210 ]
223 constant pool: [ 211 constant pool: [
224 Smi [59], 212 Smi [59],
225 FIXED_ARRAY_TYPE, 213 FIXED_ARRAY_TYPE,
226 Smi [10], 214 Smi [10],
227 Smi [7], 215 Smi [7],
228 ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"], 216 ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"],
229 FIXED_ARRAY_TYPE, 217 FIXED_ARRAY_TYPE,
230 ] 218 ]
231 handlers: [ 219 handlers: [
232 ] 220 ]
233 221
234 --- 222 ---
235 snippet: " 223 snippet: "
236 export var foo = 42; 224 export var foo = 42;
237 foo++; 225 foo++;
238 { let x; { foo++ } }; 226 { let x; { foo++ } };
239 " 227 "
240 frame size: 5 228 frame size: 5
241 parameter count: 2 229 parameter count: 2
242 bytecode array length: 162 230 bytecode array length: 153
243 bytecodes: [ 231 bytecodes: [
244 B(Mov), R(new_target), R(0), 232 B(Mov), R(new_target), R(0),
245 B(Ldar), R(new_target), 233 B(Ldar), R(new_target),
246 B(JumpIfUndefined), U8(25), 234 B(JumpIfUndefined), U8(25),
247 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 235 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
248 B(PushContext), R(2), 236 B(PushContext), R(2),
249 B(RestoreGeneratorState), R(0), 237 B(RestoreGeneratorState), R(0),
250 B(Star), R(1), 238 B(Star), R(1),
251 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 239 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
252 B(LdaSmi), I8(79), 240 B(LdaSmi), I8(79),
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 /* 34 E> */ B(StaCurrentContextSlot), U8(4), 284 /* 34 E> */ B(StaCurrentContextSlot), U8(4),
297 /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1), 285 /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1),
298 B(ToNumber), R(4), U8(4), 286 B(ToNumber), R(4), U8(4),
299 B(Ldar), R(4), 287 B(Ldar), R(4),
300 B(Inc), U8(4), 288 B(Inc), U8(4),
301 /* 42 E> */ B(StaModuleVariable), I8(1), U8(1), 289 /* 42 E> */ B(StaModuleVariable), I8(1), U8(1),
302 B(Ldar), R(4), 290 B(Ldar), R(4),
303 B(StaContextSlot), R(3), U8(5), U8(0), 291 B(StaContextSlot), R(3), U8(5), U8(0),
304 B(PopContext), R(3), 292 B(PopContext), R(3),
305 B(LdaCurrentContextSlot), U8(5), 293 B(LdaCurrentContextSlot), U8(5),
306 B(Star), R(3),
307 B(LdaTrue),
308 B(Star), R(4),
309 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
310 /* 49 S> */ B(Return), 294 /* 49 S> */ B(Return),
311 ] 295 ]
312 constant pool: [ 296 constant pool: [
313 Smi [59], 297 Smi [59],
314 FIXED_ARRAY_TYPE, 298 FIXED_ARRAY_TYPE,
315 Smi [10], 299 Smi [10],
316 Smi [7], 300 Smi [7],
317 FIXED_ARRAY_TYPE, 301 FIXED_ARRAY_TYPE,
318 ] 302 ]
319 handlers: [ 303 handlers: [
320 ] 304 ]
321 305
322 --- 306 ---
323 snippet: " 307 snippet: "
324 export let foo = 42; 308 export let foo = 42;
325 foo++; 309 foo++;
326 { let x; { foo++ } }; 310 { let x; { foo++ } };
327 " 311 "
328 frame size: 5 312 frame size: 5
329 parameter count: 2 313 parameter count: 2
330 bytecode array length: 166 314 bytecode array length: 157
331 bytecodes: [ 315 bytecodes: [
332 B(Mov), R(new_target), R(0), 316 B(Mov), R(new_target), R(0),
333 B(Ldar), R(new_target), 317 B(Ldar), R(new_target),
334 B(JumpIfUndefined), U8(25), 318 B(JumpIfUndefined), U8(25),
335 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 319 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
336 B(PushContext), R(2), 320 B(PushContext), R(2),
337 B(RestoreGeneratorState), R(0), 321 B(RestoreGeneratorState), R(0),
338 B(Star), R(1), 322 B(Star), R(1),
339 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 323 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
340 B(LdaSmi), I8(79), 324 B(LdaSmi), I8(79),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 /* 34 E> */ B(StaCurrentContextSlot), U8(4), 370 /* 34 E> */ B(StaCurrentContextSlot), U8(4),
387 /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1), 371 /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1),
388 B(ToNumber), R(4), U8(4), 372 B(ToNumber), R(4), U8(4),
389 B(Ldar), R(4), 373 B(Ldar), R(4),
390 B(Inc), U8(4), 374 B(Inc), U8(4),
391 /* 42 E> */ B(StaModuleVariable), I8(1), U8(1), 375 /* 42 E> */ B(StaModuleVariable), I8(1), U8(1),
392 B(Ldar), R(4), 376 B(Ldar), R(4),
393 B(StaContextSlot), R(3), U8(5), U8(0), 377 B(StaContextSlot), R(3), U8(5), U8(0),
394 B(PopContext), R(3), 378 B(PopContext), R(3),
395 B(LdaCurrentContextSlot), U8(5), 379 B(LdaCurrentContextSlot), U8(5),
396 B(Star), R(3),
397 B(LdaTrue),
398 B(Star), R(4),
399 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
400 /* 49 S> */ B(Return), 380 /* 49 S> */ B(Return),
401 ] 381 ]
402 constant pool: [ 382 constant pool: [
403 Smi [63], 383 Smi [63],
404 FIXED_ARRAY_TYPE, 384 FIXED_ARRAY_TYPE,
405 Smi [10], 385 Smi [10],
406 Smi [7], 386 Smi [7],
407 FIXED_ARRAY_TYPE, 387 FIXED_ARRAY_TYPE,
408 ] 388 ]
409 handlers: [ 389 handlers: [
410 ] 390 ]
411 391
412 --- 392 ---
413 snippet: " 393 snippet: "
414 export const foo = 42; 394 export const foo = 42;
415 foo++; 395 foo++;
416 { let x; { foo++ } }; 396 { let x; { foo++ } };
417 " 397 "
418 frame size: 5 398 frame size: 5
419 parameter count: 2 399 parameter count: 2
420 bytecode array length: 170 400 bytecode array length: 161
421 bytecodes: [ 401 bytecodes: [
422 B(Mov), R(new_target), R(0), 402 B(Mov), R(new_target), R(0),
423 B(Ldar), R(new_target), 403 B(Ldar), R(new_target),
424 B(JumpIfUndefined), U8(25), 404 B(JumpIfUndefined), U8(25),
425 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 405 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
426 B(PushContext), R(2), 406 B(PushContext), R(2),
427 B(RestoreGeneratorState), R(0), 407 B(RestoreGeneratorState), R(0),
428 B(Star), R(1), 408 B(Star), R(1),
429 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 409 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
430 B(LdaSmi), I8(79), 410 B(LdaSmi), I8(79),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 /* 36 E> */ B(StaCurrentContextSlot), U8(4), 456 /* 36 E> */ B(StaCurrentContextSlot), U8(4),
477 /* 41 S> */ B(LdaModuleVariable), I8(1), U8(1), 457 /* 41 S> */ B(LdaModuleVariable), I8(1), U8(1),
478 B(ToNumber), R(4), U8(4), 458 B(ToNumber), R(4), U8(4),
479 B(Ldar), R(4), 459 B(Ldar), R(4),
480 B(Inc), U8(4), 460 B(Inc), U8(4),
481 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 461 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
482 B(Ldar), R(4), 462 B(Ldar), R(4),
483 B(StaContextSlot), R(3), U8(5), U8(0), 463 B(StaContextSlot), R(3), U8(5), U8(0),
484 B(PopContext), R(3), 464 B(PopContext), R(3),
485 B(LdaCurrentContextSlot), U8(5), 465 B(LdaCurrentContextSlot), U8(5),
486 B(Star), R(3),
487 B(LdaTrue),
488 B(Star), R(4),
489 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
490 /* 51 S> */ B(Return), 466 /* 51 S> */ B(Return),
491 ] 467 ]
492 constant pool: [ 468 constant pool: [
493 Smi [63], 469 Smi [63],
494 FIXED_ARRAY_TYPE, 470 FIXED_ARRAY_TYPE,
495 Smi [10], 471 Smi [10],
496 Smi [7], 472 Smi [7],
497 FIXED_ARRAY_TYPE, 473 FIXED_ARRAY_TYPE,
498 ] 474 ]
499 handlers: [ 475 handlers: [
500 ] 476 ]
501 477
502 --- 478 ---
503 snippet: " 479 snippet: "
504 export default (function () {}); 480 export default (function () {});
505 " 481 "
506 frame size: 5 482 frame size: 5
507 parameter count: 2 483 parameter count: 2
508 bytecode array length: 131 484 bytecode array length: 122
509 bytecodes: [ 485 bytecodes: [
510 B(Mov), R(new_target), R(0), 486 B(Mov), R(new_target), R(0),
511 B(Ldar), R(new_target), 487 B(Ldar), R(new_target),
512 B(JumpIfUndefined), U8(25), 488 B(JumpIfUndefined), U8(25),
513 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 489 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
514 B(PushContext), R(2), 490 B(PushContext), R(2),
515 B(RestoreGeneratorState), R(0), 491 B(RestoreGeneratorState), R(0),
516 B(Star), R(1), 492 B(Star), R(1),
517 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 493 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
518 B(LdaSmi), I8(79), 494 B(LdaSmi), I8(79),
(...skipping 29 matching lines...) Expand all
548 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), 524 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
549 B(Ldar), R(3), 525 B(Ldar), R(3),
550 /* 0 E> */ B(Throw), 526 /* 0 E> */ B(Throw),
551 B(Ldar), R(3), 527 B(Ldar), R(3),
552 /* 32 S> */ B(Return), 528 /* 32 S> */ B(Return),
553 B(Ldar), R(3), 529 B(Ldar), R(3),
554 B(StaCurrentContextSlot), U8(5), 530 B(StaCurrentContextSlot), U8(5),
555 B(CreateClosure), U8(4), U8(3), U8(0), 531 B(CreateClosure), U8(4), U8(3), U8(0),
556 B(StaModuleVariable), I8(1), U8(0), 532 B(StaModuleVariable), I8(1), U8(0),
557 B(LdaCurrentContextSlot), U8(5), 533 B(LdaCurrentContextSlot), U8(5),
558 B(Star), R(3),
559 B(LdaTrue),
560 B(Star), R(4),
561 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
562 /* 32 S> */ B(Return), 534 /* 32 S> */ B(Return),
563 ] 535 ]
564 constant pool: [ 536 constant pool: [
565 Smi [63], 537 Smi [63],
566 FIXED_ARRAY_TYPE, 538 FIXED_ARRAY_TYPE,
567 Smi [10], 539 Smi [10],
568 Smi [7], 540 Smi [7],
569 SHARED_FUNCTION_INFO_TYPE, 541 SHARED_FUNCTION_INFO_TYPE,
570 ] 542 ]
571 handlers: [ 543 handlers: [
572 ] 544 ]
573 545
574 --- 546 ---
575 snippet: " 547 snippet: "
576 export default (class {}); 548 export default (class {});
577 " 549 "
578 frame size: 8 550 frame size: 8
579 parameter count: 2 551 parameter count: 2
580 bytecode array length: 164 552 bytecode array length: 155
581 bytecodes: [ 553 bytecodes: [
582 B(Mov), R(new_target), R(0), 554 B(Mov), R(new_target), R(0),
583 B(Ldar), R(new_target), 555 B(Ldar), R(new_target),
584 B(JumpIfUndefined), U8(25), 556 B(JumpIfUndefined), U8(25),
585 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 557 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
586 B(PushContext), R(2), 558 B(PushContext), R(2),
587 B(RestoreGeneratorState), R(0), 559 B(RestoreGeneratorState), R(0),
588 B(Star), R(1), 560 B(Star), R(1),
589 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 561 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
590 B(LdaSmi), I8(79), 562 B(LdaSmi), I8(79),
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 B(Star), R(6), 604 B(Star), R(6),
633 B(LdaSmi), I8(24), 605 B(LdaSmi), I8(24),
634 B(Star), R(7), 606 B(Star), R(7),
635 B(Mov), R(3), R(5), 607 B(Mov), R(3), R(5),
636 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 608 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
637 B(Star), R(4), 609 B(Star), R(4),
638 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U 8(1), 610 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U 8(1),
639 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), 611 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
640 B(StaModuleVariable), I8(1), U8(0), 612 B(StaModuleVariable), I8(1), U8(0),
641 B(LdaCurrentContextSlot), U8(5), 613 B(LdaCurrentContextSlot), U8(5),
642 B(Star), R(3),
643 B(LdaTrue),
644 B(Star), R(4),
645 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
646 /* 26 S> */ B(Return), 614 /* 26 S> */ B(Return),
647 ] 615 ]
648 constant pool: [ 616 constant pool: [
649 Smi [63], 617 Smi [63],
650 FIXED_ARRAY_TYPE, 618 FIXED_ARRAY_TYPE,
651 Smi [10], 619 Smi [10],
652 Smi [7], 620 Smi [7],
653 SHARED_FUNCTION_INFO_TYPE, 621 SHARED_FUNCTION_INFO_TYPE,
654 ] 622 ]
655 handlers: [ 623 handlers: [
656 ] 624 ]
657 625
658 --- 626 ---
659 snippet: " 627 snippet: "
660 export {foo as goo} from \"bar\" 628 export {foo as goo} from \"bar\"
661 " 629 "
662 frame size: 5 630 frame size: 5
663 parameter count: 2 631 parameter count: 2
664 bytecode array length: 120 632 bytecode array length: 111
665 bytecodes: [ 633 bytecodes: [
666 B(Mov), R(new_target), R(0), 634 B(Mov), R(new_target), R(0),
667 B(Ldar), R(new_target), 635 B(Ldar), R(new_target),
668 B(JumpIfUndefined), U8(25), 636 B(JumpIfUndefined), U8(25),
669 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 637 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
670 B(PushContext), R(2), 638 B(PushContext), R(2),
671 B(RestoreGeneratorState), R(0), 639 B(RestoreGeneratorState), R(0),
672 B(Star), R(1), 640 B(Star), R(1),
673 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 641 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
674 B(LdaSmi), I8(79), 642 B(LdaSmi), I8(79),
(...skipping 25 matching lines...) Expand all
700 B(Star), R(3), 668 B(Star), R(3),
701 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1), 669 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
702 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), 670 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
703 B(Ldar), R(3), 671 B(Ldar), R(3),
704 /* 0 E> */ B(Throw), 672 /* 0 E> */ B(Throw),
705 B(Ldar), R(3), 673 B(Ldar), R(3),
706 /* 30 S> */ B(Return), 674 /* 30 S> */ B(Return),
707 B(Ldar), R(3), 675 B(Ldar), R(3),
708 B(StaCurrentContextSlot), U8(5), 676 B(StaCurrentContextSlot), U8(5),
709 B(LdaCurrentContextSlot), U8(5), 677 B(LdaCurrentContextSlot), U8(5),
710 B(Star), R(3),
711 B(LdaTrue),
712 B(Star), R(4),
713 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
714 /* 30 S> */ B(Return), 678 /* 30 S> */ B(Return),
715 ] 679 ]
716 constant pool: [ 680 constant pool: [
717 Smi [59], 681 Smi [59],
718 FIXED_ARRAY_TYPE, 682 FIXED_ARRAY_TYPE,
719 Smi [10], 683 Smi [10],
720 Smi [7], 684 Smi [7],
721 ] 685 ]
722 handlers: [ 686 handlers: [
723 ] 687 ]
724 688
725 --- 689 ---
726 snippet: " 690 snippet: "
727 export * from \"bar\" 691 export * from \"bar\"
728 " 692 "
729 frame size: 5 693 frame size: 5
730 parameter count: 2 694 parameter count: 2
731 bytecode array length: 120 695 bytecode array length: 111
732 bytecodes: [ 696 bytecodes: [
733 B(Mov), R(new_target), R(0), 697 B(Mov), R(new_target), R(0),
734 B(Ldar), R(new_target), 698 B(Ldar), R(new_target),
735 B(JumpIfUndefined), U8(25), 699 B(JumpIfUndefined), U8(25),
736 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 700 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
737 B(PushContext), R(2), 701 B(PushContext), R(2),
738 B(RestoreGeneratorState), R(0), 702 B(RestoreGeneratorState), R(0),
739 B(Star), R(1), 703 B(Star), R(1),
740 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 704 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
741 B(LdaSmi), I8(79), 705 B(LdaSmi), I8(79),
(...skipping 25 matching lines...) Expand all
767 B(Star), R(3), 731 B(Star), R(3),
768 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1), 732 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
769 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), 733 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
770 B(Ldar), R(3), 734 B(Ldar), R(3),
771 /* 0 E> */ B(Throw), 735 /* 0 E> */ B(Throw),
772 B(Ldar), R(3), 736 B(Ldar), R(3),
773 /* 19 S> */ B(Return), 737 /* 19 S> */ B(Return),
774 B(Ldar), R(3), 738 B(Ldar), R(3),
775 B(StaCurrentContextSlot), U8(5), 739 B(StaCurrentContextSlot), U8(5),
776 B(LdaCurrentContextSlot), U8(5), 740 B(LdaCurrentContextSlot), U8(5),
777 B(Star), R(3),
778 B(LdaTrue),
779 B(Star), R(4),
780 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
781 /* 19 S> */ B(Return), 741 /* 19 S> */ B(Return),
782 ] 742 ]
783 constant pool: [ 743 constant pool: [
784 Smi [59], 744 Smi [59],
785 FIXED_ARRAY_TYPE, 745 FIXED_ARRAY_TYPE,
786 Smi [10], 746 Smi [10],
787 Smi [7], 747 Smi [7],
788 ] 748 ]
789 handlers: [ 749 handlers: [
790 ] 750 ]
791 751
792 --- 752 ---
793 snippet: " 753 snippet: "
794 import * as foo from \"bar\" 754 import * as foo from \"bar\"
795 foo.f(foo, foo.x); 755 foo.f(foo, foo.x);
796 " 756 "
797 frame size: 7 757 frame size: 7
798 parameter count: 2 758 parameter count: 2
799 bytecode array length: 158 759 bytecode array length: 149
800 bytecodes: [ 760 bytecodes: [
801 B(Mov), R(new_target), R(0), 761 B(Mov), R(new_target), R(0),
802 B(Ldar), R(new_target), 762 B(Ldar), R(new_target),
803 B(JumpIfUndefined), U8(25), 763 B(JumpIfUndefined), U8(25),
804 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1), 764 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8 (1),
805 B(PushContext), R(2), 765 B(PushContext), R(2),
806 B(RestoreGeneratorState), R(0), 766 B(RestoreGeneratorState), R(0),
807 B(Star), R(1), 767 B(Star), R(1),
808 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 768 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
809 B(LdaSmi), I8(79), 769 B(LdaSmi), I8(79),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 B(Star), R(3), 809 B(Star), R(3),
850 B(LdaImmutableCurrentContextSlot), U8(5), 810 B(LdaImmutableCurrentContextSlot), U8(5),
851 B(Star), R(5), 811 B(Star), R(5),
852 B(LdaImmutableCurrentContextSlot), U8(5), 812 B(LdaImmutableCurrentContextSlot), U8(5),
853 B(Star), R(6), 813 B(Star), R(6),
854 /* 41 E> */ B(LdaNamedProperty), R(6), U8(5), U8(7), 814 /* 41 E> */ B(LdaNamedProperty), R(6), U8(5), U8(7),
855 B(Star), R(6), 815 B(Star), R(6),
856 /* 31 E> */ B(CallProperty2), R(3), R(4), R(5), R(6), U8(3), 816 /* 31 E> */ B(CallProperty2), R(3), R(4), R(5), R(6), U8(3),
857 B(StaCurrentContextSlot), U8(6), 817 B(StaCurrentContextSlot), U8(6),
858 B(LdaCurrentContextSlot), U8(6), 818 B(LdaCurrentContextSlot), U8(6),
859 B(Star), R(3),
860 B(LdaTrue),
861 B(Star), R(4),
862 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
863 /* 45 S> */ B(Return), 819 /* 45 S> */ B(Return),
864 ] 820 ]
865 constant pool: [ 821 constant pool: [
866 Smi [69], 822 Smi [69],
867 FIXED_ARRAY_TYPE, 823 FIXED_ARRAY_TYPE,
868 Smi [10], 824 Smi [10],
869 Smi [7], 825 Smi [7],
870 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], 826 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
871 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 827 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
872 ] 828 ]
873 handlers: [ 829 handlers: [
874 ] 830 ]
875 831
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698