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 5cc195230c4d159da8887730e77529fa1873005f..620249628cca37692207ac1e86a49e5789d33f10 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden |
@@ -648,11 +648,11 @@ snippet: " |
" |
frame size: 15 |
parameter count: 2 |
-bytecode array length: 596 |
+bytecode array length: 593 |
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), |
@@ -682,9 +682,9 @@ bytecodes: [ |
/* 55 S> */ B(Return), |
B(LdaSmi), I8(-2), |
B(Star), R(4), |
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(10), U8(1), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(10), U8(1), |
B(Star), R(11), |
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(10), U8(1), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(10), U8(1), |
B(Star), R(12), |
B(LdaZero), |
B(TestEqualStrictNoFeedback), R(12), |
@@ -914,10 +914,10 @@ constant pool: [ |
Smi [9], |
] |
handlers: [ |
- [56, 552, 558], |
- [137, 334, 340], |
- [140, 290, 292], |
- [426, 442, 444], |
+ [55, 549, 555], |
+ [134, 331, 337], |
+ [137, 287, 289], |
+ [423, 439, 441], |
] |
--- |
@@ -929,11 +929,11 @@ snippet: " |
" |
frame size: 18 |
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), |
@@ -963,9 +963,9 @@ bytecodes: [ |
/* 49 S> */ B(Return), |
B(LdaSmi), I8(-2), |
B(Star), R(3), |
- 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), |
@@ -1024,7 +1024,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), |
@@ -1055,9 +1055,9 @@ bytecodes: [ |
/* 49 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), |
@@ -1084,7 +1084,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), |
@@ -1223,7 +1223,7 @@ bytecodes: [ |
] |
constant pool: [ |
Smi [56], |
- Smi [152], |
+ Smi [150], |
FIXED_ARRAY_TYPE, |
SYMBOL_TYPE, |
Smi [142], |
@@ -1238,15 +1238,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], |
] |
--- |
@@ -1529,11 +1529,11 @@ snippet: " |
" |
frame size: 19 |
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), |
@@ -1599,7 +1599,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), |
@@ -1637,9 +1637,9 @@ bytecodes: [ |
/* 54 S> */ B(Return), |
B(LdaSmi), I8(-2), |
B(Star), R(3), |
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(14), U8(1), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(14), U8(1), |
B(Star), R(15), |
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(14), U8(1), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(14), U8(1), |
B(Star), R(16), |
B(LdaZero), |
B(TestEqualStrictNoFeedback), R(16), |
@@ -1666,7 +1666,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), |
@@ -1857,10 +1857,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], |
] |