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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/StandardForLoop.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
« 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 11 274 frame size: 11
275 parameter count: 1 275 parameter count: 1
276 bytecode array length: 184 276 bytecode array length: 172
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),
(...skipping 14 matching lines...) Expand all
301 /* 62 S> */ B(Return), 301 /* 62 S> */ B(Return),
302 B(RestoreGeneratorRegisters), R(7), R(0), U8(9), 302 B(RestoreGeneratorRegisters), R(7), R(0), U8(9),
303 B(LdaSmi), I8(-2), 303 B(LdaSmi), I8(-2),
304 B(Star), R(8), 304 B(Star), R(8),
305 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(7), U8(1), 305 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(7), U8(1),
306 B(Star), R(9), 306 B(Star), R(9),
307 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(7), U8(1), 307 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(7), U8(1),
308 B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0), 308 B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
309 B(Ldar), R(9), 309 B(Ldar), R(9),
310 /* 11 E> */ B(Throw), 310 /* 11 E> */ B(Throw),
311 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(7), U8(1),
312 B(Ldar), R(9), 311 B(Ldar), R(9),
313 /* 62 S> */ B(Return), 312 /* 62 S> */ B(Return),
314 /* 31 S> */ B(LdaZero), 313 /* 31 S> */ B(LdaZero),
315 B(Star), R(2), 314 B(Star), R(2),
316 B(Star), R(4), 315 B(Star), R(4),
317 B(LdaSmi), I8(1), 316 B(LdaSmi), I8(1),
318 B(Star), R(5), 317 B(Star), R(5),
319 /* 60 E> */ B(StackCheck), 318 /* 60 E> */ B(StackCheck),
320 B(Mov), R(4), R(1), 319 B(Mov), R(4), R(1),
321 B(LdaSmi), I8(1), 320 B(LdaSmi), I8(1),
(...skipping 21 matching lines...) Expand all
343 B(Star), R(6), 342 B(Star), R(6),
344 B(Mov), R(0), R(4), 343 B(Mov), R(0), R(4),
345 B(Ldar), R(4), 344 B(Ldar), R(4),
346 B(JumpLoop), U8(19), I8(1), 345 B(JumpLoop), U8(19), I8(1),
347 B(LdaSmi), I8(1), 346 B(LdaSmi), I8(1),
348 /* 60 E> */ B(TestEqual), R(6), U8(7), 347 /* 60 E> */ B(TestEqual), R(6), U8(7),
349 B(JumpIfFalse), U8(4), 348 B(JumpIfFalse), U8(4),
350 B(Jump), U8(5), 349 B(Jump), U8(5),
351 B(JumpLoop), U8(68), I8(0), 350 B(JumpLoop), U8(68), I8(0),
352 B(LdaUndefined), 351 B(LdaUndefined),
353 B(Star), R(9),
354 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(7), U8(1),
355 B(Ldar), R(9),
356 /* 62 S> */ B(Return), 352 /* 62 S> */ B(Return),
357 ] 353 ]
358 constant pool: [ 354 constant pool: [
359 Smi [45], 355 Smi [45],
360 Smi [14], 356 Smi [10],
361 Smi [7], 357 Smi [7],
362 ] 358 ]
363 handlers: [ 359 handlers: [
364 ] 360 ]
365 361
366 --- 362 ---
367 snippet: " 363 snippet: "
368 function* f() { 364 function* f() {
369 for (let x = 0; x < 10; ++x) yield x; 365 for (let x = 0; x < 10; ++x) yield x;
370 } 366 }
371 f(); 367 f();
372 " 368 "
373 frame size: 11 369 frame size: 11
374 parameter count: 1 370 parameter count: 1
375 bytecode array length: 276 371 bytecode array length: 260
376 bytecodes: [ 372 bytecodes: [
377 B(Mov), R(new_target), R(6), 373 B(Mov), R(new_target), R(6),
378 B(Ldar), R(new_target), 374 B(Ldar), R(new_target),
379 B(JumpIfUndefined), U8(25), 375 B(JumpIfUndefined), U8(25),
380 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(6), U8 (1), 376 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(6), U8 (1),
381 B(PushContext), R(8), 377 B(PushContext), R(8),
382 B(RestoreGeneratorState), R(6), 378 B(RestoreGeneratorState), R(6),
383 B(Star), R(7), 379 B(Star), R(7),
384 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), 380 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0),
385 B(LdaSmi), I8(79), 381 B(LdaSmi), I8(79),
(...skipping 14 matching lines...) Expand all
400 /* 56 S> */ B(Return), 396 /* 56 S> */ B(Return),
401 B(RestoreGeneratorRegisters), R(6), R(0), U8(8), 397 B(RestoreGeneratorRegisters), R(6), R(0), U8(8),
402 B(LdaSmi), I8(-2), 398 B(LdaSmi), I8(-2),
403 B(Star), R(7), 399 B(Star), R(7),
404 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(6), U8(1), 400 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(6), U8(1),
405 B(Star), R(8), 401 B(Star), R(8),
406 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(6), U8(1), 402 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(6), U8(1),
407 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), 403 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
408 B(Ldar), R(8), 404 B(Ldar), R(8),
409 /* 11 E> */ B(Throw), 405 /* 11 E> */ B(Throw),
410 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(6), U8(1),
411 B(Ldar), R(8), 406 B(Ldar), R(8),
412 /* 56 S> */ B(Return), 407 /* 56 S> */ B(Return),
413 /* 31 S> */ B(LdaZero), 408 /* 31 S> */ B(LdaZero),
414 B(Star), R(1), 409 B(Star), R(1),
415 B(Star), R(3), 410 B(Star), R(3),
416 B(LdaSmi), I8(1), 411 B(LdaSmi), I8(1),
417 B(Star), R(4), 412 B(Star), R(4),
418 B(Ldar), R(7), 413 B(Ldar), R(7),
419 B(SwitchOnSmiNoFeedback), U8(4), U8(1), I8(1), 414 B(SwitchOnSmiNoFeedback), U8(4), U8(1), I8(1),
420 B(LdaSmi), I8(-2), 415 B(LdaSmi), I8(-2),
(...skipping 12 matching lines...) Expand all
433 B(Jump), U8(8), 428 B(Jump), U8(8),
434 /* 44 S> */ B(Ldar), R(0), 429 /* 44 S> */ B(Ldar), R(0),
435 B(Inc), U8(4), 430 B(Inc), U8(4),
436 B(Star), R(0), 431 B(Star), R(0),
437 B(LdaSmi), I8(1), 432 B(LdaSmi), I8(1),
438 B(Star), R(5), 433 B(Star), R(5),
439 /* 36 S> */ B(LdaSmi), I8(10), 434 /* 36 S> */ B(LdaSmi), I8(10),
440 /* 36 E> */ B(TestLessThan), R(0), U8(5), 435 /* 36 E> */ B(TestLessThan), R(0), U8(5),
441 B(JumpIfFalse), U8(4), 436 B(JumpIfFalse), U8(4),
442 B(Jump), U8(4), 437 B(Jump), U8(4),
443 B(Jump), U8(107), 438 B(Jump), U8(103),
444 B(Ldar), R(7), 439 B(Ldar), R(7),
445 B(SwitchOnSmiNoFeedback), U8(5), U8(1), I8(1), 440 B(SwitchOnSmiNoFeedback), U8(5), U8(1), I8(1),
446 B(LdaSmi), I8(-2), 441 B(LdaSmi), I8(-2),
447 B(TestEqualStrictNoFeedback), R(7), 442 B(TestEqualStrictNoFeedback), R(7),
448 B(JumpIfTrue), U8(11), 443 B(JumpIfTrue), U8(11),
449 B(LdaSmi), I8(79), 444 B(LdaSmi), I8(79),
450 B(Star), R(8), 445 B(Star), R(8),
451 B(CallRuntime), U16(Runtime::kAbort), R(8), U8(1), 446 B(CallRuntime), U16(Runtime::kAbort), R(8), U8(1),
452 B(LdaSmi), I8(1), 447 B(LdaSmi), I8(1),
453 B(TestEqual), R(5), U8(6), 448 B(TestEqual), R(5), U8(6),
454 B(JumpIfFalse), U8(67), 449 B(JumpIfFalse), U8(63),
455 /* 18 E> */ B(StackCheck), 450 /* 18 E> */ B(StackCheck),
456 /* 47 S> */ B(LdaSmi), I8(1), 451 /* 47 S> */ B(LdaSmi), I8(1),
457 B(Mov), R(0), R(8), 452 B(Mov), R(0), R(8),
458 B(SuspendGenerator), R(6), R(0), U8(8), U8(0), 453 B(SuspendGenerator), R(6), R(0), U8(8), U8(0),
459 B(LdaFalse), 454 B(LdaFalse),
460 B(Star), R(10), 455 B(Star), R(10),
461 B(Mov), R(8), R(9), 456 B(Mov), R(8), R(9),
462 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(9), U8(2), 457 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(9), U8(2),
463 /* 56 S> */ B(Return), 458 /* 56 S> */ B(Return),
464 B(RestoreGeneratorRegisters), R(6), R(0), U8(8), 459 B(RestoreGeneratorRegisters), R(6), R(0), U8(8),
465 B(LdaSmi), I8(-2), 460 B(LdaSmi), I8(-2),
466 B(Star), R(7), 461 B(Star), R(7),
467 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(6), U8(1), 462 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(6), U8(1),
468 B(Star), R(8), 463 B(Star), R(8),
469 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(6), U8(1), 464 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(6), U8(1),
470 B(SwitchOnSmiNoFeedback), U8(6), U8(2), I8(0), 465 B(SwitchOnSmiNoFeedback), U8(6), U8(2), I8(0),
471 B(Ldar), R(8), 466 B(Ldar), R(8),
472 /* 47 E> */ B(Throw), 467 /* 47 E> */ B(Throw),
473 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(6), U8(1),
474 B(Ldar), R(8), 468 B(Ldar), R(8),
475 /* 56 S> */ B(Return), 469 /* 56 S> */ B(Return),
476 B(LdaZero), 470 B(LdaZero),
477 B(Star), R(5), 471 B(Star), R(5),
478 B(Mov), R(0), R(3), 472 B(Mov), R(0), R(3),
479 B(Ldar), R(3), 473 B(Ldar), R(3),
480 B(JumpLoop), U8(90), I8(1), 474 B(JumpLoop), U8(86), I8(1),
481 B(LdaSmi), I8(1), 475 B(LdaSmi), I8(1),
482 /* 54 E> */ B(TestEqual), R(5), U8(7), 476 /* 54 E> */ B(TestEqual), R(5), U8(7),
483 B(JumpIfFalse), U8(4), 477 B(JumpIfFalse), U8(4),
484 B(Jump), U8(5), 478 B(Jump), U8(5),
485 B(JumpLoop), U8(160), I8(0), 479 B(JumpLoop), U8(156), I8(0),
486 B(LdaUndefined), 480 B(LdaUndefined),
487 B(Star), R(8),
488 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(6), U8(1),
489 B(Ldar), R(8),
490 /* 56 S> */ B(Return), 481 /* 56 S> */ B(Return),
491 ] 482 ]
492 constant pool: [ 483 constant pool: [
493 Smi [45], 484 Smi [45],
494 Smi [86], 485 Smi [82],
495 Smi [14], 486 Smi [10],
496 Smi [7], 487 Smi [7],
497 Smi [56], 488 Smi [56],
498 Smi [48], 489 Smi [48],
499 Smi [14], 490 Smi [10],
500 Smi [7], 491 Smi [7],
501 ] 492 ]
502 handlers: [ 493 handlers: [
503 ] 494 ]
504 495
505 --- 496 ---
506 snippet: " 497 snippet: "
507 async function f() { 498 async function f() {
508 for (let x = 0; x < 10; ++x) { let y = x; } 499 for (let x = 0; x < 10; ++x) { let y = x; }
509 } 500 }
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 796 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
806 FIXED_ARRAY_TYPE, 797 FIXED_ARRAY_TYPE,
807 Smi [6], 798 Smi [6],
808 Smi [9], 799 Smi [9],
809 ] 800 ]
810 handlers: [ 801 handlers: [
811 [62, 311, 317], 802 [62, 311, 317],
812 [65, 266, 268], 803 [65, 266, 268],
813 ] 804 ]
814 805
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