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

Unified Diff: test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden

Issue 2889973002: [Interpreter] Handle various generator intrinsics (Closed)
Patch Set: REBASE. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden b/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden
index 4933809ab3a62e0501f21cff90b4b0f4d27be506..80696ecbb17aebaa883cd20da3e42b038187b2be 100644
--- a/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden
+++ b/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden
@@ -644,11 +644,11 @@ snippet: "
"
frame size: 15
parameter count: 2
-bytecode array length: 593
+bytecode array length: 590
bytecodes: [
B(Ldar), R(new_target),
- B(JumpIfUndefined), U8(26),
- B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
+ B(JumpIfUndefined), U8(25),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
B(PushContext), R(5),
B(ResumeGenerator), R(new_target),
B(Star), R(4),
@@ -678,9 +678,9 @@ bytecodes: [
/* 55 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(4),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(9), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(9), U8(1),
B(Star), R(10),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(9), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(9), U8(1),
B(Star), R(11),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(11),
@@ -909,10 +909,10 @@ constant pool: [
Smi [9],
]
handlers: [
- [56, 549, 555],
- [137, 334, 340],
- [140, 290, 292],
- [426, 442, 444],
+ [55, 546, 552],
+ [134, 331, 337],
+ [137, 287, 289],
+ [423, 439, 441],
]
---
@@ -924,11 +924,11 @@ snippet: "
"
frame size: 17
parameter count: 2
-bytecode array length: 701
+bytecode array length: 696
bytecodes: [
B(Ldar), R(new_target),
- B(JumpIfUndefined), U8(26),
- B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
+ B(JumpIfUndefined), U8(25),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
B(PushContext), R(4),
B(ResumeGenerator), R(new_target),
B(Star), R(3),
@@ -958,9 +958,9 @@ bytecodes: [
/* 49 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(8), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(8), U8(1),
B(Star), R(9),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(8), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(8), U8(1),
B(Star), R(10),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(10),
@@ -1019,7 +1019,7 @@ bytecodes: [
B(LdaContextSlot), R(1), U8(8), U8(0),
B(Star), R(12),
B(LdaNamedProperty), R(12), U8(6), U8(11),
- B(JumpIfToBooleanTrue), U8(144),
+ B(JumpIfToBooleanTrue), U8(142),
B(LdaContextSlot), R(1), U8(8), U8(0),
B(Star), R(12),
B(LdaNamedProperty), R(12), U8(7), U8(13),
@@ -1050,9 +1050,9 @@ bytecodes: [
/* 49 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
B(Star), R(13),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
B(Star), R(14),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(14),
@@ -1079,7 +1079,7 @@ bytecodes: [
B(PopContext), R(2),
B(LdaZero),
B(StaContextSlot), R(1), U8(9), U8(0),
- B(JumpLoop), U8(212), I8(0),
+ B(JumpLoop), U8(210), I8(0),
B(Jump), U8(44),
B(Star), R(12),
B(Ldar), R(closure),
@@ -1218,7 +1218,7 @@ bytecodes: [
]
constant pool: [
Smi [56],
- Smi [152],
+ Smi [150],
FIXED_ARRAY_TYPE,
SYMBOL_TYPE,
Smi [142],
@@ -1233,15 +1233,15 @@ constant pool: [
FIXED_ARRAY_TYPE,
Smi [6],
Smi [18],
- Smi [554],
+ Smi [552],
Smi [6],
Smi [9],
]
handlers: [
- [56, 657, 663],
- [137, 426, 432],
- [140, 382, 384],
- [519, 535, 537],
+ [55, 652, 658],
+ [134, 421, 427],
+ [137, 377, 379],
+ [514, 530, 532],
]
---
@@ -1523,11 +1523,11 @@ snippet: "
"
frame size: 18
parameter count: 2
-bytecode array length: 735
+bytecode array length: 732
bytecodes: [
B(Ldar), R(new_target),
- B(JumpIfUndefined), U8(26),
- B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
+ B(JumpIfUndefined), U8(25),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
B(PushContext), R(4),
B(ResumeGenerator), R(new_target),
B(Star), R(3),
@@ -1593,7 +1593,7 @@ bytecodes: [
B(LdaContextSlot), R(1), U8(10), U8(0),
B(Star), R(13),
B(LdaNamedProperty), R(13), U8(5), U8(11),
- B(JumpIfToBooleanTrue), U8(167),
+ B(JumpIfToBooleanTrue), U8(165),
B(LdaContextSlot), R(1), U8(10), U8(0),
B(Star), R(13),
B(LdaNamedProperty), R(13), U8(6), U8(13),
@@ -1631,9 +1631,9 @@ bytecodes: [
/* 54 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
B(Star), R(14),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
B(Star), R(15),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(15),
@@ -1660,7 +1660,7 @@ bytecodes: [
B(PopContext), R(2),
B(LdaZero),
B(StaContextSlot), R(1), U8(11), U8(0),
- B(JumpLoop), U8(235), I8(0),
+ B(JumpLoop), U8(233), I8(0),
B(Jump), U8(48),
B(Star), R(13),
B(Ldar), R(closure),
@@ -1851,10 +1851,10 @@ constant pool: [
Smi [9],
]
handlers: [
- [65, 689, 695],
- [68, 636, 638],
- [85, 401, 407],
- [88, 353, 355],
- [494, 510, 512],
+ [64, 686, 692],
+ [67, 633, 635],
+ [84, 398, 404],
+ [87, 350, 352],
+ [491, 507, 509],
]

Powered by Google App Engine
This is Rietveld 408576698