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

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

Issue 2917263002: Move generator-close on exception from the generator function to the GeneratorResume builtin. (Closed)
Patch Set: Add register allocation scope 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
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Modules.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 test function name: f 7 test function name: f
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 handlers: [ 264 handlers: [
265 ] 265 ]
266 266
267 --- 267 ---
268 snippet: " 268 snippet: "
269 function* f() { 269 function* f() {
270 for (let x = 0; x < 10; ++x) { let y = x; } 270 for (let x = 0; x < 10; ++x) { let y = x; }
271 } 271 }
272 f(); 272 f();
273 " 273 "
274 frame size: 16 274 frame size: 11
275 parameter count: 1 275 parameter count: 1
276 bytecode array length: 242 276 bytecode array length: 184
277 bytecodes: [ 277 bytecodes: [
278 B(Mov), R(new_target), R(7), 278 B(Mov), R(new_target), R(7),
279 B(Ldar), R(new_target), 279 B(Ldar), R(new_target),
280 B(JumpIfUndefined), U8(25), 280 B(JumpIfUndefined), U8(25),
281 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(7), U8 (1), 281 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(7), U8 (1),
282 B(PushContext), R(9), 282 B(PushContext), R(9),
283 B(RestoreGeneratorState), R(7), 283 B(RestoreGeneratorState), R(7),
284 B(Star), R(8), 284 B(Star), R(8),
285 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 285 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
286 B(LdaSmi), I8(79), 286 B(LdaSmi), I8(79),
287 B(Star), R(10), 287 B(Star), R(9),
288 B(CallRuntime), U16(Runtime::kAbort), R(10), U8(1), 288 B(CallRuntime), U16(Runtime::kAbort), R(9), U8(1),
289 B(LdaSmi), I8(-2), 289 B(LdaSmi), I8(-2),
290 B(Star), R(8), 290 B(Star), R(8),
291 B(Mov), R(closure), R(10), 291 B(Mov), R(closure), R(9),
292 B(Mov), R(this), R(11), 292 B(Mov), R(this), R(10),
293 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(10 ), U8(2), 293 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(9) , U8(2),
294 B(Star), R(3), 294 B(Star), R(3),
295 /* 11 E> */ B(StackCheck), 295 /* 11 E> */ B(StackCheck),
296 B(Star), R(7),
297 B(Mov), R(context), R(12),
298 B(LdaZero), 296 B(LdaZero),
299 B(Mov), R(3), R(13), 297 B(Mov), R(3), R(7),
300 /* 11 E> */ B(SuspendGenerator), R(7), R(0), U8(13), U8(0), 298 B(Mov), R(3), R(9),
301 B(Ldar), R(13), 299 /* 11 E> */ B(SuspendGenerator), R(7), R(0), U8(9), U8(0),
300 B(Ldar), R(9),
302 /* 62 S> */ B(Return), 301 /* 62 S> */ B(Return),
303 B(RestoreGeneratorRegisters), R(7), R(0), U8(13), 302 B(RestoreGeneratorRegisters), R(7), R(0), U8(9),
304 B(LdaSmi), I8(-2), 303 B(LdaSmi), I8(-2),
305 B(Star), R(8), 304 B(Star), R(8),
306 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(7), U8(1), 305 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(7), U8(1),
307 B(Star), R(13), 306 B(Star), R(9),
308 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(7), U8(1), 307 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(7), U8(1),
309 B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0), 308 B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
310 B(Ldar), R(13), 309 B(Ldar), R(9),
311 /* 11 E> */ B(Throw), 310 /* 11 E> */ B(Throw),
312 B(LdaTrue), 311 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(7), U8(1),
313 B(Star), R(15), 312 B(Ldar), R(9),
314 B(Mov), R(13), R(14), 313 /* 62 S> */ B(Return),
315 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(14) , U8(2),
316 B(Star), R(11),
317 B(LdaZero),
318 B(Star), R(10),
319 B(Jump), U8(111),
320 /* 31 S> */ B(LdaZero), 314 /* 31 S> */ B(LdaZero),
321 B(Star), R(2), 315 B(Star), R(2),
322 B(Star), R(4), 316 B(Star), R(4),
323 B(LdaSmi), I8(1), 317 B(LdaSmi), I8(1),
324 B(Star), R(5), 318 B(Star), R(5),
325 /* 60 E> */ B(StackCheck), 319 /* 60 E> */ B(StackCheck),
326 B(Mov), R(4), R(1), 320 B(Mov), R(4), R(1),
327 B(LdaSmi), I8(1), 321 B(LdaSmi), I8(1),
328 B(TestEqual), R(5), U8(3), 322 B(TestEqual), R(5), U8(3),
329 B(JumpIfFalse), U8(7), 323 B(JumpIfFalse), U8(7),
(...skipping 19 matching lines...) Expand all
349 B(Star), R(6), 343 B(Star), R(6),
350 B(Mov), R(0), R(4), 344 B(Mov), R(0), R(4),
351 B(Ldar), R(0), 345 B(Ldar), R(0),
352 B(JumpLoop), U8(19), I8(1), 346 B(JumpLoop), U8(19), I8(1),
353 B(LdaSmi), I8(1), 347 B(LdaSmi), I8(1),
354 /* 60 E> */ B(TestEqual), R(6), U8(7), 348 /* 60 E> */ B(TestEqual), R(6), U8(7),
355 B(JumpIfFalse), U8(4), 349 B(JumpIfFalse), U8(4),
356 B(Jump), U8(5), 350 B(Jump), U8(5),
357 B(JumpLoop), U8(68), I8(0), 351 B(JumpLoop), U8(68), I8(0),
358 B(LdaUndefined), 352 B(LdaUndefined),
359 B(Star), R(13), 353 B(Star), R(9),
360 B(LdaTrue), 354 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(7), U8(1),
361 B(Star), R(14), 355 B(Ldar), R(9),
362 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13) , U8(2),
363 B(Star), R(11),
364 B(LdaZero),
365 B(Star), R(10),
366 B(Jump), U8(14),
367 B(LdaSmi), I8(-1),
368 B(Star), R(10),
369 B(Jump), U8(8),
370 B(Star), R(11),
371 B(LdaSmi), I8(1),
372 B(Star), R(10),
373 B(LdaTheHole),
374 B(SetPendingMessage),
375 B(Star), R(12),
376 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(3), U8(1),
377 B(Ldar), R(12),
378 B(SetPendingMessage),
379 B(Ldar), R(10),
380 B(SwitchOnSmiNoFeedback), U8(3), U8(2), I8(0),
381 B(Jump), U8(8),
382 B(Ldar), R(11),
383 /* 62 S> */ B(Return),
384 B(Ldar), R(11),
385 B(ReThrow),
386 B(LdaUndefined),
387 /* 62 S> */ B(Return), 356 /* 62 S> */ B(Return),
388 ] 357 ]
389 constant pool: [ 358 constant pool: [
390 Smi [47], 359 Smi [45],
391 Smi [24], 360 Smi [14],
392 Smi [7], 361 Smi [7],
393 Smi [6],
394 Smi [9],
395 ] 362 ]
396 handlers: [ 363 handlers: [
397 [52, 203, 209],
398 ] 364 ]
399 365
400 --- 366 ---
401 snippet: " 367 snippet: "
402 function* f() { 368 function* f() {
403 for (let x = 0; x < 10; ++x) yield x; 369 for (let x = 0; x < 10; ++x) yield x;
404 } 370 }
405 f(); 371 f();
406 " 372 "
407 frame size: 15 373 frame size: 11
408 parameter count: 1 374 parameter count: 1
409 bytecode array length: 345 375 bytecode array length: 276
410 bytecodes: [ 376 bytecodes: [
411 B(Mov), R(new_target), R(6), 377 B(Mov), R(new_target), R(6),
412 B(Ldar), R(new_target), 378 B(Ldar), R(new_target),
413 B(JumpIfUndefined), U8(25), 379 B(JumpIfUndefined), U8(25),
414 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(6), U8 (1), 380 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(6), U8 (1),
415 B(PushContext), R(8), 381 B(PushContext), R(8),
416 B(RestoreGeneratorState), R(6), 382 B(RestoreGeneratorState), R(6),
417 B(Star), R(7), 383 B(Star), R(7),
418 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), 384 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0),
419 B(LdaSmi), I8(79), 385 B(LdaSmi), I8(79),
420 B(Star), R(9), 386 B(Star), R(8),
421 B(CallRuntime), U16(Runtime::kAbort), R(9), U8(1), 387 B(CallRuntime), U16(Runtime::kAbort), R(8), U8(1),
422 B(LdaSmi), I8(-2), 388 B(LdaSmi), I8(-2),
423 B(Star), R(7), 389 B(Star), R(7),
424 B(Mov), R(closure), R(9), 390 B(Mov), R(closure), R(8),
425 B(Mov), R(this), R(10), 391 B(Mov), R(this), R(9),
426 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(9) , U8(2), 392 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(8) , U8(2),
427 B(Star), R(2), 393 B(Star), R(2),
428 /* 11 E> */ B(StackCheck), 394 /* 11 E> */ B(StackCheck),
429 B(Star), R(6),
430 B(Mov), R(context), R(11),
431 B(LdaZero), 395 B(LdaZero),
432 B(Mov), R(2), R(12), 396 B(Mov), R(2), R(6),
433 /* 11 E> */ B(SuspendGenerator), R(6), R(0), U8(12), U8(0), 397 B(Mov), R(2), R(8),
434 B(Ldar), R(12), 398 /* 11 E> */ B(SuspendGenerator), R(6), R(0), U8(8), U8(0),
399 B(Ldar), R(8),
435 /* 56 S> */ B(Return), 400 /* 56 S> */ B(Return),
436 B(RestoreGeneratorRegisters), R(6), R(0), U8(12), 401 B(RestoreGeneratorRegisters), R(6), R(0), U8(8),
437 B(LdaSmi), I8(-2), 402 B(LdaSmi), I8(-2),
438 B(Star), R(7), 403 B(Star), R(7),
439 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(6), U8(1), 404 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(6), U8(1),
440 B(Star), R(12), 405 B(Star), R(8),
441 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(6), U8(1), 406 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(6), U8(1),
442 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), 407 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
443 B(Ldar), R(12), 408 B(Ldar), R(8),
444 /* 11 E> */ B(Throw), 409 /* 11 E> */ B(Throw),
445 B(LdaTrue), 410 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(6), U8(1),
446 B(Star), R(14), 411 B(Ldar), R(8),
447 B(Mov), R(12), R(13), 412 /* 56 S> */ B(Return),
448 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13) , U8(2),
449 B(Star), R(10),
450 B(LdaZero),
451 B(Star), R(9),
452 B(Jump), U8(214),
453 /* 31 S> */ B(LdaZero), 413 /* 31 S> */ B(LdaZero),
454 B(Star), R(1), 414 B(Star), R(1),
455 B(Star), R(3), 415 B(Star), R(3),
456 B(LdaSmi), I8(1), 416 B(LdaSmi), I8(1),
457 B(Star), R(4), 417 B(Star), R(4),
458 B(Ldar), R(7), 418 B(Ldar), R(7),
459 B(SwitchOnSmiNoFeedback), U8(4), U8(1), I8(1), 419 B(SwitchOnSmiNoFeedback), U8(4), U8(1), I8(1),
460 B(LdaSmi), I8(-2), 420 B(LdaSmi), I8(-2),
461 /* 54 E> */ B(TestEqualStrictNoFeedback), R(7), 421 /* 54 E> */ B(TestEqualStrictNoFeedback), R(7),
462 B(JumpIfTrue), U8(11), 422 B(JumpIfTrue), U8(11),
463 B(LdaSmi), I8(79), 423 B(LdaSmi), I8(79),
464 B(Star), R(12), 424 B(Star), R(8),
465 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), 425 B(CallRuntime), U16(Runtime::kAbort), R(8), U8(1),
466 B(StackCheck), 426 B(StackCheck),
467 B(Mov), R(3), R(0), 427 B(Mov), R(3), R(0),
468 B(LdaSmi), I8(1), 428 B(LdaSmi), I8(1),
469 B(TestEqual), R(4), U8(3), 429 B(TestEqual), R(4), U8(3),
470 B(JumpIfFalse), U8(7), 430 B(JumpIfFalse), U8(7),
471 B(LdaZero), 431 B(LdaZero),
472 B(Star), R(4), 432 B(Star), R(4),
473 B(Jump), U8(8), 433 B(Jump), U8(8),
474 /* 44 S> */ B(Ldar), R(0), 434 /* 44 S> */ B(Ldar), R(0),
475 B(Inc), U8(4), 435 B(Inc), U8(4),
476 B(Star), R(0), 436 B(Star), R(0),
477 B(LdaSmi), I8(1), 437 B(LdaSmi), I8(1),
478 B(Star), R(5), 438 B(Star), R(5),
479 /* 36 S> */ B(LdaSmi), I8(10), 439 /* 36 S> */ B(LdaSmi), I8(10),
480 /* 36 E> */ B(TestLessThan), R(0), U8(5), 440 /* 36 E> */ B(TestLessThan), R(0), U8(5),
481 B(JumpIfFalse), U8(4), 441 B(JumpIfFalse), U8(4),
482 B(Jump), U8(4), 442 B(Jump), U8(4),
483 B(Jump), U8(118), 443 B(Jump), U8(107),
484 B(Ldar), R(7), 444 B(Ldar), R(7),
485 B(SwitchOnSmiNoFeedback), U8(5), U8(1), I8(1), 445 B(SwitchOnSmiNoFeedback), U8(5), U8(1), I8(1),
486 B(LdaSmi), I8(-2), 446 B(LdaSmi), I8(-2),
487 B(TestEqualStrictNoFeedback), R(7), 447 B(TestEqualStrictNoFeedback), R(7),
488 B(JumpIfTrue), U8(11), 448 B(JumpIfTrue), U8(11),
489 B(LdaSmi), I8(79), 449 B(LdaSmi), I8(79),
490 B(Star), R(12), 450 B(Star), R(8),
491 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), 451 B(CallRuntime), U16(Runtime::kAbort), R(8), U8(1),
492 B(LdaSmi), I8(1), 452 B(LdaSmi), I8(1),
493 B(TestEqual), R(5), U8(6), 453 B(TestEqual), R(5), U8(6),
494 B(JumpIfFalse), U8(78), 454 B(JumpIfFalse), U8(67),
495 /* 18 E> */ B(StackCheck), 455 /* 18 E> */ B(StackCheck),
496 /* 47 S> */ B(LdaFalse), 456 /* 47 S> */ B(LdaSmi), I8(1),
497 B(Star), R(13), 457 B(Mov), R(0), R(8),
498 B(Mov), R(0), R(12), 458 B(SuspendGenerator), R(6), R(0), U8(8), U8(0),
499 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(12) , U8(2), 459 B(LdaFalse),
500 B(Star), R(12), 460 B(Star), R(10),
501 B(LdaSmi), I8(1), 461 B(Mov), R(8), R(9),
502 B(SuspendGenerator), R(6), R(0), U8(12), U8(0), 462 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(9), U8(2),
503 B(Ldar), R(12),
504 /* 56 S> */ B(Return), 463 /* 56 S> */ B(Return),
505 B(RestoreGeneratorRegisters), R(6), R(0), U8(12), 464 B(RestoreGeneratorRegisters), R(6), R(0), U8(8),
506 B(LdaSmi), I8(-2), 465 B(LdaSmi), I8(-2),
507 B(Star), R(7), 466 B(Star), R(7),
508 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(6), U8(1), 467 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(6), U8(1),
509 B(Star), R(12), 468 B(Star), R(8),
510 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(6), U8(1), 469 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(6), U8(1),
511 B(SwitchOnSmiNoFeedback), U8(6), U8(2), I8(0), 470 B(SwitchOnSmiNoFeedback), U8(6), U8(2), I8(0),
512 B(Ldar), R(12), 471 B(Ldar), R(8),
513 /* 47 E> */ B(Throw), 472 /* 47 E> */ B(Throw),
514 B(LdaTrue), 473 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(6), U8(1),
515 B(Star), R(14), 474 B(Ldar), R(8),
516 B(Mov), R(12), R(13), 475 /* 56 S> */ B(Return),
517 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13) , U8(2),
518 B(Star), R(10),
519 B(LdaZero),
520 B(Star), R(9),
521 B(Jump), U8(54),
522 B(LdaZero), 476 B(LdaZero),
523 B(Star), R(5), 477 B(Star), R(5),
524 B(Mov), R(0), R(3), 478 B(Mov), R(0), R(3),
525 B(Ldar), R(0), 479 B(Ldar), R(0),
526 B(JumpLoop), U8(101), I8(1), 480 B(JumpLoop), U8(90), I8(1),
527 B(LdaSmi), I8(1), 481 B(LdaSmi), I8(1),
528 /* 54 E> */ B(TestEqual), R(5), U8(7), 482 /* 54 E> */ B(TestEqual), R(5), U8(7),
529 B(JumpIfFalse), U8(4), 483 B(JumpIfFalse), U8(4),
530 B(Jump), U8(5), 484 B(Jump), U8(5),
531 B(JumpLoop), U8(171), I8(0), 485 B(JumpLoop), U8(160), I8(0),
532 B(LdaUndefined), 486 B(LdaUndefined),
533 B(Star), R(12), 487 B(Star), R(8),
534 B(LdaTrue), 488 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(6), U8(1),
535 B(Star), R(13), 489 B(Ldar), R(8),
536 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(12) , U8(2),
537 B(Star), R(10),
538 B(LdaZero),
539 B(Star), R(9),
540 B(Jump), U8(14),
541 B(LdaSmi), I8(-1),
542 B(Star), R(9),
543 B(Jump), U8(8),
544 B(Star), R(10),
545 B(LdaSmi), I8(1),
546 B(Star), R(9),
547 B(LdaTheHole),
548 B(SetPendingMessage),
549 B(Star), R(11),
550 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(2), U8(1),
551 B(Ldar), R(11),
552 B(SetPendingMessage),
553 B(Ldar), R(9),
554 B(SwitchOnSmiNoFeedback), U8(8), U8(2), I8(0),
555 B(Jump), U8(8),
556 B(Ldar), R(10),
557 /* 56 S> */ B(Return),
558 B(Ldar), R(10),
559 B(ReThrow),
560 B(LdaUndefined),
561 /* 56 S> */ B(Return), 490 /* 56 S> */ B(Return),
562 ] 491 ]
563 constant pool: [ 492 constant pool: [
564 Smi [47], 493 Smi [45],
565 Smi [98], 494 Smi [86],
566 Smi [24], 495 Smi [14],
567 Smi [7], 496 Smi [7],
568 Smi [56], 497 Smi [56],
569 Smi [49], 498 Smi [48],
570 Smi [24], 499 Smi [14],
571 Smi [7], 500 Smi [7],
572 Smi [6],
573 Smi [9],
574 ] 501 ]
575 handlers: [ 502 handlers: [
576 [52, 306, 312],
577 ] 503 ]
578 504
579 --- 505 ---
580 snippet: " 506 snippet: "
581 async function f() { 507 async function f() {
582 for (let x = 0; x < 10; ++x) { let y = x; } 508 for (let x = 0; x < 10; ++x) { let y = x; }
583 } 509 }
584 f(); 510 f();
585 " 511 "
586 frame size: 17 512 frame size: 17
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 [16, 117, 119], 626 [16, 117, 119],
701 ] 627 ]
702 628
703 --- 629 ---
704 snippet: " 630 snippet: "
705 async function f() { 631 async function f() {
706 for (let x = 0; x < 10; ++x) await x; 632 for (let x = 0; x < 10; ++x) await x;
707 } 633 }
708 f(); 634 f();
709 " 635 "
710 frame size: 19 636 frame size: 18
711 parameter count: 1 637 parameter count: 1
712 bytecode array length: 365 638 bytecode array length: 356
713 bytecodes: [ 639 bytecodes: [
714 B(Mov), R(new_target), R(7), 640 B(Mov), R(new_target), R(7),
715 B(Ldar), R(new_target), 641 B(Ldar), R(new_target),
716 B(JumpIfUndefined), U8(25), 642 B(JumpIfUndefined), U8(25),
717 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(7), U8 (1), 643 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(7), U8 (1),
718 B(PushContext), R(9), 644 B(PushContext), R(9),
719 B(RestoreGeneratorState), R(7), 645 B(RestoreGeneratorState), R(7),
720 B(Star), R(8), 646 B(Star), R(8),
721 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), 647 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
722 B(LdaSmi), I8(79), 648 B(LdaSmi), I8(79),
723 B(Star), R(10), 649 B(Star), R(9),
724 B(CallRuntime), U16(Runtime::kAbort), R(10), U8(1), 650 B(CallRuntime), U16(Runtime::kAbort), R(9), U8(1),
725 B(LdaSmi), I8(-2), 651 B(LdaSmi), I8(-2),
726 B(Star), R(8), 652 B(Star), R(8),
727 B(Mov), R(closure), R(10), 653 B(Mov), R(closure), R(9),
728 B(Mov), R(this), R(11), 654 B(Mov), R(this), R(10),
729 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(10 ), U8(2), 655 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(9) , U8(2),
730 B(Star), R(2), 656 B(Star), R(2),
731 /* 16 E> */ B(StackCheck), 657 /* 16 E> */ B(StackCheck),
732 B(LdaUndefined), 658 B(LdaUndefined),
733 B(Star), R(10), 659 B(Star), R(9),
734 B(CallJSRuntime), U8(%async_function_promise_create), R(10), U8( 1), 660 B(CallJSRuntime), U8(%async_function_promise_create), R(9), U8(1 ),
735 B(Star), R(3), 661 B(Star), R(3),
662 B(Mov), R(context), R(11),
663 B(Mov), R(2), R(7),
736 B(Mov), R(context), R(12), 664 B(Mov), R(context), R(12),
737 B(Mov), R(2), R(7),
738 B(Mov), R(context), R(13),
739 /* 36 S> */ B(LdaZero), 665 /* 36 S> */ B(LdaZero),
740 B(Star), R(1), 666 B(Star), R(1),
741 B(Star), R(4), 667 B(Star), R(4),
742 B(LdaSmi), I8(1), 668 B(LdaSmi), I8(1),
743 B(Star), R(5), 669 B(Star), R(5),
744 B(Ldar), R(8), 670 B(Ldar), R(8),
745 B(SwitchOnSmiNoFeedback), U8(1), U8(1), I8(0), 671 B(SwitchOnSmiNoFeedback), U8(1), U8(1), I8(0),
746 B(LdaSmi), I8(-2), 672 B(LdaSmi), I8(-2),
747 /* 59 E> */ B(TestEqualStrictNoFeedback), R(8), 673 /* 59 E> */ B(TestEqualStrictNoFeedback), R(8),
748 B(JumpIfTrue), U8(11), 674 B(JumpIfTrue), U8(11),
749 B(LdaSmi), I8(79), 675 B(LdaSmi), I8(79),
750 B(Star), R(14), 676 B(Star), R(13),
751 B(CallRuntime), U16(Runtime::kAbort), R(14), U8(1), 677 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1),
752 B(StackCheck), 678 B(StackCheck),
753 B(Mov), R(4), R(0), 679 B(Mov), R(4), R(0),
754 B(LdaSmi), I8(1), 680 B(LdaSmi), I8(1),
755 B(TestEqual), R(5), U8(3), 681 B(TestEqual), R(5), U8(3),
756 B(JumpIfFalse), U8(7), 682 B(JumpIfFalse), U8(7),
757 B(LdaZero), 683 B(LdaZero),
758 B(Star), R(5), 684 B(Star), R(5),
759 B(Jump), U8(8), 685 B(Jump), U8(8),
760 /* 49 S> */ B(Ldar), R(0), 686 /* 49 S> */ B(Ldar), R(0),
761 B(Inc), U8(4), 687 B(Inc), U8(4),
762 B(Star), R(0), 688 B(Star), R(0),
763 B(LdaSmi), I8(1), 689 B(LdaSmi), I8(1),
764 B(Star), R(6), 690 B(Star), R(6),
765 /* 41 S> */ B(LdaSmi), I8(10), 691 /* 41 S> */ B(LdaSmi), I8(10),
766 /* 41 E> */ B(TestLessThan), R(0), U8(5), 692 /* 41 E> */ B(TestLessThan), R(0), U8(5),
767 B(JumpIfFalse), U8(4), 693 B(JumpIfFalse), U8(4),
768 B(Jump), U8(4), 694 B(Jump), U8(4),
769 B(Jump), U8(124), 695 B(Jump), U8(115),
770 B(Ldar), R(8), 696 B(Ldar), R(8),
771 B(SwitchOnSmiNoFeedback), U8(2), U8(1), I8(0), 697 B(SwitchOnSmiNoFeedback), U8(2), U8(1), I8(0),
772 B(LdaSmi), I8(-2), 698 B(LdaSmi), I8(-2),
773 B(TestEqualStrictNoFeedback), R(8), 699 B(TestEqualStrictNoFeedback), R(8),
774 B(JumpIfTrue), U8(11), 700 B(JumpIfTrue), U8(11),
775 B(LdaSmi), I8(79), 701 B(LdaSmi), I8(79),
776 B(Star), R(14), 702 B(Star), R(13),
777 B(CallRuntime), U16(Runtime::kAbort), R(14), U8(1), 703 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1),
778 B(LdaSmi), I8(1), 704 B(LdaSmi), I8(1),
779 B(TestEqual), R(6), U8(6), 705 B(TestEqual), R(6), U8(6),
780 B(JumpIfFalse), U8(84), 706 B(JumpIfFalse), U8(75),
781 /* 23 E> */ B(StackCheck), 707 /* 23 E> */ B(StackCheck),
782 /* 52 S> */ B(LdaUndefined), 708 /* 52 S> */ B(LdaUndefined),
783 B(Star), R(14), 709 B(Star), R(13),
784 B(Mov), R(2), R(15), 710 B(Mov), R(2), R(14),
785 B(Mov), R(0), R(16), 711 B(Mov), R(0), R(15),
786 B(Mov), R(3), R(17), 712 B(Mov), R(3), R(16),
787 /* 58 E> */ B(CallJSRuntime), U8(%async_function_await_uncaught), R(14), U8( 4), 713 /* 58 E> */ B(CallJSRuntime), U8(%async_function_await_uncaught), R(13), U8( 4),
788 B(LdaZero), 714 B(LdaZero),
789 B(Mov), R(3), R(14), 715 B(Mov), R(3), R(13),
790 B(SuspendGenerator), R(7), R(0), U8(14), U8(2), 716 B(SuspendGenerator), R(7), R(0), U8(13), U8(2),
791 B(Ldar), R(14), 717 B(Ldar), R(13),
792 /* 61 S> */ B(Return), 718 /* 61 S> */ B(Return),
793 B(RestoreGeneratorRegisters), R(7), R(0), U8(14), 719 B(RestoreGeneratorRegisters), R(7), R(0), U8(13),
794 B(LdaSmi), I8(-2), 720 B(LdaSmi), I8(-2),
795 B(Star), R(8), 721 B(Star), R(8),
796 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(7), U8(1), 722 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(7), U8(1),
797 B(Star), R(14), 723 B(Star), R(13),
798 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(7), U8(1), 724 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(7), U8(1),
799 B(SwitchOnSmiNoFeedback), U8(3), U8(2), I8(0), 725 B(SwitchOnSmiNoFeedback), U8(3), U8(2), I8(0),
800 B(Ldar), R(14), 726 B(Ldar), R(13),
801 /* 52 E> */ B(ReThrow), 727 /* 52 E> */ B(ReThrow),
802 B(LdaTrue),
803 B(Star), R(16),
804 B(Mov), R(14), R(15),
805 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(15) , U8(2),
806 B(Star), R(11),
807 B(LdaZero), 728 B(LdaZero),
808 B(Star), R(10), 729 B(Star), R(9),
730 B(Mov), R(13), R(10),
809 B(Jump), U8(103), 731 B(Jump), U8(103),
810 B(LdaZero), 732 B(LdaZero),
811 B(Star), R(6), 733 B(Star), R(6),
812 B(Mov), R(0), R(4), 734 B(Mov), R(0), R(4),
813 B(Ldar), R(0), 735 B(Ldar), R(0),
814 B(JumpLoop), U8(107), I8(1), 736 B(JumpLoop), U8(98), I8(1),
815 B(LdaSmi), I8(1), 737 B(LdaSmi), I8(1),
816 /* 59 E> */ B(TestEqual), R(6), U8(7), 738 /* 59 E> */ B(TestEqual), R(6), U8(7),
817 B(JumpIfFalse), U8(4), 739 B(JumpIfFalse), U8(4),
818 B(Jump), U8(5), 740 B(Jump), U8(5),
819 B(JumpLoop), U8(177), I8(0), 741 B(JumpLoop), U8(168), I8(0),
742 B(LdaUndefined),
743 B(Star), R(13),
744 B(LdaUndefined),
745 B(Star), R(15),
746 B(Mov), R(3), R(14),
747 B(CallJSRuntime), U8(%promise_resolve), R(13), U8(3),
748 B(LdaZero),
749 B(Star), R(9),
750 B(Mov), R(3), R(10),
751 B(Jump), U8(59),
752 B(Jump), U8(45),
753 B(Star), R(13),
754 B(Ldar), R(closure),
755 B(CreateCatchContext), R(13), U8(5), U8(6),
756 B(Star), R(12),
757 B(LdaTheHole),
758 B(SetPendingMessage),
759 B(Ldar), R(12),
760 B(PushContext), R(13),
820 B(LdaUndefined), 761 B(LdaUndefined),
821 B(Star), R(14), 762 B(Star), R(14),
822 B(LdaUndefined), 763 B(LdaImmutableCurrentContextSlot), U8(4),
823 B(Star), R(16), 764 B(Star), R(16),
765 B(LdaFalse),
766 B(Star), R(17),
824 B(Mov), R(3), R(15), 767 B(Mov), R(3), R(15),
825 B(CallJSRuntime), U8(%promise_resolve), R(14), U8(3), 768 B(CallJSRuntime), U8(%promise_internal_reject), R(14), U8(4),
769 B(PopContext), R(13),
826 B(LdaZero), 770 B(LdaZero),
771 B(Star), R(9),
772 B(Mov), R(3), R(10),
773 B(Jump), U8(14),
774 B(LdaSmi), I8(-1),
775 B(Star), R(9),
776 B(Jump), U8(8),
827 B(Star), R(10), 777 B(Star), R(10),
828 B(Mov), R(3), R(11), 778 B(LdaSmi), I8(1),
829 B(Jump), U8(59), 779 B(Star), R(9),
830 B(Jump), U8(45),
831 B(Star), R(14),
832 B(Ldar), R(closure),
833 B(CreateCatchContext), R(14), U8(5), U8(6),
834 B(Star), R(13),
835 B(LdaTheHole), 780 B(LdaTheHole),
836 B(SetPendingMessage), 781 B(SetPendingMessage),
837 B(Ldar), R(13), 782 B(Star), R(11),
838 B(PushContext), R(14),
839 B(LdaUndefined), 783 B(LdaUndefined),
840 B(Star), R(15), 784 B(Star), R(12),
841 B(LdaImmutableCurrentContextSlot), U8(4), 785 B(Mov), R(3), R(13),
842 B(Star), R(17), 786 B(CallJSRuntime), U8(%async_function_promise_release), R(12), U8 (2),
843 B(LdaFalse), 787 B(Ldar), R(11),
844 B(Star), R(18),
845 B(Mov), R(3), R(16),
846 B(CallJSRuntime), U8(%promise_internal_reject), R(15), U8(4),
847 B(PopContext), R(14),
848 B(LdaZero),
849 B(Star), R(10),
850 B(Mov), R(3), R(11),
851 B(Jump), U8(14),
852 B(LdaSmi), I8(-1),
853 B(Star), R(10),
854 B(Jump), U8(8),
855 B(Star), R(11),
856 B(LdaSmi), I8(1),
857 B(Star), R(10),
858 B(LdaTheHole),
859 B(SetPendingMessage), 788 B(SetPendingMessage),
860 B(Star), R(12), 789 B(Ldar), R(9),
861 B(LdaUndefined),
862 B(Star), R(13),
863 B(Mov), R(3), R(14),
864 B(CallJSRuntime), U8(%async_function_promise_release), R(13), U8 (2),
865 B(Ldar), R(12),
866 B(SetPendingMessage),
867 B(Ldar), R(10),
868 B(SwitchOnSmiNoFeedback), U8(7), U8(2), I8(0), 790 B(SwitchOnSmiNoFeedback), U8(7), U8(2), I8(0),
869 B(Jump), U8(8), 791 B(Jump), U8(8),
870 B(Ldar), R(11), 792 B(Ldar), R(10),
871 /* 61 S> */ B(Return), 793 /* 61 S> */ B(Return),
872 B(Ldar), R(11), 794 B(Ldar), R(10),
873 B(ReThrow), 795 B(ReThrow),
874 B(LdaUndefined), 796 B(LdaUndefined),
875 /* 61 S> */ B(Return), 797 /* 61 S> */ B(Return),
876 ] 798 ]
877 constant pool: [ 799 constant pool: [
878 Smi [57], 800 Smi [57],
879 Smi [56], 801 Smi [56],
880 Smi [55], 802 Smi [55],
881 Smi [24], 803 Smi [15],
882 Smi [7], 804 Smi [7],
883 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 805 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
884 FIXED_ARRAY_TYPE, 806 FIXED_ARRAY_TYPE,
885 Smi [6], 807 Smi [6],
886 Smi [9], 808 Smi [9],
887 ] 809 ]
888 handlers: [ 810 handlers: [
889 [62, 320, 326], 811 [62, 311, 317],
890 [65, 275, 277], 812 [65, 266, 268],
891 ] 813 ]
892 814
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Modules.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698