Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: test/cctest/interpreter/bytecode_expectations/ForOf.golden

Issue 1997653002: [interpreter] Bytecode register optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Decouple a test from implementation. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..c55a33d7d94ba1be356dc63c91d84722ac5a8c24 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: 343
+bytecode array length: 288
bytecodes: [
/* 30 E> */ B(StackCheck),
B(LdrUndefined), R(4),
@@ -27,47 +27,34 @@ bytecodes: [
B(LdrKeyedProperty), R(14), U8(3), 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(LdrNamedProperty), R(1), U8(2), U8(7), 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(22),
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),
- /* 34 E> */ B(StackCheck),
+ B(LdrNamedProperty), R(2), U8(4), U8(11), R(0),
B(Ldar), R(0),
- B(Star), R(7),
+ /* 34 E> */ B(StackCheck),
+ 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(41),
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),
@@ -82,31 +69,21 @@ 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(121),
+ B(LdrNamedProperty), R(1), U8(6), U8(13), 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 +98,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 +141,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],
+ [9, 123, 129],
+ [12, 82, 84],
+ [202, 213, 215],
]
---
@@ -187,7 +155,7 @@ snippet: "
"
frame size: 17
parameter count: 1
-bytecode array length: 359
+bytecode array length: 302
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaConstant), U8(0),
@@ -197,55 +165,41 @@ 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 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(LdrKeyedProperty), R(7), U8(3), 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(LdrNamedProperty), R(1), U8(2), U8(7), 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(27),
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),
- /* 54 E> */ B(StackCheck),
+ B(LdrNamedProperty), R(2), U8(4), U8(11), R(0),
B(Ldar), R(0),
- B(Star), R(8),
- /* 73 S> */ B(Star), R(11),
- B(LdaZero),
+ /* 54 E> */ B(StackCheck),
+ 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(57),
+ B(Jump), U8(-54),
+ B(Jump), U8(41),
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),
@@ -260,31 +214,21 @@ 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(121),
+ B(LdrNamedProperty), R(1), U8(6), U8(13), 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 +243,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 +291,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],
+ [13, 127, 133],
+ [16, 86, 88],
+ [207, 218, 220],
]
---
@@ -372,7 +307,7 @@ snippet: "
"
frame size: 16
parameter count: 1
-bytecode array length: 365
+bytecode array length: 304
bytecodes: [
/* 30 E> */ B(StackCheck),
B(LdrUndefined), R(4),
@@ -386,58 +321,42 @@ bytecodes: [
B(LdrKeyedProperty), R(14), U8(3), 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(LdrNamedProperty), R(1), U8(2), U8(7), 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(38),
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),
- /* 34 E> */ B(StackCheck),
+ B(LdrNamedProperty), R(2), U8(4), U8(11), R(0),
B(Ldar), R(0),
- B(Star), R(7),
- /* 66 S> */ B(Star), R(13),
- B(LdaSmi), U8(10),
- /* 72 E> */ B(TestEqual), R(13),
+ /* 34 E> */ B(StackCheck),
+ 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(41),
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),
@@ -452,31 +371,21 @@ 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(121),
+ B(LdrNamedProperty), R(1), U8(6), U8(13), 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 +400,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 +443,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],
+ [9, 139, 145],
+ [12, 98, 100],
+ [218, 229, 231],
]
---
@@ -557,7 +457,7 @@ snippet: "
"
frame size: 15
parameter count: 1
-bytecode array length: 375
+bytecode array length: 312
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
@@ -574,52 +474,36 @@ bytecodes: [
B(LdrKeyedProperty), R(13), U8(3), 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(LdrNamedProperty), R(0), U8(3), U8(7), 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(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(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(LdrNamedProperty), R(6), U8(6), U8(15), R(9),
B(LdaZero),
B(Star), R(8),
- B(Jump), U8(62),
- B(Jump), U8(-82),
- B(Jump), U8(46),
+ B(Jump), U8(57),
+ B(Jump), U8(-55),
+ B(Jump), U8(41),
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),
@@ -634,31 +518,21 @@ 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(121),
+ B(LdrNamedProperty), R(0), U8(8), U8(17), 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 +547,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 +597,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],
+ [17, 137, 143],
+ [20, 96, 98],
+ [217, 228, 230],
]

Powered by Google App Engine
This is Rietveld 408576698