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 1a542b8aec239616cd1a9736953a4cc43671a5d5..8171da04fbed0f582aee2a527785bd84af4e9548 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/Generators.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/Generators.golden |
@@ -13,7 +13,7 @@ snippet: " |
" |
frame size: 12 |
parameter count: 1 |
-bytecode array length: 204 |
+bytecode array length: 208 |
bytecodes: [ |
B(Ldar), R(new_target), |
B(JumpIfUndefined), U8(28), |
@@ -23,7 +23,7 @@ bytecodes: [ |
B(Star), R(1), |
B(LdaZero), |
B(TestEqualStrict), R(1), U8(0), |
- B(JumpIfTrue), U8(53), |
+ B(JumpIfTrue), U8(57), |
B(LdaSmi), I8(78), |
B(Star), R(3), |
B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
@@ -35,10 +35,12 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 11 E> */ B(StackCheck), |
B(Mov), R(context), R(5), |
+ B(LdaConstant), U8(0), |
+ B(Star), R(6), |
B(LdaImmutableCurrentContextSlot), U8(4), |
- B(Star), R(7), |
- B(Mov), R(closure), R(6), |
- /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(6), U8(2), |
+ B(Star), R(8), |
+ B(Mov), R(closure), R(7), |
+ /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(7), U8(2), |
B(StaCurrentContextSlot), U8(5), |
B(Star), R(6), |
B(LdaImmutableCurrentContextSlot), U8(5), |
@@ -113,9 +115,10 @@ bytecodes: [ |
/* 16 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"], |
] |
handlers: [ |
- [46, 143, 149], |
+ [46, 147, 153], |
] |
--- |
@@ -125,7 +128,7 @@ snippet: " |
" |
frame size: 12 |
parameter count: 1 |
-bytecode array length: 299 |
+bytecode array length: 303 |
bytecodes: [ |
B(Ldar), R(new_target), |
B(JumpIfUndefined), U8(35), |
@@ -135,10 +138,10 @@ bytecodes: [ |
B(Star), R(1), |
B(LdaZero), |
B(TestEqualStrict), R(1), U8(0), |
- B(JumpIfTrue), U8(60), |
+ B(JumpIfTrue), U8(64), |
B(LdaSmi), I8(1), |
B(TestEqualStrict), R(1), U8(0), |
- B(JumpIfTrue), U8(130), |
+ B(JumpIfTrue), U8(134), |
B(LdaSmi), I8(78), |
B(Star), R(3), |
B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
@@ -150,10 +153,12 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 11 E> */ B(StackCheck), |
B(Mov), R(context), R(5), |
+ B(LdaConstant), U8(0), |
+ B(Star), R(6), |
B(LdaImmutableCurrentContextSlot), U8(4), |
- B(Star), R(7), |
- B(Mov), R(closure), R(6), |
- /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(6), U8(2), |
+ B(Star), R(8), |
+ B(Mov), R(closure), R(7), |
+ /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(7), U8(2), |
B(StaCurrentContextSlot), U8(5), |
B(Star), R(6), |
B(LdaImmutableCurrentContextSlot), U8(5), |
@@ -268,9 +273,10 @@ bytecodes: [ |
/* 25 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"], |
] |
handlers: [ |
- [53, 228, 234], |
+ [53, 232, 238], |
] |
--- |
@@ -280,7 +286,7 @@ snippet: " |
" |
frame size: 18 |
parameter count: 1 |
-bytecode array length: 775 |
+bytecode array length: 823 |
bytecodes: [ |
B(Ldar), R(new_target), |
B(JumpIfUndefined), U8(35), |
@@ -290,10 +296,10 @@ bytecodes: [ |
B(Star), R(3), |
B(LdaZero), |
B(TestEqualStrict), R(3), U8(0), |
- B(JumpIfTrue), U8(60), |
+ B(JumpIfTrue), U8(64), |
B(LdaSmi), I8(1), |
B(TestEqualStrict), R(3), U8(0), |
- B(JumpIfTrue), U8(154), |
+ B(JumpIfTrue), U8(166), |
B(LdaSmi), I8(78), |
B(Star), R(5), |
B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
@@ -305,10 +311,12 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 11 E> */ B(StackCheck), |
B(Mov), R(context), R(7), |
+ B(LdaConstant), U8(0), |
+ B(Star), R(8), |
B(LdaImmutableCurrentContextSlot), U8(4), |
- B(Star), R(9), |
- B(Mov), R(closure), R(8), |
- /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(8), U8(2), |
+ B(Star), R(10), |
+ B(Mov), R(closure), R(9), |
+ /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(9), U8(2), |
B(StaCurrentContextSlot), U8(5), |
B(Star), R(8), |
B(LdaImmutableCurrentContextSlot), U8(5), |
@@ -337,23 +345,27 @@ bytecodes: [ |
B(Star), R(6), |
B(LdaZero), |
B(Star), R(5), |
- B(JumpConstant), U8(13), |
+ B(JumpConstant), U8(18), |
B(Ldar), R(10), |
/* 11 E> */ B(Throw), |
B(Ldar), R(closure), |
- B(CreateBlockContext), U8(0), |
+ B(CreateBlockContext), U8(1), |
B(PushContext), R(1), |
B(LdaTheHole), |
B(StaCurrentContextSlot), U8(4), |
+ B(LdaConstant), U8(2), |
+ B(Star), R(8), |
B(LdaZero), |
B(StaContextSlot), R(1), U8(9), U8(0), |
B(Mov), R(context), R(10), |
B(Mov), R(context), R(11), |
- /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9), |
+ /* 30 S> */ B(LdaConstant), U8(3), |
B(Star), R(12), |
- B(LdaNamedProperty), R(12), U8(2), U8(3), |
+ B(CreateArrayLiteral), U8(4), U8(6), U8(9), |
B(Star), R(13), |
- B(CallProperty), R(13), R(12), U8(1), U8(5), |
+ B(LdaNamedProperty), R(13), U8(5), U8(7), |
+ B(Star), R(14), |
+ B(CallProperty), R(14), R(13), U8(1), U8(9), |
B(JumpIfJSReceiver), U8(7), |
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0), |
/* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0), |
@@ -362,15 +374,17 @@ bytecodes: [ |
B(JumpIfTrue), U8(18), |
B(LdaSmi), I8(1), |
B(TestEqualStrict), R(3), U8(0), |
- B(JumpIfTrue), U8(134), |
+ B(JumpIfTrue), U8(154), |
B(LdaSmi), I8(78), |
B(Star), R(12), |
B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), |
- /* 27 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), |
- B(Star), R(13), |
- B(LdaNamedProperty), R(13), U8(3), U8(9), |
+ /* 27 S> */ B(LdaConstant), U8(6), |
B(Star), R(12), |
- /* 27 E> */ B(CallProperty), R(12), R(13), U8(1), U8(7), |
+ B(LdaContextSlot), R(1), U8(7), U8(0), |
+ B(Star), R(14), |
+ B(LdaNamedProperty), R(14), U8(7), U8(15), |
+ B(Star), R(13), |
+ /* 27 E> */ B(CallProperty), R(13), R(14), U8(1), U8(13), |
/* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0), |
B(Star), R(12), |
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), |
@@ -381,22 +395,30 @@ bytecodes: [ |
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1), |
B(LdaContextSlot), R(1), U8(8), U8(0), |
B(Star), R(12), |
- B(LdaNamedProperty), R(12), U8(4), U8(11), |
- B(JumpIfToBooleanTrue), U8(147), |
- B(LdaContextSlot), R(1), U8(8), U8(0), |
+ B(LdaNamedProperty), R(12), U8(8), U8(19), |
+ B(JumpIfToBooleanTrue), U8(167), |
+ B(LdaConstant), U8(9), |
B(Star), R(12), |
- B(LdaNamedProperty), R(12), U8(5), U8(13), |
+ B(LdaConstant), U8(2), |
+ B(Star), R(13), |
+ B(LdaContextSlot), R(1), U8(8), U8(0), |
+ B(Star), R(14), |
+ B(LdaNamedProperty), R(14), U8(10), U8(21), |
B(StaContextSlot), R(1), U8(10), U8(0), |
+ B(LdaConstant), U8(2), |
+ B(Star), R(13), |
B(LdaSmi), I8(2), |
B(StaContextSlot), R(1), U8(9), U8(0), |
B(LdaContextSlot), R(1), U8(10), U8(0), |
B(StaContextSlot), R(1), U8(6), U8(0), |
/* 16 E> */ B(StackCheck), |
B(Ldar), R(closure), |
- B(CreateBlockContext), U8(6), |
+ B(CreateBlockContext), U8(11), |
B(PushContext), R(2), |
B(LdaTheHole), |
B(StaCurrentContextSlot), U8(4), |
+ B(LdaConstant), U8(12), |
+ B(Star), R(12), |
B(LdaContextSlot), R(1), U8(6), U8(0), |
B(StaCurrentContextSlot), U8(4), |
/* 36 S> */ B(LdaImmutableCurrentContextSlot), U8(4), |
@@ -437,24 +459,28 @@ bytecodes: [ |
B(Star), R(9), |
B(LdaZero), |
B(Star), R(8), |
- B(Jump), U8(71), |
+ B(Jump), U8(79), |
B(Ldar), R(14), |
/* 36 E> */ B(Throw), |
B(PopContext), R(2), |
+ B(LdaConstant), U8(2), |
+ B(Star), R(12), |
B(LdaZero), |
B(StaContextSlot), R(1), U8(9), U8(0), |
- B(JumpLoop), U8(218), I8(0), |
- B(Jump), U8(44), |
+ B(JumpLoop), U8(242), I8(0), |
+ B(Jump), U8(48), |
B(Star), R(12), |
B(Ldar), R(closure), |
- B(CreateCatchContext), R(12), U8(7), U8(8), |
+ B(CreateCatchContext), R(12), U8(13), U8(14), |
B(Star), R(11), |
B(PushContext), R(2), |
B(LdaContextSlot), R(1), U8(9), U8(0), |
B(Star), R(12), |
B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(12), U8(15), |
- B(JumpIfFalse), U8(8), |
+ B(TestEqualStrict), R(12), U8(33), |
+ B(JumpIfFalse), U8(12), |
+ B(LdaConstant), U8(2), |
+ B(Star), R(12), |
B(LdaSmi), I8(1), |
B(StaContextSlot), R(1), U8(9), U8(0), |
B(LdaImmutableCurrentContextSlot), U8(4), |
@@ -473,32 +499,34 @@ bytecodes: [ |
B(LdaContextSlot), R(1), U8(9), U8(0), |
B(Star), R(11), |
B(LdaZero), |
- B(TestEqualStrict), R(11), U8(16), |
- B(JumpIfTrue), U8(159), |
- B(LdaContextSlot), R(1), U8(7), U8(0), |
+ B(TestEqualStrict), R(11), U8(36), |
+ B(JumpIfTrue), U8(167), |
+ B(LdaConstant), U8(2), |
B(Star), R(11), |
- B(LdaNamedProperty), R(11), U8(9), U8(17), |
+ B(LdaContextSlot), R(1), U8(7), U8(0), |
+ B(Star), R(12), |
+ B(LdaNamedProperty), R(12), U8(15), U8(37), |
B(StaContextSlot), R(1), U8(11), U8(0), |
B(LdaContextSlot), R(1), U8(11), U8(0), |
B(Star), R(11), |
B(TestUndetectable), R(11), |
B(JumpIfFalse), U8(4), |
- B(Jump), U8(133), |
+ B(Jump), U8(137), |
B(LdaContextSlot), R(1), U8(9), U8(0), |
B(Star), R(11), |
B(LdaSmi), I8(1), |
- B(TestEqualStrict), R(11), U8(20), |
+ B(TestEqualStrict), R(11), U8(42), |
B(JumpIfFalse), U8(75), |
B(LdaContextSlot), R(1), U8(11), U8(0), |
B(TypeOf), |
B(Star), R(11), |
- B(LdaConstant), U8(10), |
- B(TestEqualStrict), R(11), U8(21), |
+ B(LdaConstant), U8(16), |
+ B(TestEqualStrict), R(11), U8(43), |
B(JumpIfFalse), U8(4), |
B(Jump), U8(18), |
B(Wide), B(LdaSmi), I16(130), |
B(Star), R(11), |
- B(LdaConstant), U8(11), |
+ B(LdaConstant), U8(2), |
B(Star), R(12), |
B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), |
B(Throw), |
@@ -511,19 +539,21 @@ bytecodes: [ |
B(Jump), U8(20), |
B(Star), R(12), |
B(Ldar), R(closure), |
- B(CreateCatchContext), R(12), U8(7), U8(12), |
+ B(CreateCatchContext), R(12), U8(13), U8(17), |
B(Star), R(11), |
B(LdaTheHole), |
B(SetPendingMessage), |
B(Ldar), R(11), |
B(PushContext), R(2), |
B(PopContext), R(2), |
- B(Jump), U8(47), |
- B(LdaContextSlot), R(1), U8(11), U8(0), |
+ B(Jump), U8(51), |
+ B(LdaConstant), U8(2), |
B(Star), R(11), |
- B(LdaContextSlot), R(1), U8(7), U8(0), |
+ B(LdaContextSlot), R(1), U8(11), U8(0), |
B(Star), R(12), |
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), |
+ B(LdaContextSlot), R(1), U8(7), U8(0), |
+ B(Star), R(13), |
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), |
B(StaContextSlot), R(1), U8(12), U8(0), |
B(LdaContextSlot), R(1), U8(12), U8(0), |
B(Star), R(11), |
@@ -608,25 +638,30 @@ bytecodes: [ |
/* 44 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"], |
FIXED_ARRAY_TYPE, |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".iterator"], |
CONSTANT_ELEMENTS_PAIR_TYPE, |
SYMBOL_TYPE, |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".for"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
FIXED_ARRAY_TYPE, |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
FIXED_ARRAY_TYPE, |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], |
- ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
FIXED_ARRAY_TYPE, |
- Smi [579], |
+ Smi [623], |
] |
handlers: [ |
- [53, 694, 700], |
- [149, 445, 451], |
- [152, 401, 403], |
- [547, 563, 565], |
+ [53, 742, 748], |
+ [157, 485, 491], |
+ [160, 437, 439], |
+ [591, 607, 609], |
] |