Index: test/cctest/interpreter/bytecode_expectations/Generators.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/Generators.golden b/test/cctest/interpreter/bytecode_expectations/Generators.golden |
index f09af84f6fef3bf0f6a19a23b659a912dc3ba641..5054c325993958e39575345d9aec3bfaaf1363b5 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/Generators.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/Generators.golden |
@@ -16,7 +16,7 @@ snippet: " |
" |
frame size: 11 |
parameter count: 1 |
-bytecode array length: 199 |
+bytecode array length: 200 |
bytecodes: [ |
B(Ldar), R(new_target), |
B(JumpIfUndefined), U8(20), |
@@ -24,7 +24,7 @@ bytecodes: [ |
B(Star), R(1), |
B(LdaZero), |
B(TestEqualStrict), R(1), |
- B(JumpIfTrue), U8(55), |
+ B(JumpIfTrue), U8(56), |
B(LdaSmi), U8(76), |
B(Star), R(2), |
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), |
@@ -34,9 +34,9 @@ bytecodes: [ |
B(StaContextSlot), R(context), U8(4), |
/* 11 E> */ B(StackCheck), |
B(Mov), R(context), R(4), |
- B(Ldar), R(closure), |
- B(Star), R(5), |
B(LdrContextSlot), R(context), U8(4), R(6), |
+ B(Ldar), R(6), |
+ B(Mov), R(closure), R(5), |
B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8(2), |
B(StaContextSlot), R(context), U8(5), |
B(Star), R(5), |
@@ -58,9 +58,9 @@ bytecodes: [ |
B(TestEqualStrict), R(8), |
B(JumpIfTrue), U8(22), |
B(Jump), U8(2), |
- B(Mov), R(7), R(9), |
B(LdaTrue), |
B(Star), R(10), |
+ B(Mov), R(7), R(9), |
B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(9), U8(2), |
B(Star), R(3), |
B(LdaZero), |
@@ -109,7 +109,7 @@ bytecodes: [ |
constant pool: [ |
] |
handlers: [ |
- [38, 136, 142], |
+ [38, 137, 143], |
] |
--- |
@@ -119,7 +119,7 @@ snippet: " |
" |
frame size: 11 |
parameter count: 1 |
-bytecode array length: 292 |
+bytecode array length: 293 |
bytecodes: [ |
B(Ldar), R(new_target), |
B(JumpIfUndefined), U8(26), |
@@ -127,7 +127,7 @@ bytecodes: [ |
B(Star), R(1), |
B(LdaZero), |
B(TestEqualStrict), R(1), |
- B(JumpIfTrue), U8(61), |
+ B(JumpIfTrue), U8(62), |
B(LdaSmi), U8(1), |
B(TestEqualStrict), R(1), |
B(JumpIfTrueConstant), U8(0), |
@@ -140,9 +140,9 @@ bytecodes: [ |
B(StaContextSlot), R(context), U8(4), |
/* 11 E> */ B(StackCheck), |
B(Mov), R(context), R(4), |
- B(Ldar), R(closure), |
- B(Star), R(5), |
B(LdrContextSlot), R(context), U8(4), R(6), |
+ B(Ldar), R(6), |
+ B(Mov), R(closure), R(5), |
B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8(2), |
B(StaContextSlot), R(context), U8(5), |
B(Star), R(5), |
@@ -164,9 +164,9 @@ bytecodes: [ |
B(TestEqualStrict), R(8), |
B(JumpIfTrue), U8(22), |
B(Jump), U8(2), |
- B(Mov), R(7), R(9), |
B(LdaTrue), |
B(Star), R(10), |
+ B(Mov), R(7), R(9), |
B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(9), U8(2), |
B(Star), R(3), |
B(LdaZero), |
@@ -198,9 +198,9 @@ bytecodes: [ |
B(TestEqualStrict), R(8), |
B(JumpIfTrue), U8(23), |
B(Jump), U8(2), |
- B(Mov), R(6), R(9), |
B(LdaTrue), |
B(Star), R(10), |
+ B(Mov), R(6), R(9), |
B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(9), U8(2), |
B(Star), R(3), |
B(LdaSmi), U8(1), |
@@ -255,7 +255,7 @@ constant pool: [ |
kInstanceTypeDontCare, |
] |
handlers: [ |
- [44, 220, 226], |
+ [44, 221, 227], |
] |
--- |
@@ -265,7 +265,7 @@ snippet: " |
" |
frame size: 17 |
parameter count: 1 |
-bytecode array length: 784 |
+bytecode array length: 779 |
bytecodes: [ |
B(Ldar), R(new_target), |
B(JumpIfUndefined), U8(26), |
@@ -273,7 +273,7 @@ bytecodes: [ |
B(Star), R(3), |
B(LdaZero), |
B(TestEqualStrict), R(3), |
- B(JumpIfTrue), U8(61), |
+ B(JumpIfTrue), U8(62), |
B(LdaSmi), U8(1), |
B(TestEqualStrict), R(3), |
B(JumpIfTrueConstant), U8(3), |
@@ -286,9 +286,9 @@ bytecodes: [ |
B(StaContextSlot), R(context), U8(4), |
/* 11 E> */ B(StackCheck), |
B(Mov), R(context), R(6), |
- B(Ldar), R(closure), |
- B(Star), R(7), |
B(LdrContextSlot), R(context), U8(4), R(8), |
+ B(Ldar), R(8), |
+ B(Mov), R(closure), R(7), |
B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(7), U8(2), |
B(StaContextSlot), R(context), U8(5), |
B(Star), R(7), |
@@ -310,20 +310,19 @@ bytecodes: [ |
B(TestEqualStrict), R(10), |
B(JumpIfTrue), U8(22), |
B(Jump), U8(2), |
- B(Mov), R(9), R(11), |
B(LdaTrue), |
B(Star), R(12), |
+ B(Mov), R(9), R(11), |
B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(11), U8(2), |
B(Star), R(5), |
B(LdaZero), |
B(Star), R(4), |
- B(JumpConstant), U8(17), |
+ B(JumpConstant), U8(16), |
B(Ldar), R(9), |
B(Throw), |
B(LdaConstant), U8(0), |
B(Star), R(7), |
- B(Ldar), R(closure), |
- B(Star), R(8), |
+ B(Mov), R(closure), R(8), |
B(CallRuntime), U16(Runtime::kPushBlockContext), R(7), U8(2), |
B(PushContext), R(1), |
B(LdaTheHole), |
@@ -371,8 +370,7 @@ bytecodes: [ |
/* 16 E> */ B(StackCheck), |
B(LdaConstant), U8(7), |
B(Star), R(11), |
- B(Ldar), R(closure), |
- B(Star), R(12), |
+ B(Mov), R(closure), R(12), |
B(CallRuntime), U16(Runtime::kPushBlockContext), R(11), U8(2), |
B(PushContext), R(2), |
B(LdaTheHole), |
@@ -407,9 +405,9 @@ bytecodes: [ |
B(TestEqualStrict), R(14), |
B(JumpIfTrue), U8(36), |
B(Jump), U8(2), |
- B(Mov), R(12), R(15), |
B(LdaTrue), |
B(Star), R(16), |
+ B(Mov), R(12), R(15), |
B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(15), U8(2), |
B(PopContext), R(2), |
B(PopContext), R(2), |
@@ -421,20 +419,19 @@ bytecodes: [ |
B(Star), R(8), |
B(LdaZero), |
B(Star), R(7), |
- B(Jump), U8(76), |
+ B(Jump), U8(75), |
B(Ldar), R(12), |
B(Throw), |
B(Ldar), R(12), |
B(PopContext), R(2), |
B(LdaZero), |
B(StaContextSlot), R(1), U8(9), |
- B(Wide), B(Jump), U16(-224), |
- B(Jump), U8(47), |
+ B(Wide), B(Jump), U16(-223), |
+ B(Jump), U8(46), |
B(Star), R(12), |
B(LdaConstant), U8(11), |
B(Star), R(11), |
- B(Ldar), R(closure), |
- B(Star), R(13), |
+ B(Mov), R(closure), R(13), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(11), U8(3), |
B(Star), R(10), |
B(PushContext), R(2), |
@@ -463,7 +460,7 @@ bytecodes: [ |
B(LdaUndefined), |
B(TestEqualStrict), R(10), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalseConstant), U8(16), |
+ B(JumpIfFalseConstant), U8(15), |
B(LdrContextSlot), R(1), U8(7), R(10), |
B(LdaNamedProperty), R(10), U8(12), U8(13), |
B(StaContextSlot), R(1), U8(11), |
@@ -471,11 +468,11 @@ bytecodes: [ |
B(LdaNull), |
B(TestEqual), R(10), |
B(JumpIfFalse), U8(4), |
- B(JumpConstant), U8(15), |
+ B(Jump), U8(127), |
B(LdrContextSlot), R(1), U8(9), R(10), |
B(LdaSmi), U8(1), |
B(TestEqualStrict), R(10), |
- B(JumpIfFalse), U8(80), |
+ B(JumpIfFalse), U8(79), |
B(LdaContextSlot), R(1), U8(11), |
B(TypeOf), |
B(Star), R(10), |
@@ -493,12 +490,11 @@ bytecodes: [ |
B(LdrContextSlot), R(1), U8(11), R(11), |
B(LdrContextSlot), R(1), U8(7), R(12), |
B(CallRuntime), U16(Runtime::k_Call), R(11), U8(2), |
- B(Jump), U8(30), |
+ B(Jump), U8(29), |
B(Star), R(12), |
B(LdaConstant), U8(11), |
B(Star), R(11), |
- B(Ldar), R(closure), |
- B(Star), R(13), |
+ B(Mov), R(closure), R(13), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(11), U8(3), |
B(Star), R(10), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
@@ -522,21 +518,19 @@ bytecodes: [ |
B(JumpIfTrue), U8(10), |
B(LdaSmi), U8(1), |
B(TestEqualStrict), R(7), |
- B(JumpIfTrue), U8(18), |
- B(Jump), U8(30), |
- B(Ldar), R(8), |
+ B(JumpIfTrue), U8(17), |
+ B(Jump), U8(28), |
B(PopContext), R(1), |
B(PopContext), R(1), |
- B(Star), R(5), |
B(LdaSmi), U8(1), |
B(Star), R(4), |
- B(Jump), U8(48), |
- B(Ldar), R(8), |
+ B(Mov), R(8), R(5), |
+ B(Jump), U8(47), |
B(PopContext), R(1), |
B(PopContext), R(1), |
- B(Star), R(5), |
B(LdaSmi), U8(2), |
B(Star), R(4), |
+ B(Mov), R(8), R(5), |
B(Jump), U8(34), |
B(PopContext), R(1), |
B(LdrUndefined), R(7), |
@@ -605,12 +599,11 @@ constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
kInstanceTypeDontCare, |
kInstanceTypeDontCare, |
- kInstanceTypeDontCare, |
] |
handlers: [ |
- [44, 703, 709], |
- [154, 451, 457], |
- [157, 404, 406], |
- [554, 567, 569], |
+ [44, 698, 704], |
+ [154, 449, 455], |
+ [157, 403, 405], |
+ [552, 565, 567], |
] |