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 a535d511391b85279a8fe00811f13ab1e8c05aa3..3f439c04b8ea3089241b3e04666dbd7e0b46326f 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/ForOf.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/ForOf.golden |
@@ -13,10 +13,11 @@ snippet: " |
" |
frame size: 16 |
parameter count: 1 |
-bytecode array length: 343 |
+bytecode array length: 292 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- B(LdrUndefined), R(4), |
+ B(LdaUndefined), |
+ B(Star), R(4), |
B(LdaZero), |
B(Star), R(3), |
B(Mov), R(context), R(11), |
@@ -24,54 +25,44 @@ bytecodes: [ |
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
B(Star), R(14), |
/* 48 E> */ B(LdaConstant), U8(1), |
- B(LdrKeyedProperty), R(14), U8(3), R(13), |
+ B(LdaKeyedProperty), R(14), U8(3), |
+ 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(LdrNamedProperty), R(15), U8(2), U8(7), R(14), |
- /* 45 E> */ B(Call), R(14), R(15), U8(1), U8(5), |
+ /* 45 S> */ B(LdaNamedProperty), R(1), U8(2), U8(7), |
+ B(Star), R(14), |
+ /* 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(LdaNamedProperty), R(13), U8(3), U8(9), |
- B(JumpIfToBooleanTrue), U8(27), |
+ B(JumpIfFalse), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1), |
+ B(LdaNamedProperty), 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(LdrNamedProperty), R(13), U8(4), U8(11), R(0), |
- B(Ldar), R(4), |
+ B(LdaNamedProperty), R(2), U8(4), U8(11), |
+ B(Star), R(0), |
/* 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(-68), |
- B(Jump), U8(46), |
+ 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), |
- B(LdrContextSlot), R(context), U8(4), R(13), |
+ B(LdaContextSlot), R(context), U8(4), |
+ B(Star), R(13), |
B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), |
B(PopContext), R(8), |
B(LdaSmi), U8(-1), |
@@ -82,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(LdrNamedProperty), R(12), U8(6), U8(13), R(5), |
- B(Ldar), R(5), |
- B(Star), R(12), |
+ B(JumpIfFalse), U8(122), |
+ B(LdaNamedProperty), R(1), U8(6), U8(13), |
+ B(Star), R(5), |
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), |
@@ -121,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), |
@@ -172,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: [ |
- [9, 147, 153], |
- [12, 101, 103], |
- [246, 259, 261], |
+ [10, 126, 132], |
+ [13, 84, 86], |
+ [206, 217, 219], |
] |
--- |
@@ -187,69 +160,59 @@ snippet: " |
" |
frame size: 17 |
parameter count: 1 |
-bytecode array length: 359 |
+bytecode array length: 306 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaConstant), U8(0), |
/* 42 E> */ B(Star), R(7), |
- B(LdrUndefined), R(4), |
+ B(LdaUndefined), |
+ B(Star), R(4), |
B(LdaZero), |
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 S> */ B(Nop), |
/* 68 E> */ B(LdaConstant), U8(1), |
- B(LdrKeyedProperty), R(15), U8(3), R(14), |
- /* 68 E> */ B(Call), R(14), R(15), U8(1), U8(1), |
+ B(LdaKeyedProperty), R(7), U8(3), |
+ B(Star), R(14), |
+ /* 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(LdrNamedProperty), R(16), U8(2), U8(7), R(15), |
- /* 65 E> */ B(Call), R(15), R(16), U8(1), U8(5), |
+ /* 65 S> */ B(LdaNamedProperty), R(1), U8(2), U8(7), |
+ B(Star), R(15), |
+ /* 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(LdaNamedProperty), R(14), U8(3), U8(9), |
- B(JumpIfToBooleanTrue), U8(31), |
+ B(JumpIfFalse), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1), |
+ B(LdaNamedProperty), 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(LdrNamedProperty), R(14), U8(4), U8(11), R(0), |
- B(Ldar), R(4), |
+ B(LdaNamedProperty), R(2), U8(4), U8(11), |
+ B(Star), R(0), |
/* 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(62), |
- B(Jump), U8(-72), |
- B(Jump), U8(46), |
+ 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), |
- B(LdrContextSlot), R(context), U8(4), R(14), |
+ B(LdaContextSlot), R(context), U8(4), |
+ B(Star), R(14), |
B(CallRuntime), U16(Runtime::kReThrow), R(14), U8(1), |
B(PopContext), R(9), |
B(LdaSmi), U8(-1), |
@@ -260,31 +223,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(LdrNamedProperty), R(13), U8(6), U8(13), R(5), |
- B(Ldar), R(5), |
- B(Star), R(13), |
+ B(JumpIfFalse), U8(122), |
+ B(LdaNamedProperty), R(1), U8(6), U8(13), |
+ B(Star), R(5), |
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), |
@@ -299,37 +253,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), |
@@ -355,12 +301,11 @@ constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
- kInstanceTypeDontCare, |
] |
handlers: [ |
- [13, 153, 159], |
- [16, 107, 109], |
- [253, 266, 268], |
+ [14, 130, 136], |
+ [17, 88, 90], |
+ [211, 222, 224], |
] |
--- |
@@ -372,10 +317,11 @@ snippet: " |
" |
frame size: 16 |
parameter count: 1 |
-bytecode array length: 365 |
+bytecode array length: 308 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- B(LdrUndefined), R(4), |
+ B(LdaUndefined), |
+ B(Star), R(4), |
B(LdaZero), |
B(Star), R(3), |
B(Mov), R(context), R(11), |
@@ -383,65 +329,52 @@ bytecodes: [ |
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
B(Star), R(14), |
/* 48 E> */ B(LdaConstant), U8(1), |
- B(LdrKeyedProperty), R(14), U8(3), R(13), |
+ B(LdaKeyedProperty), R(14), U8(3), |
+ 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(LdrNamedProperty), R(15), U8(2), U8(7), R(14), |
- /* 45 E> */ B(Call), R(14), R(15), U8(1), U8(5), |
+ /* 45 S> */ B(LdaNamedProperty), R(1), U8(2), U8(7), |
+ B(Star), R(14), |
+ /* 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(LdaNamedProperty), R(13), U8(3), U8(9), |
- B(JumpIfToBooleanTrue), U8(49), |
+ B(JumpIfFalse), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1), |
+ B(LdaNamedProperty), 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(LdrNamedProperty), R(13), U8(4), U8(11), R(0), |
- B(Ldar), R(4), |
+ B(LdaNamedProperty), R(2), U8(4), U8(11), |
+ B(Star), R(0), |
/* 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(-90), |
- B(Jump), U8(46), |
+ 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), |
- B(LdrContextSlot), R(context), U8(4), R(13), |
+ B(LdaContextSlot), R(context), U8(4), |
+ B(Star), R(13), |
B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), |
B(PopContext), R(8), |
B(LdaSmi), U8(-1), |
@@ -452,31 +385,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(LdrNamedProperty), R(12), U8(6), U8(13), R(5), |
- B(Ldar), R(5), |
- B(Star), R(12), |
+ B(JumpIfFalse), U8(122), |
+ B(LdaNamedProperty), R(1), U8(6), U8(13), |
+ B(Star), R(5), |
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), |
@@ -491,37 +415,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), |
@@ -542,12 +458,11 @@ constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
- kInstanceTypeDontCare, |
] |
handlers: [ |
- [9, 169, 175], |
- [12, 123, 125], |
- [268, 281, 283], |
+ [10, 142, 148], |
+ [13, 100, 102], |
+ [222, 233, 235], |
] |
--- |
@@ -557,13 +472,14 @@ snippet: " |
" |
frame size: 15 |
parameter count: 1 |
-bytecode array length: 375 |
+bytecode array length: 318 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
B(Star), R(8), |
/* 42 E> */ B(Star), R(6), |
- B(LdrUndefined), R(3), |
+ B(LdaUndefined), |
+ B(Star), R(3), |
B(LdaZero), |
B(Star), R(2), |
B(Mov), R(context), R(10), |
@@ -571,59 +487,47 @@ bytecodes: [ |
/* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), |
B(Star), R(13), |
/* 77 E> */ B(LdaConstant), U8(2), |
- B(LdrKeyedProperty), R(13), U8(3), R(12), |
+ B(LdaKeyedProperty), R(13), U8(3), |
+ 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(LdrNamedProperty), R(14), U8(3), U8(7), R(13), |
- /* 74 E> */ B(Call), R(13), R(14), U8(1), U8(5), |
+ /* 74 S> */ B(LdaNamedProperty), R(0), U8(3), U8(7), |
+ B(Star), R(13), |
+ /* 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(LdaNamedProperty), R(12), U8(4), U8(9), |
- B(JumpIfToBooleanTrue), U8(41), |
+ B(JumpIfFalse), U8(7), |
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(1), U8(1), |
+ B(LdaNamedProperty), R(1), U8(4), U8(9), |
+ B(JumpIfToBooleanTrue), U8(29), |
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(LdaNamedProperty), R(13), U8(5), U8(11), |
- B(StaNamedPropertySloppy), R(12), U8(6), U8(13), |
- B(Ldar), R(3), |
+ /* 67 E> */ B(LdaNamedProperty), R(1), U8(5), U8(11), |
+ B(StaNamedPropertySloppy), R(6), U8(6), U8(13), |
/* 62 E> */ B(StackCheck), |
- /* 88 S> */ B(Ldar), R(6), |
- B(Star), R(12), |
- /* 96 E> */ B(LdrNamedProperty), R(12), U8(6), U8(15), R(9), |
+ /* 88 S> */ B(Nop), |
+ /* 96 E> */ B(LdaNamedProperty), R(6), U8(6), U8(15), |
+ B(Star), R(9), |
B(LdaZero), |
B(Star), R(8), |
- B(Jump), U8(62), |
- B(Jump), U8(-82), |
- B(Jump), U8(46), |
+ B(Jump), U8(58), |
+ B(Jump), U8(-57), |
+ 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), |
- B(LdrContextSlot), R(context), U8(4), R(12), |
+ B(LdaContextSlot), R(context), U8(4), |
+ B(Star), R(12), |
B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), |
B(PopContext), R(7), |
B(LdaSmi), U8(-1), |
@@ -634,31 +538,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(LdrNamedProperty), R(11), U8(8), U8(17), R(4), |
- B(Ldar), R(4), |
- B(Star), R(11), |
+ B(JumpIfFalse), U8(122), |
+ B(LdaNamedProperty), R(0), U8(8), U8(17), |
+ B(Star), R(4), |
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), |
@@ -673,37 +568,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), |
@@ -731,11 +618,10 @@ constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
- kInstanceTypeDontCare, |
] |
handlers: [ |
- [17, 169, 175], |
- [20, 123, 125], |
- [269, 282, 284], |
+ [18, 142, 148], |
+ [21, 100, 102], |
+ [223, 234, 236], |
] |