| Index: test/cctest/interpreter/bytecode_expectations/ForOf.golden
|
| diff --git a/test/cctest/interpreter/bytecode_expectations/ForOf.golden b/test/cctest/interpreter/bytecode_expectations/ForOf.golden
|
| index 0a7b1ee004d4334e384eba474066428552c20218..06cdb3d3b3252f07edf4d58ce0fc571f4da894fc 100644
|
| --- a/test/cctest/interpreter/bytecode_expectations/ForOf.golden
|
| +++ b/test/cctest/interpreter/bytecode_expectations/ForOf.golden
|
| @@ -13,7 +13,7 @@ snippet: "
|
| "
|
| frame size: 16
|
| parameter count: 1
|
| -bytecode array length: 288
|
| +bytecode array length: 284
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| B(LdrUndefined), R(4),
|
| @@ -30,7 +30,7 @@ bytecodes: [
|
| /* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14),
|
| /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5),
|
| B(Star), R(2),
|
| - /* 45 E> */ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1),
|
| + /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1),
|
| B(ToBooleanLogicalNot),
|
| B(JumpIfFalse), U8(7),
|
| B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1),
|
| @@ -44,7 +44,7 @@ bytecodes: [
|
| B(Mov), R(0), R(7),
|
| B(LdaZero),
|
| B(Star), R(3),
|
| - B(Jump), U8(-49),
|
| + B(Jump), U8(-48),
|
| B(Jump), U8(41),
|
| B(Star), R(14),
|
| B(LdaConstant), U8(5),
|
| @@ -75,15 +75,15 @@ bytecodes: [
|
| B(LdaUndefined),
|
| B(TestEqualStrict), R(1),
|
| B(ToBooleanLogicalNot),
|
| - B(JumpIfFalse), U8(121),
|
| + B(JumpIfFalse), U8(118),
|
| B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
|
| B(LdaNull),
|
| B(TestEqual), R(5),
|
| B(JumpIfFalse), U8(4),
|
| - B(Jump), U8(109),
|
| + B(Jump), U8(106),
|
| B(LdaSmi), U8(1),
|
| B(TestEqualStrict), R(3),
|
| - B(JumpIfFalse), U8(76),
|
| + B(JumpIfFalse), U8(75),
|
| B(Ldar), R(5),
|
| B(TypeOf),
|
| B(Star), R(12),
|
| @@ -100,7 +100,7 @@ bytecodes: [
|
| B(Mov), R(context), R(12),
|
| B(Mov), R(5), R(13),
|
| B(Mov), R(1), R(14),
|
| - B(InvokeIntrinsic), U16(Runtime::k_Call), R(13), U8(2),
|
| + B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
| B(Jump), U8(29),
|
| B(Star), R(14),
|
| B(LdaConstant), U8(5),
|
| @@ -112,12 +112,12 @@ bytecodes: [
|
| B(Ldar), R(12),
|
| B(PushContext), R(8),
|
| B(PopContext), R(8),
|
| - B(Jump), U8(29),
|
| + B(Jump), U8(27),
|
| B(Mov), R(5), R(12),
|
| B(Mov), R(1), R(13),
|
| - B(InvokeIntrinsic), U16(Runtime::k_Call), R(12), U8(2),
|
| + B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
|
| B(Star), R(6),
|
| - B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(6), U8(1),
|
| + B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1),
|
| B(JumpIfToBooleanFalse), U8(4),
|
| B(Jump), U8(7),
|
| B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
|
| @@ -143,9 +143,9 @@ constant pool: [
|
| InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
| ]
|
| handlers: [
|
| - [9, 123, 129],
|
| - [12, 82, 84],
|
| - [202, 213, 215],
|
| + [9, 122, 128],
|
| + [12, 81, 83],
|
| + [201, 211, 213],
|
| ]
|
|
|
| ---
|
| @@ -155,7 +155,7 @@ snippet: "
|
| "
|
| frame size: 17
|
| parameter count: 1
|
| -bytecode array length: 301
|
| +bytecode array length: 297
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| /* 42 S> */ B(LdaConstant), U8(0),
|
| @@ -172,7 +172,7 @@ bytecodes: [
|
| /* 65 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(15),
|
| /* 65 E> */ B(Call), R(15), R(1), U8(1), U8(5),
|
| B(Star), R(2),
|
| - /* 65 E> */ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1),
|
| + /* 65 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1),
|
| B(ToBooleanLogicalNot),
|
| B(JumpIfFalse), U8(7),
|
| B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1),
|
| @@ -188,7 +188,7 @@ bytecodes: [
|
| B(Star), R(10),
|
| B(Mov), R(0), R(11),
|
| B(Jump), U8(57),
|
| - B(Jump), U8(-54),
|
| + B(Jump), U8(-53),
|
| B(Jump), U8(41),
|
| B(Star), R(15),
|
| B(LdaConstant), U8(5),
|
| @@ -219,15 +219,15 @@ bytecodes: [
|
| B(LdaUndefined),
|
| B(TestEqualStrict), R(1),
|
| B(ToBooleanLogicalNot),
|
| - B(JumpIfFalse), U8(121),
|
| + B(JumpIfFalse), U8(118),
|
| B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
|
| B(LdaNull),
|
| B(TestEqual), R(5),
|
| B(JumpIfFalse), U8(4),
|
| - B(Jump), U8(109),
|
| + B(Jump), U8(106),
|
| B(LdaSmi), U8(1),
|
| B(TestEqualStrict), R(3),
|
| - B(JumpIfFalse), U8(76),
|
| + B(JumpIfFalse), U8(75),
|
| B(Ldar), R(5),
|
| B(TypeOf),
|
| B(Star), R(13),
|
| @@ -244,7 +244,7 @@ bytecodes: [
|
| B(Mov), R(context), R(13),
|
| B(Mov), R(5), R(14),
|
| B(Mov), R(1), R(15),
|
| - B(InvokeIntrinsic), U16(Runtime::k_Call), R(14), U8(2),
|
| + B(InvokeIntrinsic), U8(Runtime::k_Call), R(14), U8(2),
|
| B(Jump), U8(29),
|
| B(Star), R(15),
|
| B(LdaConstant), U8(5),
|
| @@ -256,12 +256,12 @@ bytecodes: [
|
| B(Ldar), R(13),
|
| B(PushContext), R(9),
|
| B(PopContext), R(9),
|
| - B(Jump), U8(29),
|
| + B(Jump), U8(27),
|
| B(Mov), R(5), R(13),
|
| B(Mov), R(1), R(14),
|
| - B(InvokeIntrinsic), U16(Runtime::k_Call), R(13), U8(2),
|
| + B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
| B(Star), R(6),
|
| - B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(6), U8(1),
|
| + B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1),
|
| B(JumpIfToBooleanFalse), U8(4),
|
| B(Jump), U8(7),
|
| B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
|
| @@ -292,9 +292,9 @@ constant pool: [
|
| InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
| ]
|
| handlers: [
|
| - [13, 126, 132],
|
| - [16, 85, 87],
|
| - [206, 217, 219],
|
| + [13, 125, 131],
|
| + [16, 84, 86],
|
| + [205, 215, 217],
|
| ]
|
|
|
| ---
|
| @@ -306,7 +306,7 @@ snippet: "
|
| "
|
| frame size: 16
|
| parameter count: 1
|
| -bytecode array length: 304
|
| +bytecode array length: 300
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| B(LdrUndefined), R(4),
|
| @@ -323,7 +323,7 @@ bytecodes: [
|
| /* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14),
|
| /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5),
|
| B(Star), R(2),
|
| - /* 45 E> */ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1),
|
| + /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1),
|
| B(ToBooleanLogicalNot),
|
| B(JumpIfFalse), U8(7),
|
| B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1),
|
| @@ -345,7 +345,7 @@ bytecodes: [
|
| /* 104 S> */ B(Jump), U8(7),
|
| B(LdaZero),
|
| B(Star), R(3),
|
| - B(Jump), U8(-65),
|
| + B(Jump), U8(-64),
|
| B(Jump), U8(41),
|
| B(Star), R(14),
|
| B(LdaConstant), U8(5),
|
| @@ -376,15 +376,15 @@ bytecodes: [
|
| B(LdaUndefined),
|
| B(TestEqualStrict), R(1),
|
| B(ToBooleanLogicalNot),
|
| - B(JumpIfFalse), U8(121),
|
| + B(JumpIfFalse), U8(118),
|
| B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
|
| B(LdaNull),
|
| B(TestEqual), R(5),
|
| B(JumpIfFalse), U8(4),
|
| - B(Jump), U8(109),
|
| + B(Jump), U8(106),
|
| B(LdaSmi), U8(1),
|
| B(TestEqualStrict), R(3),
|
| - B(JumpIfFalse), U8(76),
|
| + B(JumpIfFalse), U8(75),
|
| B(Ldar), R(5),
|
| B(TypeOf),
|
| B(Star), R(12),
|
| @@ -401,7 +401,7 @@ bytecodes: [
|
| B(Mov), R(context), R(12),
|
| B(Mov), R(5), R(13),
|
| B(Mov), R(1), R(14),
|
| - B(InvokeIntrinsic), U16(Runtime::k_Call), R(13), U8(2),
|
| + B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
| B(Jump), U8(29),
|
| B(Star), R(14),
|
| B(LdaConstant), U8(5),
|
| @@ -413,12 +413,12 @@ bytecodes: [
|
| B(Ldar), R(12),
|
| B(PushContext), R(8),
|
| B(PopContext), R(8),
|
| - B(Jump), U8(29),
|
| + B(Jump), U8(27),
|
| B(Mov), R(5), R(12),
|
| B(Mov), R(1), R(13),
|
| - B(InvokeIntrinsic), U16(Runtime::k_Call), R(12), U8(2),
|
| + B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
|
| B(Star), R(6),
|
| - B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(6), U8(1),
|
| + B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1),
|
| B(JumpIfToBooleanFalse), U8(4),
|
| B(Jump), U8(7),
|
| B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
|
| @@ -444,9 +444,9 @@ constant pool: [
|
| InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
| ]
|
| handlers: [
|
| - [9, 139, 145],
|
| - [12, 98, 100],
|
| - [218, 229, 231],
|
| + [9, 138, 144],
|
| + [12, 97, 99],
|
| + [217, 227, 229],
|
| ]
|
|
|
| ---
|
| @@ -456,7 +456,7 @@ snippet: "
|
| "
|
| frame size: 15
|
| parameter count: 1
|
| -bytecode array length: 312
|
| +bytecode array length: 308
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
|
| @@ -476,7 +476,7 @@ bytecodes: [
|
| /* 74 S> */ B(LdrNamedProperty), R(0), U8(3), U8(7), R(13),
|
| /* 74 E> */ B(Call), R(13), R(0), U8(1), U8(5),
|
| B(Star), R(1),
|
| - /* 74 E> */ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(1), U8(1),
|
| + /* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(1), U8(1),
|
| B(ToBooleanLogicalNot),
|
| B(JumpIfFalse), U8(7),
|
| B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(1), U8(1),
|
| @@ -492,7 +492,7 @@ bytecodes: [
|
| B(LdaZero),
|
| B(Star), R(8),
|
| B(Jump), U8(57),
|
| - B(Jump), U8(-55),
|
| + B(Jump), U8(-54),
|
| B(Jump), U8(41),
|
| B(Star), R(13),
|
| B(LdaConstant), U8(7),
|
| @@ -523,15 +523,15 @@ bytecodes: [
|
| B(LdaUndefined),
|
| B(TestEqualStrict), R(0),
|
| B(ToBooleanLogicalNot),
|
| - B(JumpIfFalse), U8(121),
|
| + B(JumpIfFalse), U8(118),
|
| B(LdrNamedProperty), R(0), U8(8), U8(17), R(4),
|
| B(LdaNull),
|
| B(TestEqual), R(4),
|
| B(JumpIfFalse), U8(4),
|
| - B(Jump), U8(109),
|
| + B(Jump), U8(106),
|
| B(LdaSmi), U8(1),
|
| B(TestEqualStrict), R(2),
|
| - B(JumpIfFalse), U8(76),
|
| + B(JumpIfFalse), U8(75),
|
| B(Ldar), R(4),
|
| B(TypeOf),
|
| B(Star), R(11),
|
| @@ -548,7 +548,7 @@ bytecodes: [
|
| B(Mov), R(context), R(11),
|
| B(Mov), R(4), R(12),
|
| B(Mov), R(0), R(13),
|
| - B(InvokeIntrinsic), U16(Runtime::k_Call), R(12), U8(2),
|
| + B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
|
| B(Jump), U8(29),
|
| B(Star), R(13),
|
| B(LdaConstant), U8(7),
|
| @@ -560,12 +560,12 @@ bytecodes: [
|
| B(Ldar), R(11),
|
| B(PushContext), R(7),
|
| B(PopContext), R(7),
|
| - B(Jump), U8(29),
|
| + B(Jump), U8(27),
|
| B(Mov), R(4), R(11),
|
| B(Mov), R(0), R(12),
|
| - B(InvokeIntrinsic), U16(Runtime::k_Call), R(11), U8(2),
|
| + B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
|
| B(Star), R(5),
|
| - B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(5), U8(1),
|
| + B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(5), U8(1),
|
| B(JumpIfToBooleanFalse), U8(4),
|
| B(Jump), U8(7),
|
| B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1),
|
| @@ -598,8 +598,8 @@ constant pool: [
|
| InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
| ]
|
| handlers: [
|
| - [17, 137, 143],
|
| - [20, 96, 98],
|
| - [217, 228, 230],
|
| + [17, 136, 142],
|
| + [20, 95, 97],
|
| + [216, 226, 228],
|
| ]
|
|
|
|
|