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

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

Issue 2411873004: [ignition] Eliminate hole checks where statically possible for loads and stores (Closed)
Patch Set: Rebased Created 4 years, 2 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 [48, 233, 239], 259 [48, 233, 239],
260 ] 260 ]
261 261
262 --- 262 ---
263 snippet: " 263 snippet: "
264 function* f() { for (let x of [42]) yield x } 264 function* f() { for (let x of [42]) yield x }
265 f(); 265 f();
266 " 266 "
267 frame size: 18 267 frame size: 18
268 parameter count: 1 268 parameter count: 1
269 bytecode array length: 805 269 bytecode array length: 793
270 bytecodes: [ 270 bytecodes: [
271 B(Ldar), R(new_target), 271 B(Ldar), R(new_target),
272 B(JumpIfUndefined), U8(28), 272 B(JumpIfUndefined), U8(28),
273 B(ResumeGenerator), R(new_target), 273 B(ResumeGenerator), R(new_target),
274 B(Star), R(4), 274 B(Star), R(4),
275 B(LdaZero), 275 B(LdaZero),
276 B(TestEqualStrict), R(4), U8(0), 276 B(TestEqualStrict), R(4), U8(0),
277 B(JumpIfTrue), U8(68), 277 B(JumpIfTrue), U8(68),
278 B(LdaSmi), U8(1), 278 B(LdaSmi), U8(1),
279 B(TestEqualStrict), R(4), U8(0), 279 B(TestEqualStrict), R(4), U8(0),
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 B(TestEqualStrict), R(11), U8(0), 313 B(TestEqualStrict), R(11), U8(0),
314 B(JumpIfTrue), U8(22), 314 B(JumpIfTrue), U8(22),
315 B(Jump), U8(2), 315 B(Jump), U8(2),
316 B(LdaTrue), 316 B(LdaTrue),
317 B(Star), R(13), 317 B(Star), R(13),
318 B(Mov), R(10), R(12), 318 B(Mov), R(10), R(12),
319 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U 8(2), 319 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U 8(2),
320 B(Star), R(6), 320 B(Star), R(6),
321 B(LdaZero), 321 B(LdaZero),
322 B(Star), R(5), 322 B(Star), R(5),
323 B(JumpConstant), U8(20), 323 B(JumpConstant), U8(18),
324 B(Ldar), R(10), 324 B(Ldar), R(10),
325 /* 11 E> */ B(Throw), 325 /* 11 E> */ B(Throw),
326 B(Ldar), R(closure), 326 B(Ldar), R(closure),
327 B(CreateBlockContext), U8(0), 327 B(CreateBlockContext), U8(0),
328 B(PushContext), R(1), 328 B(PushContext), R(1),
329 B(LdaTheHole), 329 B(LdaTheHole),
330 B(StaContextSlot), R(context), U8(4), U8(0), 330 B(StaContextSlot), R(context), U8(4), U8(0),
331 B(LdaZero), 331 B(LdaZero),
332 B(StaContextSlot), R(1), U8(9), U8(0), 332 B(StaContextSlot), R(1), U8(9), U8(0),
333 B(Mov), R(context), R(10), 333 B(Mov), R(context), R(10),
334 B(Mov), R(context), R(11), 334 B(Mov), R(context), R(11),
335 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(9), 335 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(9),
336 B(Star), R(13), 336 B(Star), R(13),
337 B(LdaConstant), U8(2), 337 B(LdaConstant), U8(2),
338 /* 30 E> */ B(LdrKeyedProperty), R(13), U8(4), R(12), 338 /* 30 E> */ B(LdrKeyedProperty), R(13), U8(4), R(12),
339 /* 30 E> */ B(Call), R(12), R(13), U8(1), U8(2), 339 /* 30 E> */ B(Call), R(12), R(13), U8(1), U8(2),
340 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0), 340 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
341 B(LdaSmi), U8(-2), 341 B(LdaSmi), U8(-2),
342 B(TestEqual), R(4), U8(0), 342 B(TestEqual), R(4), U8(0),
343 B(JumpIfTrue), U8(18), 343 B(JumpIfTrue), U8(18),
344 B(LdaSmi), U8(1), 344 B(LdaSmi), U8(1),
345 B(TestEqualStrict), R(4), U8(0), 345 B(TestEqualStrict), R(4), U8(0),
346 B(JumpIfTrueConstant), U8(9), 346 B(JumpIfTrueConstant), U8(8),
347 B(LdaSmi), U8(76), 347 B(LdaSmi), U8(76),
348 B(Star), R(12), 348 B(Star), R(12),
349 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), 349 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1),
350 /* 27 S> */ B(LdrContextSlot), R(1), U8(7), U8(0), R(14), 350 /* 27 S> */ B(LdrContextSlot), R(1), U8(7), U8(0), R(14),
351 B(LdrNamedProperty), R(14), U8(4), U8(8), R(13), 351 B(LdrNamedProperty), R(14), U8(4), U8(8), R(13),
352 /* 27 E> */ B(Call), R(13), R(14), U8(1), U8(6), 352 /* 27 E> */ B(Call), R(13), R(14), U8(1), U8(6),
353 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0), 353 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0),
354 B(Star), R(12), 354 B(Star), R(12),
355 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), 355 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1),
356 B(ToBooleanLogicalNot), 356 B(ToBooleanLogicalNot),
357 B(JumpIfFalse), U8(12), 357 B(JumpIfFalse), U8(12),
358 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), 358 B(LdrContextSlot), R(1), U8(8), U8(0), R(12),
359 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (12), U8(1), 359 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (12), U8(1),
360 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), 360 B(LdrContextSlot), R(1), U8(8), U8(0), R(12),
361 B(LdaNamedProperty), R(12), U8(5), U8(10), 361 B(LdaNamedProperty), R(12), U8(5), U8(10),
362 B(JumpIfToBooleanTrueConstant), U8(10), 362 B(JumpIfToBooleanTrueConstant), U8(9),
363 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), 363 B(LdrContextSlot), R(1), U8(8), U8(0), R(12),
364 B(LdaNamedProperty), R(12), U8(6), U8(12), 364 B(LdaNamedProperty), R(12), U8(6), U8(12),
365 B(StaContextSlot), R(1), U8(10), U8(0), 365 B(StaContextSlot), R(1), U8(10), U8(0),
366 B(LdaSmi), U8(2), 366 B(LdaSmi), U8(2),
367 B(StaContextSlot), R(1), U8(9), U8(0), 367 B(StaContextSlot), R(1), U8(9), U8(0),
368 B(LdaContextSlot), R(1), U8(10), U8(0), 368 B(LdaContextSlot), R(1), U8(10), U8(0),
369 B(StaContextSlot), R(1), U8(6), U8(0), 369 B(StaContextSlot), R(1), U8(6), U8(0),
370 /* 16 E> */ B(StackCheck), 370 /* 16 E> */ B(StackCheck),
371 B(Ldar), R(closure), 371 B(Ldar), R(closure),
372 B(CreateBlockContext), U8(7), 372 B(CreateBlockContext), U8(7),
373 B(PushContext), R(2), 373 B(PushContext), R(2),
374 B(LdaTheHole), 374 B(LdaTheHole),
375 B(StaContextSlot), R(context), U8(4), U8(0), 375 B(StaContextSlot), R(context), U8(4), U8(0),
376 B(LdaContextSlot), R(1), U8(6), U8(0), 376 B(LdaContextSlot), R(1), U8(6), U8(0),
377 B(StaContextSlot), R(context), U8(4), U8(0), 377 B(StaContextSlot), R(context), U8(4), U8(0),
378 /* 36 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), 378 /* 36 S> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(12),
379 B(JumpIfNotHole), U8(11),
380 B(LdaConstant), U8(8),
381 B(Star), R(14),
382 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(14), U8(1) ,
383 B(Star), R(12),
384 B(LdaFalse), 379 B(LdaFalse),
385 B(Star), R(13), 380 B(Star), R(13),
386 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U 8(2), 381 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U 8(2),
387 B(Star), R(12), 382 B(Star), R(12),
388 B(LdrContextSlot), R(1), U8(5), U8(0), R(13), 383 B(LdrContextSlot), R(1), U8(5), U8(0), R(13),
389 B(LdaSmi), U8(1), 384 B(LdaSmi), U8(1),
390 B(SuspendGenerator), R(13), 385 B(SuspendGenerator), R(13),
391 B(Ldar), R(12), 386 B(Ldar), R(12),
392 /* 44 S> */ B(Return), 387 /* 44 S> */ B(Return),
393 B(LdaSmi), U8(-2), 388 B(LdaSmi), U8(-2),
(...skipping 21 matching lines...) Expand all
415 B(PopContext), R(2), 410 B(PopContext), R(2),
416 B(Star), R(9), 411 B(Star), R(9),
417 B(LdaZero), 412 B(LdaZero),
418 B(Star), R(8), 413 B(Star), R(8),
419 B(Jump), U8(74), 414 B(Jump), U8(74),
420 B(Ldar), R(14), 415 B(Ldar), R(14),
421 /* 36 E> */ B(Throw), 416 /* 36 E> */ B(Throw),
422 B(PopContext), R(2), 417 B(PopContext), R(2),
423 B(LdaZero), 418 B(LdaZero),
424 B(StaContextSlot), R(1), U8(9), U8(0), 419 B(StaContextSlot), R(1), U8(9), U8(0),
425 B(Wide), B(JumpLoop), U16(-232), U16(0), 420 B(Wide), B(JumpLoop), U16(-220), U16(0),
426 B(Jump), U8(44), 421 B(Jump), U8(44),
427 B(Star), R(12), 422 B(Star), R(12),
428 B(Ldar), R(closure), 423 B(Ldar), R(closure),
429 B(CreateCatchContext), R(12), U8(11), U8(12), 424 B(CreateCatchContext), R(12), U8(10), U8(11),
430 B(Star), R(11), 425 B(Star), R(11),
431 B(PushContext), R(2), 426 B(PushContext), R(2),
432 B(LdrContextSlot), R(0), U8(9), U8(0), R(12), 427 B(LdrContextSlot), R(0), U8(9), U8(0), R(12),
433 B(LdaSmi), U8(2), 428 B(LdaSmi), U8(2),
434 B(TestEqualStrict), R(12), U8(14), 429 B(TestEqualStrict), R(12), U8(14),
435 B(JumpIfFalse), U8(8), 430 B(JumpIfFalse), U8(8),
436 B(LdaSmi), U8(1), 431 B(LdaSmi), U8(1),
437 B(StaContextSlot), R(0), U8(9), U8(0), 432 B(StaContextSlot), R(0), U8(9), U8(0),
438 B(LdrContextSlot), R(context), U8(4), U8(0), R(12), 433 B(LdrContextSlot), R(context), U8(4), U8(0), R(12),
439 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), 434 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
440 B(PopContext), R(2), 435 B(PopContext), R(2),
441 B(LdaSmi), U8(-1), 436 B(LdaSmi), U8(-1),
442 B(Star), R(8), 437 B(Star), R(8),
443 B(Jump), U8(8), 438 B(Jump), U8(8),
444 B(Star), R(9), 439 B(Star), R(9),
445 B(LdaSmi), U8(1), 440 B(LdaSmi), U8(1),
446 B(Star), R(8), 441 B(Star), R(8),
447 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 442 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
448 B(Star), R(10), 443 B(Star), R(10),
449 B(LdrContextSlot), R(1), U8(9), U8(0), R(11), 444 B(LdrContextSlot), R(1), U8(9), U8(0), R(11),
450 B(LdaZero), 445 B(LdaZero),
451 B(TestEqualStrict), R(11), U8(15), 446 B(TestEqualStrict), R(11), U8(15),
452 B(JumpIfTrueConstant), U8(18), 447 B(JumpIfTrueConstant), U8(17),
453 B(LdrContextSlot), R(1), U8(7), U8(0), R(11), 448 B(LdrContextSlot), R(1), U8(7), U8(0), R(11),
454 B(LdaUndefined), 449 B(LdaUndefined),
455 B(TestEqualStrict), R(11), U8(16), 450 B(TestEqualStrict), R(11), U8(16),
456 B(JumpIfTrueConstant), U8(19), 451 B(JumpIfTrueConstant), U8(9),
457 B(LdrContextSlot), R(1), U8(7), U8(0), R(11), 452 B(LdrContextSlot), R(1), U8(7), U8(0), R(11),
458 B(LdaNamedProperty), R(11), U8(13), U8(17), 453 B(LdaNamedProperty), R(11), U8(12), U8(17),
459 B(StaContextSlot), R(1), U8(11), U8(0), 454 B(StaContextSlot), R(1), U8(11), U8(0),
460 B(LdrContextSlot), R(1), U8(11), U8(0), R(11), 455 B(LdrContextSlot), R(1), U8(11), U8(0), R(11),
461 B(LdaNull), 456 B(LdaNull),
462 B(TestEqual), R(11), U8(19), 457 B(TestEqual), R(11), U8(19),
463 B(JumpIfFalse), U8(4), 458 B(JumpIfFalse), U8(4),
464 B(JumpConstant), U8(17), 459 B(JumpConstant), U8(16),
465 B(LdrContextSlot), R(1), U8(9), U8(0), R(11), 460 B(LdrContextSlot), R(1), U8(9), U8(0), R(11),
466 B(LdaSmi), U8(1), 461 B(LdaSmi), U8(1),
467 B(TestEqualStrict), R(11), U8(20), 462 B(TestEqualStrict), R(11), U8(20),
468 B(JumpIfFalse), U8(76), 463 B(JumpIfFalse), U8(76),
469 B(LdaContextSlot), R(1), U8(11), U8(0), 464 B(LdaContextSlot), R(1), U8(11), U8(0),
470 B(TypeOf), 465 B(TypeOf),
471 B(Star), R(11), 466 B(Star), R(11),
472 B(LdaConstant), U8(14), 467 B(LdaConstant), U8(13),
473 B(TestEqualStrict), R(11), U8(21), 468 B(TestEqualStrict), R(11), U8(21),
474 B(JumpIfFalse), U8(4), 469 B(JumpIfFalse), U8(4),
475 B(Jump), U8(18), 470 B(Jump), U8(18),
476 B(Wide), B(LdaSmi), U16(130), 471 B(Wide), B(LdaSmi), U16(130),
477 B(Star), R(11), 472 B(Star), R(11),
478 B(LdaConstant), U8(15), 473 B(LdaConstant), U8(14),
479 B(Star), R(12), 474 B(Star), R(12),
480 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), 475 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
481 B(Throw), 476 B(Throw),
482 B(Mov), R(context), R(11), 477 B(Mov), R(context), R(11),
483 B(LdrContextSlot), R(1), U8(11), U8(0), R(12), 478 B(LdrContextSlot), R(1), U8(11), U8(0), R(12),
484 B(LdrContextSlot), R(1), U8(7), U8(0), R(13), 479 B(LdrContextSlot), R(1), U8(7), U8(0), R(13),
485 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), 480 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
486 B(Jump), U8(23), 481 B(Jump), U8(23),
487 B(Star), R(12), 482 B(Star), R(12),
488 B(Ldar), R(closure), 483 B(Ldar), R(closure),
489 B(CreateCatchContext), R(12), U8(11), U8(16), 484 B(CreateCatchContext), R(12), U8(10), U8(15),
490 B(Star), R(11), 485 B(Star), R(11),
491 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 486 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
492 B(Ldar), R(11), 487 B(Ldar), R(11),
493 B(PushContext), R(2), 488 B(PushContext), R(2),
494 B(PopContext), R(2), 489 B(PopContext), R(2),
495 B(Jump), U8(43), 490 B(Jump), U8(43),
496 B(LdrContextSlot), R(1), U8(11), U8(0), R(11), 491 B(LdrContextSlot), R(1), U8(11), U8(0), R(11),
497 B(LdrContextSlot), R(1), U8(7), U8(0), R(12), 492 B(LdrContextSlot), R(1), U8(7), U8(0), R(12),
498 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), 493 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
499 B(StaContextSlot), R(1), U8(12), U8(0), 494 B(StaContextSlot), R(1), U8(12), U8(0),
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 ] 569 ]
575 constant pool: [ 570 constant pool: [
576 FIXED_ARRAY_TYPE, 571 FIXED_ARRAY_TYPE,
577 FIXED_ARRAY_TYPE, 572 FIXED_ARRAY_TYPE,
578 SYMBOL_TYPE, 573 SYMBOL_TYPE,
579 Smi [158], 574 Smi [158],
580 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], 575 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
581 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 576 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
582 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 577 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
583 FIXED_ARRAY_TYPE, 578 FIXED_ARRAY_TYPE,
584 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 579 Smi [134],
585 Smi [146], 580 Smi [155],
586 Smi [167],
587 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 581 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
588 FIXED_ARRAY_TYPE, 582 FIXED_ARRAY_TYPE,
589 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 583 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
590 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 584 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
591 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 585 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
592 FIXED_ARRAY_TYPE, 586 FIXED_ARRAY_TYPE,
593 Smi [129], 587 Smi [129],
594 Smi [166], 588 Smi [166],
595 Smi [155], 589 Smi [589],
596 Smi [601],
597 ] 590 ]
598 handlers: [ 591 handlers: [
599 [48, 718, 724], 592 [48, 706, 712],
600 [153, 458, 464], 593 [153, 446, 452],
601 [156, 414, 416], 594 [156, 402, 404],
602 [572, 586, 588], 595 [560, 574, 576],
603 ] 596 ]
604 597
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698