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 6fb1c4b08fe3f73c63097f3cb7cd953231ff183c..d94c0ed8ca229e7aac50c19390bb1aa9bfd59c44 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: 347 |
+bytecode array length: 292 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
B(LdaUndefined), |
@@ -29,49 +29,35 @@ bytecodes: [ |
B(Star), R(13), |
/* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), |
/* 48 E> */ B(Star), R(1), |
- /* 45 S> */ B(Ldar), R(1), |
- B(Star), R(15), |
- B(LoadIC), R(15), U8(2), U8(7), |
+ /* 45 S> */ B(LoadIC), R(1), U8(2), U8(7), |
B(Star), R(14), |
- /* 45 E> */ B(Call), R(14), R(15), U8(1), U8(5), |
+ /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5), |
/* 45 E> */ B(Star), R(2), |
- B(Star), R(13), |
- B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(13), U8(1), |
+ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalse), U8(11), |
- B(Ldar), R(2), |
- B(Star), R(13), |
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1), |
- B(Ldar), R(2), |
- B(Star), R(13), |
- B(LoadIC), R(13), U8(3), U8(9), |
- B(JumpIfToBooleanTrue), U8(28), |
+ B(JumpIfFalse), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1), |
+ B(LoadIC), R(2), U8(3), U8(9), |
+ B(JumpIfToBooleanTrue), U8(21), |
B(LdaSmi), U8(2), |
B(Star), R(3), |
- B(Ldar), R(2), |
- B(Star), R(13), |
- B(LoadIC), R(13), U8(4), U8(11), |
+ B(LoadIC), R(2), U8(4), U8(11), |
B(Star), R(0), |
- B(Ldar), R(4), |
/* 34 E> */ B(StackCheck), |
- B(Ldar), R(0), |
- B(Star), R(7), |
+ B(Mov), R(0), R(7), |
B(LdaZero), |
B(Star), R(3), |
- B(Jump), U8(-70), |
- B(Jump), U8(47), |
+ B(Jump), U8(-49), |
+ B(Jump), U8(42), |
B(Star), R(14), |
B(LdaConstant), U8(5), |
B(Star), R(13), |
- B(Ldar), R(closure), |
- B(Star), R(15), |
+ B(Mov), R(closure), R(15), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3), |
B(Star), R(12), |
B(PushContext), R(8), |
- B(Ldar), R(3), |
- B(Star), R(13), |
B(LdaSmi), U8(2), |
- B(TestEqualStrict), R(13), |
+ B(TestEqualStrict), R(3), |
B(JumpIfFalse), U8(6), |
B(LdaSmi), U8(1), |
B(Star), R(3), |
@@ -87,31 +73,22 @@ bytecodes: [ |
B(Star), R(9), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
B(Star), R(11), |
- B(Ldar), R(3), |
- B(Star), R(12), |
B(LdaZero), |
- B(TestEqualStrict), R(12), |
- B(JumpIfTrue), U8(9), |
- B(Ldar), R(1), |
- B(Star), R(12), |
+ B(TestEqualStrict), R(3), |
+ B(JumpIfTrue), U8(5), |
B(LdaUndefined), |
- B(TestEqualStrict), R(12), |
+ B(TestEqualStrict), R(1), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalseConstant), U8(9), |
- B(Ldar), R(1), |
- B(Star), R(12), |
- B(LoadIC), R(12), U8(6), U8(13), |
+ B(JumpIfFalse), U8(122), |
+ B(LoadIC), R(1), U8(6), U8(13), |
B(Star), R(5), |
- B(Star), R(12), |
B(LdaNull), |
- B(TestEqual), R(12), |
+ B(TestEqual), R(5), |
B(JumpIfFalse), U8(4), |
- B(Jump), U8(124), |
- B(Ldar), R(3), |
- B(Star), R(12), |
+ B(Jump), U8(109), |
B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(12), |
- B(JumpIfFalse), U8(79), |
+ B(TestEqualStrict), R(3), |
+ B(JumpIfFalse), U8(76), |
B(Ldar), R(5), |
B(TypeOf), |
B(Star), R(12), |
@@ -126,37 +103,29 @@ bytecodes: [ |
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), |
B(Throw), |
B(Mov), R(context), R(12), |
- B(Ldar), R(5), |
- B(Star), R(13), |
- B(Ldar), R(1), |
- B(Star), R(14), |
+ B(Mov), R(5), R(13), |
+ B(Mov), R(1), R(14), |
B(CallRuntime), U16(Runtime::k_Call), R(13), U8(2), |
- B(Jump), U8(30), |
+ B(Jump), U8(29), |
B(Star), R(14), |
B(LdaConstant), U8(5), |
B(Star), R(13), |
- B(Ldar), R(closure), |
- B(Star), R(15), |
+ B(Mov), R(closure), R(15), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3), |
B(Star), R(12), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
B(Ldar), R(12), |
B(PushContext), R(8), |
B(PopContext), R(8), |
- B(Jump), U8(37), |
- B(Ldar), R(5), |
- B(Star), R(12), |
- B(Ldar), R(1), |
- B(Star), R(13), |
+ B(Jump), U8(29), |
+ B(Mov), R(5), R(12), |
+ B(Mov), R(1), R(13), |
B(CallRuntime), U16(Runtime::k_Call), R(12), U8(2), |
B(Star), R(6), |
- B(Star), R(12), |
- B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(12), U8(1), |
+ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(6), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
- B(Jump), U8(11), |
- B(Ldar), R(6), |
- B(Star), R(12), |
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1), |
+ B(Jump), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1), |
B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(11), U8(1), |
B(LdaZero), |
B(TestEqualStrict), R(9), |
@@ -177,12 +146,11 @@ constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
- kInstanceTypeDontCare, |
] |
handlers: [ |
- [10, 152, 158], |
- [13, 105, 107], |
- [250, 263, 265], |
+ [10, 126, 132], |
+ [13, 84, 86], |
+ [206, 217, 219], |
] |
--- |
@@ -192,7 +160,7 @@ snippet: " |
" |
frame size: 17 |
parameter count: 1 |
-bytecode array length: 363 |
+bytecode array length: 305 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaConstant), U8(0), |
@@ -203,58 +171,42 @@ bytecodes: [ |
B(Star), R(3), |
B(Mov), R(context), R(12), |
B(Mov), R(context), R(13), |
- /* 68 S> */ B(Ldar), R(7), |
- B(Star), R(15), |
- /* 68 E> */ B(LdaConstant), U8(1), |
- B(KeyedLoadIC), R(15), U8(3), |
+ /* 68 S> */ B(LdaConstant), U8(1), |
+ B(KeyedLoadIC), R(7), U8(3), |
B(Star), R(14), |
- /* 68 E> */ B(Call), R(14), R(15), U8(1), U8(1), |
+ /* 68 E> */ B(Call), R(14), R(7), U8(1), U8(1), |
/* 68 E> */ B(Star), R(1), |
- /* 65 S> */ B(Ldar), R(1), |
- B(Star), R(16), |
- B(LoadIC), R(16), U8(2), U8(7), |
+ /* 65 S> */ B(LoadIC), R(1), U8(2), U8(7), |
B(Star), R(15), |
- /* 65 E> */ B(Call), R(15), R(16), U8(1), U8(5), |
+ /* 65 E> */ B(Call), R(15), R(1), U8(1), U8(5), |
/* 65 E> */ B(Star), R(2), |
- B(Star), R(14), |
- B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(14), U8(1), |
+ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalse), U8(11), |
- B(Ldar), R(2), |
- B(Star), R(14), |
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1), |
- B(Ldar), R(2), |
- B(Star), R(14), |
- B(LoadIC), R(14), U8(3), U8(9), |
- B(JumpIfToBooleanTrue), U8(32), |
+ B(JumpIfFalse), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1), |
+ B(LoadIC), R(2), U8(3), U8(9), |
+ B(JumpIfToBooleanTrue), U8(26), |
B(LdaSmi), U8(2), |
B(Star), R(3), |
- B(Ldar), R(2), |
- B(Star), R(14), |
- B(LoadIC), R(14), U8(4), U8(11), |
+ B(LoadIC), R(2), U8(4), U8(11), |
B(Star), R(0), |
- B(Ldar), R(4), |
/* 54 E> */ B(StackCheck), |
- B(Ldar), R(0), |
- B(Star), R(8), |
- /* 73 S> */ B(Star), R(11), |
- B(LdaZero), |
+ B(Mov), R(0), R(8), |
+ /* 73 S> */ B(LdaZero), |
B(Star), R(10), |
- B(Jump), U8(63), |
- B(Jump), U8(-74), |
- B(Jump), U8(47), |
+ B(Mov), R(8), R(11), |
+ B(Jump), U8(58), |
+ B(Jump), U8(-54), |
+ B(Jump), U8(42), |
B(Star), R(15), |
B(LdaConstant), U8(5), |
B(Star), R(14), |
- B(Ldar), R(closure), |
- B(Star), R(16), |
+ B(Mov), R(closure), R(16), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(14), U8(3), |
B(Star), R(13), |
B(PushContext), R(9), |
- B(Ldar), R(3), |
- B(Star), R(14), |
B(LdaSmi), U8(2), |
- B(TestEqualStrict), R(14), |
+ B(TestEqualStrict), R(3), |
B(JumpIfFalse), U8(6), |
B(LdaSmi), U8(1), |
B(Star), R(3), |
@@ -270,31 +222,22 @@ bytecodes: [ |
B(Star), R(10), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
B(Star), R(12), |
- B(Ldar), R(3), |
- B(Star), R(13), |
B(LdaZero), |
- B(TestEqualStrict), R(13), |
- B(JumpIfTrue), U8(9), |
- B(Ldar), R(1), |
- B(Star), R(13), |
+ B(TestEqualStrict), R(3), |
+ B(JumpIfTrue), U8(5), |
B(LdaUndefined), |
- B(TestEqualStrict), R(13), |
+ B(TestEqualStrict), R(1), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalseConstant), U8(9), |
- B(Ldar), R(1), |
- B(Star), R(13), |
- B(LoadIC), R(13), U8(6), U8(13), |
+ B(JumpIfFalse), U8(122), |
+ B(LoadIC), R(1), U8(6), U8(13), |
B(Star), R(5), |
- B(Star), R(13), |
B(LdaNull), |
- B(TestEqual), R(13), |
+ B(TestEqual), R(5), |
B(JumpIfFalse), U8(4), |
- B(Jump), U8(124), |
- B(Ldar), R(3), |
- B(Star), R(13), |
+ B(Jump), U8(109), |
B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(13), |
- B(JumpIfFalse), U8(79), |
+ B(TestEqualStrict), R(3), |
+ B(JumpIfFalse), U8(76), |
B(Ldar), R(5), |
B(TypeOf), |
B(Star), R(13), |
@@ -309,37 +252,29 @@ bytecodes: [ |
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2), |
B(Throw), |
B(Mov), R(context), R(13), |
- B(Ldar), R(5), |
- B(Star), R(14), |
- B(Ldar), R(1), |
- B(Star), R(15), |
+ B(Mov), R(5), R(14), |
+ B(Mov), R(1), R(15), |
B(CallRuntime), U16(Runtime::k_Call), R(14), U8(2), |
- B(Jump), U8(30), |
+ B(Jump), U8(29), |
B(Star), R(15), |
B(LdaConstant), U8(5), |
B(Star), R(14), |
- B(Ldar), R(closure), |
- B(Star), R(16), |
+ B(Mov), R(closure), R(16), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(14), U8(3), |
B(Star), R(13), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
B(Ldar), R(13), |
B(PushContext), R(9), |
B(PopContext), R(9), |
- B(Jump), U8(37), |
- B(Ldar), R(5), |
- B(Star), R(13), |
- B(Ldar), R(1), |
- B(Star), R(14), |
+ B(Jump), U8(29), |
+ B(Mov), R(5), R(13), |
+ B(Mov), R(1), R(14), |
B(CallRuntime), U16(Runtime::k_Call), R(13), U8(2), |
B(Star), R(6), |
- B(Star), R(13), |
- B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(13), U8(1), |
+ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(6), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
- B(Jump), U8(11), |
- B(Ldar), R(6), |
- B(Star), R(13), |
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1), |
+ B(Jump), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1), |
B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(12), U8(1), |
B(LdaZero), |
B(TestEqualStrict), R(10), |
@@ -365,12 +300,11 @@ constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
- kInstanceTypeDontCare, |
] |
handlers: [ |
- [14, 158, 164], |
- [17, 111, 113], |
- [257, 270, 272], |
+ [14, 129, 135], |
+ [17, 87, 89], |
+ [210, 221, 223], |
] |
--- |
@@ -382,7 +316,7 @@ snippet: " |
" |
frame size: 16 |
parameter count: 1 |
-bytecode array length: 369 |
+bytecode array length: 308 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
B(LdaUndefined), |
@@ -398,60 +332,43 @@ bytecodes: [ |
B(Star), R(13), |
/* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), |
/* 48 E> */ B(Star), R(1), |
- /* 45 S> */ B(Ldar), R(1), |
- B(Star), R(15), |
- B(LoadIC), R(15), U8(2), U8(7), |
+ /* 45 S> */ B(LoadIC), R(1), U8(2), U8(7), |
B(Star), R(14), |
- /* 45 E> */ B(Call), R(14), R(15), U8(1), U8(5), |
+ /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5), |
/* 45 E> */ B(Star), R(2), |
- B(Star), R(13), |
- B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(13), U8(1), |
+ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(2), U8(1), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalse), U8(11), |
- B(Ldar), R(2), |
- B(Star), R(13), |
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1), |
- B(Ldar), R(2), |
- B(Star), R(13), |
- B(LoadIC), R(13), U8(3), U8(9), |
- B(JumpIfToBooleanTrue), U8(50), |
+ B(JumpIfFalse), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1), |
+ B(LoadIC), R(2), U8(3), U8(9), |
+ B(JumpIfToBooleanTrue), U8(37), |
B(LdaSmi), U8(2), |
B(Star), R(3), |
- B(Ldar), R(2), |
- B(Star), R(13), |
- B(LoadIC), R(13), U8(4), U8(11), |
+ B(LoadIC), R(2), U8(4), U8(11), |
B(Star), R(0), |
- B(Ldar), R(4), |
/* 34 E> */ B(StackCheck), |
- B(Ldar), R(0), |
- B(Star), R(7), |
- /* 66 S> */ B(Star), R(13), |
- B(LdaSmi), U8(10), |
- /* 72 E> */ B(TestEqual), R(13), |
+ B(Mov), R(0), R(7), |
+ /* 66 S> */ B(LdaSmi), U8(10), |
+ /* 72 E> */ B(TestEqual), R(7), |
B(JumpIfFalse), U8(4), |
- /* 79 S> */ B(Jump), U8(17), |
- /* 91 S> */ B(Ldar), R(7), |
- B(Star), R(13), |
- B(LdaSmi), U8(20), |
- /* 97 E> */ B(TestEqual), R(13), |
+ /* 79 S> */ B(Jump), U8(13), |
+ /* 91 S> */ B(LdaSmi), U8(20), |
+ /* 97 E> */ B(TestEqual), R(7), |
B(JumpIfFalse), U8(4), |
/* 104 S> */ B(Jump), U8(7), |
B(LdaZero), |
B(Star), R(3), |
- B(Jump), U8(-92), |
- B(Jump), U8(47), |
+ B(Jump), U8(-65), |
+ B(Jump), U8(42), |
B(Star), R(14), |
B(LdaConstant), U8(5), |
B(Star), R(13), |
- B(Ldar), R(closure), |
- B(Star), R(15), |
+ B(Mov), R(closure), R(15), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3), |
B(Star), R(12), |
B(PushContext), R(8), |
- B(Ldar), R(3), |
- B(Star), R(13), |
B(LdaSmi), U8(2), |
- B(TestEqualStrict), R(13), |
+ B(TestEqualStrict), R(3), |
B(JumpIfFalse), U8(6), |
B(LdaSmi), U8(1), |
B(Star), R(3), |
@@ -467,31 +384,22 @@ bytecodes: [ |
B(Star), R(9), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
B(Star), R(11), |
- B(Ldar), R(3), |
- B(Star), R(12), |
B(LdaZero), |
- B(TestEqualStrict), R(12), |
- B(JumpIfTrue), U8(9), |
- B(Ldar), R(1), |
- B(Star), R(12), |
+ B(TestEqualStrict), R(3), |
+ B(JumpIfTrue), U8(5), |
B(LdaUndefined), |
- B(TestEqualStrict), R(12), |
+ B(TestEqualStrict), R(1), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalseConstant), U8(9), |
- B(Ldar), R(1), |
- B(Star), R(12), |
- B(LoadIC), R(12), U8(6), U8(13), |
+ B(JumpIfFalse), U8(122), |
+ B(LoadIC), R(1), U8(6), U8(13), |
B(Star), R(5), |
- B(Star), R(12), |
B(LdaNull), |
- B(TestEqual), R(12), |
+ B(TestEqual), R(5), |
B(JumpIfFalse), U8(4), |
- B(Jump), U8(124), |
- B(Ldar), R(3), |
- B(Star), R(12), |
+ B(Jump), U8(109), |
B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(12), |
- B(JumpIfFalse), U8(79), |
+ B(TestEqualStrict), R(3), |
+ B(JumpIfFalse), U8(76), |
B(Ldar), R(5), |
B(TypeOf), |
B(Star), R(12), |
@@ -506,37 +414,29 @@ bytecodes: [ |
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), |
B(Throw), |
B(Mov), R(context), R(12), |
- B(Ldar), R(5), |
- B(Star), R(13), |
- B(Ldar), R(1), |
- B(Star), R(14), |
+ B(Mov), R(5), R(13), |
+ B(Mov), R(1), R(14), |
B(CallRuntime), U16(Runtime::k_Call), R(13), U8(2), |
- B(Jump), U8(30), |
+ B(Jump), U8(29), |
B(Star), R(14), |
B(LdaConstant), U8(5), |
B(Star), R(13), |
- B(Ldar), R(closure), |
- B(Star), R(15), |
+ B(Mov), R(closure), R(15), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3), |
B(Star), R(12), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
B(Ldar), R(12), |
B(PushContext), R(8), |
B(PopContext), R(8), |
- B(Jump), U8(37), |
- B(Ldar), R(5), |
- B(Star), R(12), |
- B(Ldar), R(1), |
- B(Star), R(13), |
+ B(Jump), U8(29), |
+ B(Mov), R(5), R(12), |
+ B(Mov), R(1), R(13), |
B(CallRuntime), U16(Runtime::k_Call), R(12), U8(2), |
B(Star), R(6), |
- B(Star), R(12), |
- B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(12), U8(1), |
+ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(6), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
- B(Jump), U8(11), |
- B(Ldar), R(6), |
- B(Star), R(12), |
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1), |
+ B(Jump), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1), |
B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(11), U8(1), |
B(LdaZero), |
B(TestEqualStrict), R(9), |
@@ -557,12 +457,11 @@ constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
- kInstanceTypeDontCare, |
] |
handlers: [ |
- [10, 174, 180], |
- [13, 127, 129], |
- [272, 285, 287], |
+ [10, 142, 148], |
+ [13, 100, 102], |
+ [222, 233, 235], |
] |
--- |
@@ -572,7 +471,7 @@ snippet: " |
" |
frame size: 15 |
parameter count: 1 |
-bytecode array length: 379 |
+bytecode array length: 317 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
@@ -591,54 +490,37 @@ bytecodes: [ |
B(Star), R(12), |
/* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1), |
/* 77 E> */ B(Star), R(0), |
- /* 74 S> */ B(Ldar), R(0), |
- B(Star), R(14), |
- B(LoadIC), R(14), U8(3), U8(7), |
+ /* 74 S> */ B(LoadIC), R(0), U8(3), U8(7), |
B(Star), R(13), |
- /* 74 E> */ B(Call), R(13), R(14), U8(1), U8(5), |
+ /* 74 E> */ B(Call), R(13), R(0), U8(1), U8(5), |
/* 74 E> */ B(Star), R(1), |
- B(Star), R(12), |
- B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(12), U8(1), |
+ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(1), U8(1), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalse), U8(11), |
- B(Ldar), R(1), |
- B(Star), R(12), |
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1), |
- B(Ldar), R(1), |
- B(Star), R(12), |
- B(LoadIC), R(12), U8(4), U8(9), |
- B(JumpIfToBooleanTrue), U8(42), |
+ B(JumpIfFalse), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(1), U8(1), |
+ B(LoadIC), R(1), U8(4), U8(9), |
+ B(JumpIfToBooleanTrue), U8(28), |
B(LdaSmi), U8(2), |
B(Star), R(2), |
- /* 67 E> */ B(Ldar), R(6), |
- B(Star), R(12), |
- B(Ldar), R(1), |
- B(Star), R(13), |
- B(LoadIC), R(13), U8(5), U8(11), |
- B(StoreICSloppy), R(12), U8(6), U8(13), |
- B(Ldar), R(3), |
+ /* 67 E> */ B(LoadIC), R(1), U8(5), U8(11), |
+ B(StoreICSloppy), R(6), U8(6), U8(13), |
/* 62 E> */ B(StackCheck), |
- /* 88 S> */ B(Ldar), R(6), |
- B(Star), R(12), |
- /* 96 E> */ B(LoadIC), R(12), U8(6), U8(15), |
+ /* 88 S> */ B(LoadIC), R(6), U8(6), U8(15), |
B(Star), R(9), |
B(LdaZero), |
B(Star), R(8), |
- B(Jump), U8(63), |
- B(Jump), U8(-84), |
- B(Jump), U8(47), |
+ B(Jump), U8(58), |
+ B(Jump), U8(-56), |
+ B(Jump), U8(42), |
B(Star), R(13), |
B(LdaConstant), U8(7), |
B(Star), R(12), |
- B(Ldar), R(closure), |
- B(Star), R(14), |
+ B(Mov), R(closure), R(14), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(12), U8(3), |
B(Star), R(11), |
B(PushContext), R(7), |
- B(Ldar), R(2), |
- B(Star), R(12), |
B(LdaSmi), U8(2), |
- B(TestEqualStrict), R(12), |
+ B(TestEqualStrict), R(2), |
B(JumpIfFalse), U8(6), |
B(LdaSmi), U8(1), |
B(Star), R(2), |
@@ -654,31 +536,22 @@ bytecodes: [ |
B(Star), R(8), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
B(Star), R(10), |
- B(Ldar), R(2), |
- B(Star), R(11), |
B(LdaZero), |
- B(TestEqualStrict), R(11), |
- B(JumpIfTrue), U8(9), |
- B(Ldar), R(0), |
- B(Star), R(11), |
+ B(TestEqualStrict), R(2), |
+ B(JumpIfTrue), U8(5), |
B(LdaUndefined), |
- B(TestEqualStrict), R(11), |
+ B(TestEqualStrict), R(0), |
B(ToBooleanLogicalNot), |
- B(JumpIfFalseConstant), U8(11), |
- B(Ldar), R(0), |
- B(Star), R(11), |
- B(LoadIC), R(11), U8(8), U8(17), |
+ B(JumpIfFalse), U8(122), |
+ B(LoadIC), R(0), U8(8), U8(17), |
B(Star), R(4), |
- B(Star), R(11), |
B(LdaNull), |
- B(TestEqual), R(11), |
+ B(TestEqual), R(4), |
B(JumpIfFalse), U8(4), |
- B(Jump), U8(124), |
- B(Ldar), R(2), |
- B(Star), R(11), |
+ B(Jump), U8(109), |
B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(11), |
- B(JumpIfFalse), U8(79), |
+ B(TestEqualStrict), R(2), |
+ B(JumpIfFalse), U8(76), |
B(Ldar), R(4), |
B(TypeOf), |
B(Star), R(11), |
@@ -693,37 +566,29 @@ bytecodes: [ |
B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), |
B(Throw), |
B(Mov), R(context), R(11), |
- B(Ldar), R(4), |
- B(Star), R(12), |
- B(Ldar), R(0), |
- B(Star), R(13), |
+ B(Mov), R(4), R(12), |
+ B(Mov), R(0), R(13), |
B(CallRuntime), U16(Runtime::k_Call), R(12), U8(2), |
- B(Jump), U8(30), |
+ B(Jump), U8(29), |
B(Star), R(13), |
B(LdaConstant), U8(7), |
B(Star), R(12), |
- B(Ldar), R(closure), |
- B(Star), R(14), |
+ B(Mov), R(closure), R(14), |
B(CallRuntime), U16(Runtime::kPushCatchContext), R(12), U8(3), |
B(Star), R(11), |
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
B(Ldar), R(11), |
B(PushContext), R(7), |
B(PopContext), R(7), |
- B(Jump), U8(37), |
- B(Ldar), R(4), |
- B(Star), R(11), |
- B(Ldar), R(0), |
- B(Star), R(12), |
+ B(Jump), U8(29), |
+ B(Mov), R(4), R(11), |
+ B(Mov), R(0), R(12), |
B(CallRuntime), U16(Runtime::k_Call), R(11), U8(2), |
B(Star), R(5), |
- B(Star), R(11), |
- B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(11), U8(1), |
+ B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(5), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
- B(Jump), U8(11), |
- B(Ldar), R(5), |
- B(Star), R(11), |
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1), |
+ B(Jump), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1), |
B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(10), U8(1), |
B(LdaZero), |
B(TestEqualStrict), R(8), |
@@ -751,11 +616,10 @@ constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
- kInstanceTypeDontCare, |
] |
handlers: [ |
- [18, 174, 180], |
- [21, 127, 129], |
- [273, 286, 288], |
+ [18, 141, 147], |
+ [21, 99, 101], |
+ [222, 233, 235], |
] |