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

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

Powered by Google App Engine
This is Rietveld 408576698