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

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

Issue 2898163002: Make non-Module generators only context allocate parameters. (Closed)
Patch Set: Fix comment Created 3 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/ForOfLoop.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden b/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden
index b476d7ecf7c083339b4a21ba672eec59989748ba..aebf3e4689c877800b4ffbc15d3a11d515622e6b 100644
--- a/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden
+++ b/test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden
@@ -642,277 +642,221 @@ snippet: "
}
f([1, 2, 3]);
"
-frame size: 15
+frame size: 24
parameter count: 2
-bytecode array length: 589
+bytecode array length: 435
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(25),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
- B(PushContext), R(5),
+ B(PushContext), R(14),
B(ResumeGenerator), R(new_target),
- B(Star), R(4),
+ B(Star), R(13),
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
B(LdaSmi), I8(79),
- B(Star), R(6),
- B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1),
+ B(Star), R(15),
+ B(CallRuntime), U16(Runtime::kAbort), R(15), U8(1),
B(LdaSmi), I8(-2),
- B(Star), R(4),
- B(CreateFunctionContext), U8(9),
- B(PushContext), R(0),
+ B(Star), R(13),
+ B(CreateFunctionContext), U8(1),
+ B(PushContext), R(11),
B(Ldar), R(arg0),
B(StaCurrentContextSlot), U8(4),
- B(Mov), R(closure), R(6),
- B(Mov), R(this), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6), U8(2),
- B(StaCurrentContextSlot), U8(5),
+ B(Mov), R(closure), R(15),
+ B(Mov), R(this), R(16),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(15), U8(2),
+ B(Star), R(3),
/* 11 E> */ B(StackCheck),
- B(Mov), R(context), R(8),
- B(LdaImmutableCurrentContextSlot), U8(5),
- B(Star), R(9),
- B(LdaImmutableCurrentContextSlot), U8(5),
- B(Star), R(10),
+ B(Mov), R(context), R(17),
B(LdaZero),
- /* 11 E> */ B(SuspendGenerator), R(9), U8(0),
- B(Ldar), R(10),
+ B(Mov), R(3), R(19),
+ B(Mov), R(3), R(18),
+ /* 11 E> */ B(SuspendGenerator), R(18), U8(0),
+ B(Ldar), R(19),
/* 55 S> */ B(Return),
B(LdaSmi), I8(-2),
- B(Star), R(4),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(9), U8(1),
- B(Star), R(10),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(9), U8(1),
- B(Star), R(11),
+ B(Star), R(13),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(18), U8(1),
+ B(Star), R(19),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(18), U8(1),
+ B(Star), R(20),
B(LdaZero),
- B(TestEqualStrictNoFeedback), R(11),
+ B(TestEqualStrictNoFeedback), R(20),
B(JumpIfTrue), U8(28),
B(LdaSmi), I8(2),
- B(TestEqualStrictNoFeedback), R(11),
+ B(TestEqualStrictNoFeedback), R(20),
B(JumpIfTrue), U8(19),
B(LdaTrue),
- B(Star), R(13),
- B(Mov), R(10), R(12),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(12), U8(2),
- B(Star), R(7),
+ B(Star), R(22),
+ B(Mov), R(19), R(21),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(21), U8(2),
+ B(Star), R(16),
B(LdaZero),
- B(Star), R(6),
- B(JumpConstant), U8(13),
- B(Ldar), R(10),
+ B(Star), R(15),
+ B(JumpConstant), U8(10),
+ B(Ldar), R(19),
/* 11 E> */ B(Throw),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(1),
- B(PushContext), R(1),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
B(LdaZero),
- B(StaContextSlot), R(1), U8(9), U8(0),
- B(Mov), R(context), R(11),
- B(Mov), R(context), R(12),
- /* 35 S> */ B(LdaImmutableContextSlot), R(1), U8(4), U8(0),
- B(Star), R(13),
- B(LdaNamedProperty), R(13), U8(2), U8(3),
- B(Star), R(14),
- B(CallProperty0), R(14), R(13), U8(5),
+ B(Star), R(7),
+ B(Mov), R(context), R(20),
+ B(Mov), R(context), R(21),
+ /* 35 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
+ B(Star), R(22),
+ B(LdaNamedProperty), R(22), U8(1), U8(3),
+ B(Star), R(23),
+ B(CallProperty0), R(23), R(22), U8(5),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
- /* 35 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
- /* 32 S> */ B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(14),
- B(LdaNamedProperty), R(14), U8(3), U8(9),
- B(Star), R(13),
- /* 32 E> */ B(CallProperty0), R(13), R(14), U8(7),
- /* 32 E> */ B(StaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(13),
- B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(13), U8(1),
+ B(Star), R(5),
+ /* 32 S> */ B(LdaNamedProperty), R(5), U8(2), U8(9),
+ B(Star), R(22),
+ /* 32 E> */ B(CallProperty0), R(22), R(5), U8(7),
+ B(Star), R(6),
+ /* 32 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1),
B(ToBooleanLogicalNot),
- B(JumpIfFalse), U8(13),
- B(LdaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(13),
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
- B(LdaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(13),
- B(LdaNamedProperty), R(13), U8(4), U8(11),
- B(JumpIfToBooleanTrue), U8(73),
- B(LdaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(13),
- B(LdaNamedProperty), R(13), U8(5), U8(13),
- B(StaContextSlot), R(1), U8(10), U8(0),
+ B(JumpIfFalse), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
+ B(LdaNamedProperty), R(6), U8(3), U8(11),
+ B(JumpIfToBooleanTrue), U8(28),
+ B(LdaNamedProperty), R(6), U8(4), U8(13),
+ B(Star), R(8),
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),
+ B(Star), R(7),
+ B(Mov), R(8), R(4),
/* 21 E> */ B(StackCheck),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(6),
- B(PushContext), R(2),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
- B(LdaContextSlot), R(1), U8(6), U8(0),
- B(StaCurrentContextSlot), U8(4),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(7),
- B(PushContext), R(3),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
- /* 50 S> */ B(LdaImmutableContextSlot), R(3), U8(4), U8(0),
- /* 50 E> */ B(StaCurrentContextSlot), U8(4),
- B(PopContext), R(3),
- B(PopContext), R(2),
+ B(Mov), R(4), R(1),
+ /* 50 S> */ B(Mov), R(1), R(0),
B(LdaZero),
- B(StaContextSlot), R(1), U8(9), U8(0),
- B(JumpLoop), U8(120), I8(0),
- B(Jump), U8(44),
- B(Star), R(13),
+ B(Star), R(7),
+ B(JumpLoop), U8(53), I8(0),
+ B(Jump), U8(36),
+ B(Star), R(22),
B(Ldar), R(closure),
- B(CreateCatchContext), R(13), U8(8), U8(9),
- B(PushContext), R(2),
- B(Star), R(12),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(13),
+ /* 50 E> */ B(CreateCatchContext), R(22), U8(5), U8(6),
+ B(PushContext), R(12),
+ B(Star), R(21),
B(LdaSmi), I8(2),
- B(TestEqualStrict), R(13), U8(15),
- B(JumpIfFalse), U8(8),
+ B(TestEqualStrict), R(7), U8(15),
+ B(JumpIfFalse), U8(6),
B(LdaSmi), I8(1),
- B(StaContextSlot), R(1), U8(9), U8(0),
+ B(Star), R(7),
B(LdaImmutableCurrentContextSlot), U8(4),
- B(Star), R(13),
- B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
- B(PopContext), R(2),
+ B(Star), R(22),
+ B(CallRuntime), U16(Runtime::kReThrow), R(22), U8(1),
+ B(PopContext), R(12),
B(LdaSmi), I8(-1),
- B(Star), R(9),
+ B(Star), R(18),
B(Jump), U8(7),
- B(Star), R(10),
+ B(Star), R(19),
B(LdaZero),
- B(Star), R(9),
+ B(Star), R(18),
B(LdaTheHole),
B(SetPendingMessage),
- B(Star), R(11),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(12),
+ B(Star), R(20),
B(LdaZero),
- B(TestEqualStrict), R(12), U8(16),
- B(JumpIfTrue), U8(150),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(12),
- B(LdaNamedProperty), R(12), U8(10), U8(17),
- B(StaContextSlot), R(1), U8(11), U8(0),
- B(LdaContextSlot), R(1), U8(11), U8(0),
+ B(TestEqualStrict), R(7), U8(16),
+ B(JumpIfTrue), U8(104),
+ B(LdaNamedProperty), R(5), U8(7), U8(17),
+ B(Star), R(9),
B(TestUndetectable),
B(JumpIfFalse), U8(4),
- B(Jump), U8(127),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(12),
+ B(Jump), U8(93),
B(LdaSmi), I8(1),
- B(TestEqualStrict), R(12), U8(20),
- B(JumpIfFalse), U8(69),
- B(LdaContextSlot), R(1), U8(11), U8(0),
+ B(TestEqualStrict), R(7), U8(20),
+ B(JumpIfFalse), U8(61),
+ B(Ldar), R(9),
B(TestTypeOf), U8(5),
B(JumpIfFalse), U8(4),
B(Jump), U8(18),
B(Wide), B(LdaSmi), I16(130),
- B(Star), R(12),
- B(LdaConstant), U8(11),
- B(Star), R(13),
- B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
+ B(Star), R(21),
+ B(LdaConstant), U8(8),
+ B(Star), R(22),
+ B(CallRuntime), U16(Runtime::kNewTypeError), R(21), U8(2),
B(Throw),
- B(Mov), R(context), R(12),
- B(LdaContextSlot), R(1), U8(11), U8(0),
- B(Star), R(13),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(14),
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
+ B(Mov), R(context), R(21),
+ B(Mov), R(9), R(22),
+ B(Mov), R(5), R(23),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(22), U8(2),
B(Jump), U8(20),
- B(Star), R(13),
+ B(Star), R(22),
B(Ldar), R(closure),
- B(CreateCatchContext), R(13), U8(8), U8(12),
- B(Star), R(12),
+ B(CreateCatchContext), R(22), U8(5), U8(9),
+ B(Star), R(21),
B(LdaTheHole),
B(SetPendingMessage),
- B(Ldar), R(12),
- B(PushContext), R(2),
- B(PopContext), R(2),
- B(Jump), U8(47),
- B(LdaContextSlot), R(1), U8(11), U8(0),
- B(Star), R(12),
- 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(12),
- B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1),
+ B(Ldar), R(21),
+ B(PushContext), R(12),
+ B(PopContext), R(12),
+ B(Jump), U8(27),
+ B(Mov), R(9), R(21),
+ B(Mov), R(5), R(22),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(21), U8(2),
+ B(Star), R(10),
+ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(10), U8(1),
B(JumpIfToBooleanFalse), U8(4),
- B(Jump), U8(13),
- B(LdaContextSlot), R(1), U8(12), U8(0),
- B(Star), R(12),
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
- B(Ldar), R(11),
+ B(Jump), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
+ B(Ldar), R(20),
B(SetPendingMessage),
B(LdaZero),
- B(TestEqualStrictNoFeedback), R(9),
- B(JumpIfFalse), U8(15),
- B(PopContext), R(1),
- B(PopContext), R(1),
+ B(TestEqualStrictNoFeedback), R(18),
+ B(JumpIfFalse), U8(11),
B(LdaSmi), I8(1),
- B(Star), R(6),
- B(Mov), R(10), R(7),
- B(Jump), U8(33),
- B(PopContext), R(1),
+ B(Star), R(15),
+ B(Mov), R(19), R(16),
+ B(Jump), U8(31),
B(LdaUndefined),
- B(Star), R(9),
+ B(Star), R(18),
B(LdaTrue),
- B(Star), R(10),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(9), U8(2),
- B(Star), R(7),
+ B(Star), R(19),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(18), U8(2),
+ B(Star), R(16),
B(LdaZero),
- B(Star), R(6),
+ B(Star), R(15),
B(Jump), U8(14),
B(LdaSmi), I8(-1),
- B(Star), R(6),
+ B(Star), R(15),
B(Jump), U8(8),
- B(Star), R(7),
+ B(Star), R(16),
B(LdaSmi), I8(1),
- B(Star), R(6),
+ B(Star), R(15),
B(LdaTheHole),
B(SetPendingMessage),
- B(Star), R(8),
- B(LdaImmutableCurrentContextSlot), U8(5),
- B(Star), R(9),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(9), U8(1),
- B(Ldar), R(8),
+ B(Star), R(17),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(3), U8(1),
+ B(Ldar), R(17),
B(SetPendingMessage),
- B(Ldar), R(6),
- B(SwitchOnSmiNoFeedback), U8(14), U8(2), I8(0),
+ B(Ldar), R(15),
+ B(SwitchOnSmiNoFeedback), U8(11), U8(2), I8(0),
B(Jump), U8(8),
- B(Ldar), R(7),
+ B(Ldar), R(16),
/* 55 S> */ B(Return),
- B(Ldar), R(7),
+ B(Ldar), R(16),
B(ReThrow),
B(LdaUndefined),
/* 55 S> */ B(Return),
]
constant pool: [
- Smi [56],
- FIXED_ARRAY_TYPE,
+ Smi [54],
SYMBOL_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
- FIXED_ARRAY_TYPE,
- FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
FIXED_ARRAY_TYPE,
- Smi [446],
+ Smi [298],
Smi [6],
Smi [9],
]
handlers: [
- [55, 546, 552],
- [134, 331, 337],
- [137, 287, 289],
- [423, 439, 441],
+ [55, 396, 402],
+ [121, 239, 245],
+ [124, 203, 205],
+ [305, 315, 317],
]
---
@@ -922,326 +866,268 @@ snippet: "
}
f([1, 2, 3]);
"
-frame size: 17
+frame size: 26
parameter count: 2
-bytecode array length: 695
+bytecode array length: 535
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(25),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
- B(PushContext), R(4),
+ B(PushContext), R(13),
B(ResumeGenerator), R(new_target),
- B(Star), R(3),
+ B(Star), R(12),
B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0),
B(LdaSmi), I8(79),
- B(Star), R(5),
- B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
+ B(Star), R(14),
+ B(CallRuntime), U16(Runtime::kAbort), R(14), U8(1),
B(LdaSmi), I8(-2),
- B(Star), R(3),
- B(CreateFunctionContext), U8(9),
- B(PushContext), R(0),
+ B(Star), R(12),
+ B(CreateFunctionContext), U8(1),
+ B(PushContext), R(10),
B(Ldar), R(arg0),
B(StaCurrentContextSlot), U8(4),
- B(Mov), R(closure), R(5),
- B(Mov), R(this), R(6),
- B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5), U8(2),
- B(StaCurrentContextSlot), U8(5),
+ B(Mov), R(closure), R(14),
+ B(Mov), R(this), R(15),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(14), U8(2),
+ B(Star), R(2),
/* 11 E> */ B(StackCheck),
- B(Mov), R(context), R(7),
- B(LdaImmutableCurrentContextSlot), U8(5),
- B(Star), R(8),
- B(LdaImmutableCurrentContextSlot), U8(5),
- B(Star), R(9),
+ B(Mov), R(context), R(16),
B(LdaZero),
- /* 11 E> */ B(SuspendGenerator), R(8), U8(0),
- B(Ldar), R(9),
+ B(Mov), R(2), R(18),
+ B(Mov), R(2), R(17),
+ /* 11 E> */ B(SuspendGenerator), R(17), U8(0),
+ B(Ldar), R(18),
/* 49 S> */ B(Return),
B(LdaSmi), I8(-2),
- B(Star), R(3),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(8), U8(1),
- B(Star), R(9),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(8), U8(1),
- B(Star), R(10),
+ B(Star), R(12),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(17), U8(1),
+ B(Star), R(18),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(17), U8(1),
+ B(Star), R(19),
B(LdaZero),
- B(TestEqualStrictNoFeedback), R(10),
+ B(TestEqualStrictNoFeedback), R(19),
B(JumpIfTrue), U8(28),
B(LdaSmi), I8(2),
- B(TestEqualStrictNoFeedback), R(10),
+ B(TestEqualStrictNoFeedback), R(19),
B(JumpIfTrue), U8(19),
B(LdaTrue),
- B(Star), R(12),
- B(Mov), R(9), R(11),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(11), U8(2),
- B(Star), R(6),
+ B(Star), R(21),
+ B(Mov), R(18), R(20),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(20), U8(2),
+ B(Star), R(15),
B(LdaZero),
- B(Star), R(5),
- B(JumpConstant), U8(16),
- B(Ldar), R(9),
+ B(Star), R(14),
+ B(JumpConstant), U8(14),
+ B(Ldar), R(18),
/* 11 E> */ B(Throw),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(2),
- B(PushContext), R(1),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
B(LdaZero),
- B(StaContextSlot), R(1), U8(9), U8(0),
- B(Mov), R(context), R(10),
- B(Mov), R(context), R(11),
- /* 35 S> */ B(LdaImmutableContextSlot), R(1), U8(4), U8(0),
- B(Star), R(12),
- B(LdaNamedProperty), R(12), U8(3), U8(3),
- B(Star), R(13),
- B(CallProperty0), R(13), R(12), U8(5),
+ B(Star), R(6),
+ B(Mov), R(context), R(19),
+ B(Mov), R(context), R(20),
+ /* 35 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
+ B(Star), R(21),
+ B(LdaNamedProperty), R(21), U8(2), U8(3),
+ B(Star), R(22),
+ B(CallProperty0), R(22), R(21), U8(5),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
- /* 35 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
- B(Ldar), R(3),
- B(SwitchOnSmiNoFeedback), U8(4), U8(1), I8(1),
+ B(Star), R(4),
+ B(Ldar), R(12),
+ B(SwitchOnSmiNoFeedback), U8(3), U8(1), I8(1),
B(LdaSmi), I8(-2),
- B(TestEqualStrictNoFeedback), R(3),
+ /* 35 E> */ B(TestEqualStrictNoFeedback), R(12),
B(JumpIfTrue), U8(11),
B(LdaSmi), I8(79),
- B(Star), R(12),
- B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1),
- /* 32 S> */ B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(13),
- B(LdaNamedProperty), R(13), U8(5), U8(9),
- B(Star), R(12),
- /* 32 E> */ B(CallProperty0), R(12), R(13), U8(7),
- /* 32 E> */ B(StaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(12),
- B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1),
+ B(Star), R(21),
+ B(CallRuntime), U16(Runtime::kAbort), R(21), U8(1),
+ /* 32 S> */ B(LdaNamedProperty), R(4), U8(4), U8(9),
+ B(Star), R(21),
+ /* 32 E> */ B(CallProperty0), R(21), R(4), U8(7),
+ B(Star), R(5),
+ /* 32 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(5), U8(1),
B(ToBooleanLogicalNot),
- B(JumpIfFalse), U8(13),
- B(LdaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(12),
- 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(6), U8(11),
- B(JumpIfToBooleanTrue), U8(142),
- B(LdaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(12),
- B(LdaNamedProperty), R(12), U8(7), U8(13),
- B(StaContextSlot), R(1), U8(10), U8(0),
+ B(JumpIfFalse), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1),
+ B(LdaNamedProperty), R(5), U8(5), U8(11),
+ B(JumpIfToBooleanTrue), U8(95),
+ B(LdaNamedProperty), R(5), U8(6), U8(13),
+ B(Star), R(7),
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),
+ B(Star), R(6),
+ B(Mov), R(7), R(3),
/* 21 E> */ B(StackCheck),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(8),
- B(PushContext), R(2),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
- B(LdaContextSlot), R(1), U8(6), U8(0),
- B(StaCurrentContextSlot), U8(4),
- /* 40 S> */ B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
- B(Star), R(12),
- B(LdaImmutableCurrentContextSlot), U8(4),
- B(Star), R(13),
- B(LdaFalse),
- B(Star), R(14),
- /* 46 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13), U8(2),
- B(Star), R(13),
+ B(Mov), R(3), R(0),
+ /* 40 S> */ B(LdaFalse),
+ B(Star), R(23),
+ B(Mov), R(3), R(22),
+ /* 46 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(22), U8(2),
+ B(Star), R(22),
B(LdaSmi), I8(1),
- B(SuspendGenerator), R(12), U8(0),
- B(Ldar), R(13),
+ B(Mov), R(2), R(21),
+ B(SuspendGenerator), R(21), U8(0),
+ B(Ldar), R(22),
/* 49 S> */ B(Return),
B(LdaSmi), I8(-2),
- B(Star), R(3),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
- B(Star), R(13),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
- B(Star), R(14),
+ B(Star), R(12),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(21), U8(1),
+ B(Star), R(22),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(21), U8(1),
+ B(Star), R(23),
B(LdaZero),
- B(TestEqualStrictNoFeedback), R(14),
- B(JumpIfTrue), U8(40),
+ B(TestEqualStrictNoFeedback), R(23),
+ B(JumpIfTrue), U8(28),
B(LdaSmi), I8(2),
- B(TestEqualStrictNoFeedback), R(14),
- B(JumpIfTrue), U8(31),
+ B(TestEqualStrictNoFeedback), R(23),
+ B(JumpIfTrue), U8(19),
B(LdaTrue),
- B(Star), R(16),
- B(Mov), R(13), R(15),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(15), U8(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(Star), R(9),
+ B(Star), R(25),
+ B(Mov), R(22), R(24),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(24), U8(2),
+ B(Star), R(18),
B(LdaZero),
- B(Star), R(8),
- B(Jump), U8(71),
- B(Ldar), R(13),
+ B(Star), R(17),
+ B(Jump), U8(59),
+ B(Ldar), R(22),
/* 40 E> */ B(Throw),
- B(PopContext), R(2),
B(LdaZero),
- B(StaContextSlot), R(1), U8(9), U8(0),
- B(JumpLoop), U8(210), I8(0),
- B(Jump), U8(44),
- B(Star), R(12),
+ B(Star), R(6),
+ B(JumpLoop), U8(141), I8(0),
+ B(Jump), U8(36),
+ B(Star), R(21),
B(Ldar), R(closure),
- B(CreateCatchContext), R(12), U8(9), U8(10),
- B(PushContext), R(2),
- B(Star), R(11),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(12),
+ B(CreateCatchContext), R(21), U8(7), U8(8),
+ B(PushContext), R(11),
+ B(Star), R(20),
B(LdaSmi), I8(2),
- B(TestEqualStrict), R(12), U8(15),
- B(JumpIfFalse), U8(8),
+ B(TestEqualStrict), R(6), U8(15),
+ B(JumpIfFalse), U8(6),
B(LdaSmi), I8(1),
- B(StaContextSlot), R(1), U8(9), U8(0),
+ B(Star), R(6),
B(LdaImmutableCurrentContextSlot), U8(4),
- B(Star), R(12),
- B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
- B(PopContext), R(2),
+ B(Star), R(21),
+ B(CallRuntime), U16(Runtime::kReThrow), R(21), U8(1),
+ B(PopContext), R(11),
B(LdaSmi), I8(-1),
- B(Star), R(8),
+ B(Star), R(17),
B(Jump), U8(8),
- B(Star), R(9),
+ B(Star), R(18),
B(LdaSmi), I8(1),
- B(Star), R(8),
+ B(Star), R(17),
B(LdaTheHole),
B(SetPendingMessage),
- B(Star), R(10),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(11),
+ B(Star), R(19),
B(LdaZero),
- B(TestEqualStrict), R(11), U8(16),
- B(JumpIfTrue), U8(150),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(11),
- B(LdaNamedProperty), R(11), U8(11), U8(17),
- B(StaContextSlot), R(1), U8(11), U8(0),
- B(LdaContextSlot), R(1), U8(11), U8(0),
+ B(TestEqualStrict), R(6), U8(16),
+ B(JumpIfTrue), U8(104),
+ B(LdaNamedProperty), R(4), U8(9), U8(17),
+ B(Star), R(8),
B(TestUndetectable),
B(JumpIfFalse), U8(4),
- B(Jump), U8(127),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(11),
+ B(Jump), U8(93),
B(LdaSmi), I8(1),
- B(TestEqualStrict), R(11), U8(20),
- B(JumpIfFalse), U8(69),
- B(LdaContextSlot), R(1), U8(11), U8(0),
+ B(TestEqualStrict), R(6), U8(20),
+ B(JumpIfFalse), U8(61),
+ B(Ldar), R(8),
B(TestTypeOf), U8(5),
B(JumpIfFalse), U8(4),
B(Jump), U8(18),
B(Wide), B(LdaSmi), I16(130),
- B(Star), R(11),
- B(LdaConstant), U8(12),
- B(Star), R(12),
- B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
+ B(Star), R(20),
+ B(LdaConstant), U8(10),
+ B(Star), R(21),
+ B(CallRuntime), U16(Runtime::kNewTypeError), R(20), U8(2),
B(Throw),
- B(Mov), R(context), R(11),
- B(LdaContextSlot), R(1), U8(11), U8(0),
- B(Star), R(12),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(13),
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
+ B(Mov), R(context), R(20),
+ B(Mov), R(8), R(21),
+ B(Mov), R(4), R(22),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(21), U8(2),
B(Jump), U8(20),
- B(Star), R(12),
+ B(Star), R(21),
B(Ldar), R(closure),
- B(CreateCatchContext), R(12), U8(9), U8(13),
- B(Star), R(11),
+ B(CreateCatchContext), R(21), U8(7), U8(11),
+ B(Star), R(20),
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(Star), R(11),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(12),
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
- B(StaContextSlot), R(1), U8(12), U8(0),
- B(LdaContextSlot), R(1), U8(12), U8(0),
- B(Star), R(11),
- B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1),
+ B(Ldar), R(20),
+ B(PushContext), R(11),
+ B(PopContext), R(11),
+ B(Jump), U8(27),
+ B(Mov), R(8), R(20),
+ B(Mov), R(4), R(21),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(20), U8(2),
+ B(Star), R(9),
+ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(9), U8(1),
B(JumpIfToBooleanFalse), U8(4),
- B(Jump), U8(13),
- B(LdaContextSlot), R(1), U8(12), U8(0),
- B(Star), R(11),
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
- B(Ldar), R(10),
+ B(Jump), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(9), U8(1),
+ B(Ldar), R(19),
B(SetPendingMessage),
- B(Ldar), R(8),
- B(SwitchOnSmiNoFeedback), U8(14), U8(2), I8(0),
- B(Jump), U8(27),
- B(PopContext), R(1),
- B(PopContext), R(1),
+ B(Ldar), R(17),
+ B(SwitchOnSmiNoFeedback), U8(12), U8(2), I8(0),
+ B(Jump), U8(19),
B(LdaZero),
- B(Star), R(5),
- B(Mov), R(9), R(6),
- B(Jump), U8(46),
- B(PopContext), R(1),
- B(PopContext), R(1),
+ B(Star), R(14),
+ B(Mov), R(18), R(15),
+ B(Jump), U8(40),
B(LdaSmi), I8(1),
- B(Star), R(5),
- B(Mov), R(9), R(6),
- B(Jump), U8(33),
- B(PopContext), R(1),
+ B(Star), R(14),
+ B(Mov), R(18), R(15),
+ B(Jump), U8(31),
B(LdaUndefined),
- B(Star), R(8),
+ B(Star), R(17),
B(LdaTrue),
- B(Star), R(9),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8), U8(2),
- B(Star), R(6),
+ B(Star), R(18),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(17), U8(2),
+ B(Star), R(15),
B(LdaZero),
- B(Star), R(5),
+ B(Star), R(14),
B(Jump), U8(14),
B(LdaSmi), I8(-1),
- B(Star), R(5),
+ B(Star), R(14),
B(Jump), U8(8),
- B(Star), R(6),
+ B(Star), R(15),
B(LdaSmi), I8(1),
- B(Star), R(5),
+ B(Star), R(14),
B(LdaTheHole),
B(SetPendingMessage),
- B(Star), R(7),
- B(LdaImmutableCurrentContextSlot), U8(5),
- B(Star), R(8),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(8), U8(1),
- B(Ldar), R(7),
+ B(Star), R(16),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(2), U8(1),
+ B(Ldar), R(16),
B(SetPendingMessage),
- B(Ldar), R(5),
- B(SwitchOnSmiNoFeedback), U8(17), U8(2), I8(0),
+ B(Ldar), R(14),
+ B(SwitchOnSmiNoFeedback), U8(15), U8(2), I8(0),
B(Jump), U8(8),
- B(Ldar), R(6),
+ B(Ldar), R(15),
/* 49 S> */ B(Return),
- B(Ldar), R(6),
+ B(Ldar), R(15),
B(ReThrow),
B(LdaUndefined),
/* 49 S> */ B(Return),
]
constant pool: [
- Smi [56],
- Smi [150],
- FIXED_ARRAY_TYPE,
+ Smi [54],
+ Smi [133],
SYMBOL_TYPE,
- Smi [142],
+ Smi [89],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
- FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
FIXED_ARRAY_TYPE,
Smi [6],
- Smi [18],
- Smi [552],
+ Smi [14],
+ Smi [398],
Smi [6],
Smi [9],
]
handlers: [
- [55, 652, 658],
- [134, 421, 427],
- [137, 377, 379],
- [514, 530, 532],
+ [55, 496, 502],
+ [121, 327, 333],
+ [124, 291, 293],
+ [394, 404, 406],
]
---
@@ -1251,252 +1137,195 @@ snippet: "
}
f([1, 2, 3]);
"
-frame size: 14
+frame size: 24
parameter count: 2
-bytecode array length: 556
+bytecode array length: 399
bytecodes: [
- B(CreateFunctionContext), U8(10),
- B(PushContext), R(0),
+ B(CreateFunctionContext), U8(1),
+ B(PushContext), R(12),
B(Ldar), R(arg0),
B(StaCurrentContextSlot), U8(4),
/* 16 E> */ B(StackCheck),
B(LdaUndefined),
- B(Star), R(4),
- B(CallJSRuntime), U8(%async_function_promise_create), R(4), U8(1),
- B(StaCurrentContextSlot), U8(13),
- B(Mov), R(context), R(6),
- B(Mov), R(context), R(7),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(0),
- B(PushContext), R(1),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
+ B(Star), R(14),
+ B(CallJSRuntime), U8(%async_function_promise_create), R(14), U8(1),
+ B(Star), R(11),
+ B(Mov), R(context), R(16),
+ B(Mov), R(context), R(17),
B(LdaZero),
- B(StaContextSlot), R(1), U8(9), U8(0),
- B(Mov), R(context), R(10),
- B(Mov), R(context), R(11),
- /* 40 S> */ B(LdaImmutableContextSlot), R(1), U8(4), U8(0),
- B(Star), R(12),
- B(LdaNamedProperty), R(12), U8(1), U8(3),
- B(Star), R(13),
- B(CallProperty0), R(13), R(12), U8(5),
+ B(Star), R(7),
+ B(Mov), R(context), R(20),
+ B(Mov), R(context), R(21),
+ /* 40 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
+ B(Star), R(22),
+ B(LdaNamedProperty), R(22), U8(0), U8(3),
+ B(Star), R(23),
+ B(CallProperty0), R(23), R(22), U8(5),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
- /* 40 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
- /* 37 S> */ B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(13),
- B(LdaNamedProperty), R(13), U8(2), U8(9),
- B(Star), R(12),
- /* 37 E> */ B(CallProperty0), R(12), R(13), U8(7),
- /* 37 E> */ B(StaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(12),
- B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1),
+ B(Star), R(5),
+ /* 37 S> */ B(LdaNamedProperty), R(5), U8(1), U8(9),
+ B(Star), R(22),
+ /* 37 E> */ B(CallProperty0), R(22), R(5), U8(7),
+ B(Star), R(6),
+ /* 37 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1),
B(ToBooleanLogicalNot),
- B(JumpIfFalse), U8(13),
- B(LdaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(12),
- 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(3), U8(11),
- B(JumpIfToBooleanTrue), U8(73),
- B(LdaContextSlot), R(1), U8(8), U8(0),
- B(Star), R(12),
- B(LdaNamedProperty), R(12), U8(4), U8(13),
- B(StaContextSlot), R(1), U8(10), U8(0),
+ B(JumpIfFalse), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
+ B(LdaNamedProperty), R(6), U8(2), U8(11),
+ B(JumpIfToBooleanTrue), U8(28),
+ B(LdaNamedProperty), R(6), U8(3), U8(13),
+ B(Star), R(8),
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),
+ B(Star), R(7),
+ B(Mov), R(8), R(4),
/* 26 E> */ B(StackCheck),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(5),
- B(PushContext), R(2),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
- B(LdaContextSlot), R(1), U8(6), U8(0),
- B(StaCurrentContextSlot), U8(4),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(6),
- B(PushContext), R(3),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
- /* 55 S> */ B(LdaImmutableContextSlot), R(3), U8(4), U8(0),
- /* 55 E> */ B(StaCurrentContextSlot), U8(4),
- B(PopContext), R(3),
- B(PopContext), R(2),
+ B(Mov), R(4), R(1),
+ /* 55 S> */ B(Mov), R(1), R(0),
B(LdaZero),
- B(StaContextSlot), R(1), U8(9), U8(0),
- B(JumpLoop), U8(120), I8(0),
- B(Jump), U8(48),
- B(Star), R(12),
+ B(Star), R(7),
+ B(JumpLoop), U8(53), I8(0),
+ B(Jump), U8(40),
+ B(Star), R(22),
B(Ldar), R(closure),
- B(CreateCatchContext), R(12), U8(7), U8(8),
- B(Star), R(11),
+ /* 55 E> */ B(CreateCatchContext), R(22), U8(4), U8(5),
+ B(Star), R(21),
B(LdaTheHole),
B(SetPendingMessage),
- B(Ldar), R(11),
- B(PushContext), R(2),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(12),
+ B(Ldar), R(21),
+ B(PushContext), R(13),
B(LdaSmi), I8(2),
- B(TestEqualStrict), R(12), U8(15),
- B(JumpIfFalse), U8(8),
+ B(TestEqualStrict), R(7), U8(15),
+ B(JumpIfFalse), U8(6),
B(LdaSmi), I8(1),
- B(StaContextSlot), R(1), U8(9), U8(0),
+ B(Star), R(7),
B(LdaImmutableCurrentContextSlot), U8(4),
- B(Star), R(12),
- B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
- B(PopContext), R(2),
+ B(Star), R(22),
+ B(CallRuntime), U16(Runtime::kReThrow), R(22), U8(1),
+ B(PopContext), R(13),
B(LdaSmi), I8(-1),
- B(Star), R(8),
+ B(Star), R(18),
B(Jump), U8(7),
- B(Star), R(9),
+ B(Star), R(19),
B(LdaZero),
- B(Star), R(8),
+ B(Star), R(18),
B(LdaTheHole),
B(SetPendingMessage),
- B(Star), R(10),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(11),
+ B(Star), R(20),
B(LdaZero),
- B(TestEqualStrict), R(11), U8(16),
- B(JumpIfTrue), U8(150),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(11),
- B(LdaNamedProperty), R(11), U8(9), U8(17),
- B(StaContextSlot), R(1), U8(11), U8(0),
- B(LdaContextSlot), R(1), U8(11), U8(0),
+ B(TestEqualStrict), R(7), U8(16),
+ B(JumpIfTrue), U8(104),
+ B(LdaNamedProperty), R(5), U8(6), U8(17),
+ B(Star), R(9),
B(TestUndetectable),
B(JumpIfFalse), U8(4),
- B(Jump), U8(127),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(11),
+ B(Jump), U8(93),
B(LdaSmi), I8(1),
- B(TestEqualStrict), R(11), U8(20),
- B(JumpIfFalse), U8(69),
- B(LdaContextSlot), R(1), U8(11), U8(0),
+ B(TestEqualStrict), R(7), U8(20),
+ B(JumpIfFalse), U8(61),
+ B(Ldar), R(9),
B(TestTypeOf), U8(5),
B(JumpIfFalse), U8(4),
B(Jump), U8(18),
B(Wide), B(LdaSmi), I16(130),
- B(Star), R(11),
- B(LdaConstant), U8(10),
- B(Star), R(12),
- B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
+ B(Star), R(21),
+ B(LdaConstant), U8(7),
+ B(Star), R(22),
+ B(CallRuntime), U16(Runtime::kNewTypeError), R(21), U8(2),
B(Throw),
- B(Mov), R(context), R(11),
- B(LdaContextSlot), R(1), U8(11), U8(0),
- B(Star), R(12),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(13),
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
+ B(Mov), R(context), R(21),
+ B(Mov), R(9), R(22),
+ B(Mov), R(5), R(23),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(22), U8(2),
B(Jump), U8(20),
- B(Star), R(12),
+ B(Star), R(22),
B(Ldar), R(closure),
- B(CreateCatchContext), R(12), U8(7), U8(11),
- B(Star), R(11),
+ B(CreateCatchContext), R(22), U8(4), U8(8),
+ B(Star), R(21),
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(Star), R(11),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(12),
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
- B(StaContextSlot), R(1), U8(12), U8(0),
- B(LdaContextSlot), R(1), U8(12), U8(0),
- B(Star), R(11),
- B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1),
+ B(Ldar), R(21),
+ B(PushContext), R(13),
+ B(PopContext), R(13),
+ B(Jump), U8(27),
+ B(Mov), R(9), R(21),
+ B(Mov), R(5), R(22),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(21), U8(2),
+ B(Star), R(10),
+ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(10), U8(1),
B(JumpIfToBooleanFalse), U8(4),
- B(Jump), U8(13),
- B(LdaContextSlot), R(1), U8(12), U8(0),
- B(Star), R(11),
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
- B(Ldar), R(10),
+ B(Jump), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
+ B(Ldar), R(20),
B(SetPendingMessage),
B(LdaZero),
- B(TestEqualStrictNoFeedback), R(8),
- B(JumpIfFalse), U8(9),
- B(PopContext), R(1),
- B(PopContext), R(1),
- B(Ldar), R(9),
+ B(TestEqualStrictNoFeedback), R(18),
+ B(JumpIfFalse), U8(5),
+ B(Ldar), R(19),
B(ReThrow),
- B(PopContext), R(1),
B(LdaUndefined),
- B(Star), R(8),
- B(LdaCurrentContextSlot), U8(13),
- B(Star), R(9),
+ B(Star), R(18),
B(LdaUndefined),
- B(Star), R(10),
- B(CallJSRuntime), U8(%promise_resolve), R(8), U8(3),
- B(LdaCurrentContextSlot), U8(13),
- B(Star), R(5),
+ B(Star), R(20),
+ B(Mov), R(11), R(19),
+ B(CallJSRuntime), U8(%promise_resolve), R(18), U8(3),
B(LdaZero),
- B(Star), R(4),
- B(Jump), U8(67),
- B(Jump), U8(53),
- B(Star), R(8),
+ B(Star), R(14),
+ B(Mov), R(11), R(15),
+ B(Jump), U8(61),
+ B(Jump), U8(47),
+ B(Star), R(18),
B(Ldar), R(closure),
- B(CreateCatchContext), R(8), U8(7), U8(12),
- B(Star), R(7),
+ B(CreateCatchContext), R(18), U8(4), U8(9),
+ B(Star), R(17),
B(LdaTheHole),
B(SetPendingMessage),
- B(Ldar), R(7),
- B(PushContext), R(1),
+ B(Ldar), R(17),
+ B(PushContext), R(13),
B(LdaUndefined),
- B(Star), R(8),
- B(LdaContextSlot), R(1), U8(13), U8(0),
- B(Star), R(9),
+ B(Star), R(18),
B(LdaImmutableCurrentContextSlot), U8(4),
- B(Star), R(10),
+ B(Star), R(20),
B(LdaFalse),
- B(Star), R(11),
- B(CallJSRuntime), U8(%promise_internal_reject), R(8), U8(4),
- B(LdaContextSlot), R(1), U8(13), U8(0),
- B(PopContext), R(1),
- B(PopContext), R(1),
- B(Star), R(5),
+ B(Star), R(21),
+ B(Mov), R(11), R(19),
+ B(CallJSRuntime), U8(%promise_internal_reject), R(18), U8(4),
+ B(PopContext), R(13),
+ B(PopContext), R(13),
B(LdaZero),
- B(Star), R(4),
+ B(Star), R(14),
+ B(Mov), R(11), R(15),
B(Jump), U8(14),
B(LdaSmi), I8(-1),
- B(Star), R(4),
+ B(Star), R(14),
B(Jump), U8(8),
- B(Star), R(5),
+ B(Star), R(15),
B(LdaSmi), I8(1),
- B(Star), R(4),
+ B(Star), R(14),
B(LdaTheHole),
B(SetPendingMessage),
- B(Star), R(6),
+ B(Star), R(16),
B(LdaUndefined),
- B(Star), R(7),
- B(LdaCurrentContextSlot), U8(13),
- B(Star), R(8),
- B(CallJSRuntime), U8(%async_function_promise_release), R(7), U8(2),
- B(Ldar), R(6),
+ B(Star), R(17),
+ B(Mov), R(11), R(18),
+ B(CallJSRuntime), U8(%async_function_promise_release), R(17), U8(2),
+ B(Ldar), R(16),
B(SetPendingMessage),
- B(Ldar), R(4),
- B(SwitchOnSmiNoFeedback), U8(13), U8(2), I8(0),
+ B(Ldar), R(14),
+ B(SwitchOnSmiNoFeedback), U8(10), U8(2), I8(0),
B(Jump), U8(8),
- B(Ldar), R(5),
+ B(Ldar), R(15),
/* 60 S> */ B(Return),
- B(Ldar), R(5),
+ B(Ldar), R(15),
B(ReThrow),
B(LdaUndefined),
/* 60 S> */ B(Return),
]
constant pool: [
- FIXED_ARRAY_TYPE,
SYMBOL_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
- FIXED_ARRAY_TYPE,
- FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
@@ -1507,11 +1336,11 @@ constant pool: [
Smi [9],
]
handlers: [
- [21, 510, 516],
- [24, 457, 459],
- [41, 242, 248],
- [44, 194, 196],
- [334, 350, 352],
+ [21, 354, 360],
+ [24, 307, 309],
+ [30, 152, 158],
+ [33, 112, 114],
+ [218, 228, 230],
]
---
@@ -1521,340 +1350,276 @@ snippet: "
}
f([1, 2, 3]);
"
-frame size: 18
+frame size: 29
parameter count: 2
-bytecode array length: 732
+bytecode array length: 552
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(25),
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
- B(PushContext), R(4),
+ B(PushContext), R(15),
B(ResumeGenerator), R(new_target),
- B(Star), R(3),
+ B(Star), R(14),
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
B(LdaSmi), I8(79),
- B(Star), R(5),
- B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
+ B(Star), R(16),
+ B(CallRuntime), U16(Runtime::kAbort), R(16), U8(1),
B(LdaSmi), I8(-2),
- B(Star), R(3),
- B(CreateFunctionContext), U8(11),
- B(PushContext), R(0),
+ B(Star), R(14),
+ B(CreateFunctionContext), U8(1),
+ B(PushContext), R(12),
B(Ldar), R(arg0),
B(StaCurrentContextSlot), U8(4),
- B(Mov), R(closure), R(5),
- B(Mov), R(this), R(6),
- B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5), U8(2),
- B(StaCurrentContextSlot), U8(5),
+ B(Mov), R(closure), R(16),
+ B(Mov), R(this), R(17),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(16), U8(2),
+ B(Star), R(2),
/* 16 E> */ B(StackCheck),
B(LdaUndefined),
- B(Star), R(5),
- B(CallJSRuntime), U8(%async_function_promise_create), R(5), U8(1),
- B(StaCurrentContextSlot), U8(7),
- B(Mov), R(context), R(7),
- B(Mov), R(context), R(8),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(1),
- B(PushContext), R(1),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
+ B(Star), R(16),
+ B(CallJSRuntime), U8(%async_function_promise_create), R(16), U8(1),
+ B(Star), R(4),
+ B(Mov), R(context), R(18),
+ B(Mov), R(context), R(19),
B(LdaZero),
- B(StaContextSlot), R(1), U8(11), U8(0),
- B(Mov), R(context), R(11),
- B(Mov), R(context), R(12),
- /* 40 S> */ B(LdaImmutableContextSlot), R(1), U8(4), U8(0),
- B(Star), R(13),
- B(LdaNamedProperty), R(13), U8(2), U8(3),
- B(Star), R(14),
- B(CallProperty0), R(14), R(13), U8(5),
+ B(Star), R(8),
+ B(Mov), R(context), R(22),
+ B(Mov), R(context), R(23),
+ /* 40 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
+ B(Star), R(24),
+ B(LdaNamedProperty), R(24), U8(1), U8(3),
+ B(Star), R(25),
+ B(CallProperty0), R(25), R(24), U8(5),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
- /* 40 E> */ B(StaContextSlot), R(1), U8(9), U8(0),
- B(Ldar), R(3),
- B(SwitchOnSmiNoFeedback), U8(3), U8(1), I8(0),
+ B(Star), R(6),
+ B(Ldar), R(14),
+ B(SwitchOnSmiNoFeedback), U8(2), U8(1), I8(0),
B(LdaSmi), I8(-2),
- B(TestEqualStrictNoFeedback), R(3),
+ /* 40 E> */ B(TestEqualStrictNoFeedback), R(14),
B(JumpIfTrue), U8(11),
B(LdaSmi), I8(79),
- B(Star), R(13),
- B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1),
- /* 37 S> */ B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(14),
- B(LdaNamedProperty), R(14), U8(4), U8(9),
- B(Star), R(13),
- /* 37 E> */ B(CallProperty0), R(13), R(14), U8(7),
- /* 37 E> */ B(StaContextSlot), R(1), U8(10), U8(0),
- B(Star), R(13),
- B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(13), U8(1),
+ B(Star), R(24),
+ B(CallRuntime), U16(Runtime::kAbort), R(24), U8(1),
+ /* 37 S> */ B(LdaNamedProperty), R(6), U8(3), U8(9),
+ B(Star), R(24),
+ /* 37 E> */ B(CallProperty0), R(24), R(6), U8(7),
+ B(Star), R(7),
+ /* 37 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(7), U8(1),
B(ToBooleanLogicalNot),
- B(JumpIfFalse), U8(13),
- B(LdaContextSlot), R(1), U8(10), U8(0),
- B(Star), R(13),
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1),
- B(LdaContextSlot), R(1), U8(10), U8(0),
- B(Star), R(13),
- B(LdaNamedProperty), R(13), U8(5), U8(11),
- B(JumpIfToBooleanTrue), U8(165),
- B(LdaContextSlot), R(1), U8(10), U8(0),
- B(Star), R(13),
- B(LdaNamedProperty), R(13), U8(6), U8(13),
- B(StaContextSlot), R(1), U8(12), U8(0),
+ B(JumpIfFalse), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(7), U8(1),
+ B(LdaNamedProperty), R(7), U8(4), U8(11),
+ B(JumpIfToBooleanTrue), U8(105),
+ B(LdaNamedProperty), R(7), U8(5), U8(13),
+ B(Star), R(9),
B(LdaSmi), I8(2),
- B(StaContextSlot), R(1), U8(11), U8(0),
- B(LdaContextSlot), R(1), U8(12), U8(0),
- B(StaContextSlot), R(1), U8(8), U8(0),
+ B(Star), R(8),
+ B(Mov), R(9), R(5),
/* 26 E> */ B(StackCheck),
- B(Ldar), R(closure),
- B(CreateBlockContext), U8(7),
- B(PushContext), R(2),
- B(LdaTheHole),
- B(StaCurrentContextSlot), U8(4),
- B(LdaContextSlot), R(1), U8(8), U8(0),
- B(StaCurrentContextSlot), U8(4),
- /* 45 S> */ B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
- B(Star), R(13),
- /* 51 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
- B(StaContextSlot), R(1), U8(6), U8(0),
+ B(Mov), R(5), R(0),
+ /* 45 S> */ B(Nop),
+ /* 51 S> */ B(Mov), R(5), R(3),
/* 45 S> */ B(LdaUndefined),
- B(Star), R(14),
- B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
- B(Star), R(15),
- B(LdaContextSlot), R(1), U8(6), U8(0),
- B(Star), R(16),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(17),
- B(CallJSRuntime), U8(%async_function_await_uncaught), R(14), U8(4),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(14),
+ B(Star), R(25),
+ B(Mov), R(2), R(26),
+ B(Mov), R(5), R(27),
+ B(Mov), R(4), R(28),
+ B(CallJSRuntime), U8(%async_function_await_uncaught), R(25), U8(4),
B(LdaZero),
- B(SuspendGenerator), R(13), U8(2),
- B(Ldar), R(14),
+ B(Mov), R(2), R(24),
+ B(Mov), R(4), R(25),
+ B(SuspendGenerator), R(24), U8(2),
+ B(Ldar), R(25),
/* 54 S> */ B(Return),
B(LdaSmi), I8(-2),
- B(Star), R(3),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
B(Star), R(14),
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
- B(Star), R(15),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(24), U8(1),
+ B(Star), R(25),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(24), U8(1),
+ B(Star), R(26),
B(LdaZero),
- B(TestEqualStrictNoFeedback), R(15),
- B(JumpIfTrue), U8(40),
+ B(TestEqualStrictNoFeedback), R(26),
+ B(JumpIfTrue), U8(28),
B(LdaSmi), I8(2),
- B(TestEqualStrictNoFeedback), R(15),
- B(JumpIfTrue), U8(31),
+ B(TestEqualStrictNoFeedback), R(26),
+ B(JumpIfTrue), U8(19),
B(LdaTrue),
- B(Star), R(17),
- B(Mov), R(14), R(16),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(16), U8(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(PopContext), R(2),
- B(Star), R(10),
+ B(Star), R(28),
+ B(Mov), R(25), R(27),
+ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(27), U8(2),
+ B(Star), R(21),
B(LdaZero),
- B(Star), R(9),
- B(Jump), U8(75),
- B(Ldar), R(14),
+ B(Star), R(20),
+ B(Jump), U8(63),
+ B(Ldar), R(25),
B(ReThrow),
- B(PopContext), R(2),
B(LdaZero),
- B(StaContextSlot), R(1), U8(11), U8(0),
- B(JumpLoop), U8(233), I8(0),
- B(Jump), U8(48),
- B(Star), R(13),
+ B(Star), R(8),
+ B(JumpLoop), U8(151), I8(0),
+ B(Jump), U8(40),
+ B(Star), R(24),
B(Ldar), R(closure),
- B(CreateCatchContext), R(13), U8(8), U8(9),
- B(Star), R(12),
+ B(CreateCatchContext), R(24), U8(6), U8(7),
+ B(Star), R(23),
B(LdaTheHole),
B(SetPendingMessage),
- B(Ldar), R(12),
- B(PushContext), R(2),
- B(LdaContextSlot), R(1), U8(11), U8(0),
- B(Star), R(13),
+ B(Ldar), R(23),
+ B(PushContext), R(13),
B(LdaSmi), I8(2),
- B(TestEqualStrict), R(13), U8(15),
- B(JumpIfFalse), U8(8),
+ B(TestEqualStrict), R(8), U8(15),
+ B(JumpIfFalse), U8(6),
B(LdaSmi), I8(1),
- B(StaContextSlot), R(1), U8(11), U8(0),
+ B(Star), R(8),
B(LdaImmutableCurrentContextSlot), U8(4),
- B(Star), R(13),
- B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
- B(PopContext), R(2),
+ B(Star), R(24),
+ B(CallRuntime), U16(Runtime::kReThrow), R(24), U8(1),
+ B(PopContext), R(13),
B(LdaSmi), I8(-1),
- B(Star), R(9),
+ B(Star), R(20),
B(Jump), U8(8),
- B(Star), R(10),
+ B(Star), R(21),
B(LdaSmi), I8(1),
- B(Star), R(9),
+ B(Star), R(20),
B(LdaTheHole),
B(SetPendingMessage),
- B(Star), R(11),
- B(LdaContextSlot), R(1), U8(11), U8(0),
- B(Star), R(12),
+ B(Star), R(22),
B(LdaZero),
- B(TestEqualStrict), R(12), U8(16),
- B(JumpIfTrue), U8(150),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(12),
- B(LdaNamedProperty), R(12), U8(10), U8(17),
- B(StaContextSlot), R(1), U8(13), U8(0),
- B(LdaContextSlot), R(1), U8(13), U8(0),
+ B(TestEqualStrict), R(8), U8(16),
+ B(JumpIfTrue), U8(104),
+ B(LdaNamedProperty), R(6), U8(8), U8(17),
+ B(Star), R(10),
B(TestUndetectable),
B(JumpIfFalse), U8(4),
- B(Jump), U8(127),
- B(LdaContextSlot), R(1), U8(11), U8(0),
- B(Star), R(12),
+ B(Jump), U8(93),
B(LdaSmi), I8(1),
- B(TestEqualStrict), R(12), U8(20),
- B(JumpIfFalse), U8(69),
- B(LdaContextSlot), R(1), U8(13), U8(0),
+ B(TestEqualStrict), R(8), U8(20),
+ B(JumpIfFalse), U8(61),
+ B(Ldar), R(10),
B(TestTypeOf), U8(5),
B(JumpIfFalse), U8(4),
B(Jump), U8(18),
B(Wide), B(LdaSmi), I16(130),
- B(Star), R(12),
- B(LdaConstant), U8(11),
- B(Star), R(13),
- B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
+ B(Star), R(23),
+ B(LdaConstant), U8(9),
+ B(Star), R(24),
+ B(CallRuntime), U16(Runtime::kNewTypeError), R(23), U8(2),
B(Throw),
- B(Mov), R(context), R(12),
- B(LdaContextSlot), R(1), U8(13), U8(0),
- B(Star), R(13),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(14),
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
+ B(Mov), R(context), R(23),
+ B(Mov), R(10), R(24),
+ B(Mov), R(6), R(25),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(24), U8(2),
B(Jump), U8(20),
- B(Star), R(13),
+ B(Star), R(24),
B(Ldar), R(closure),
- B(CreateCatchContext), R(13), U8(8), U8(12),
- B(Star), R(12),
+ B(CreateCatchContext), R(24), U8(6), U8(10),
+ B(Star), R(23),
B(LdaTheHole),
B(SetPendingMessage),
- B(Ldar), R(12),
- B(PushContext), R(2),
- B(PopContext), R(2),
- B(Jump), U8(47),
- B(LdaContextSlot), R(1), U8(13), U8(0),
- B(Star), R(12),
- B(LdaContextSlot), R(1), U8(9), U8(0),
- B(Star), R(13),
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
- B(StaContextSlot), R(1), U8(14), U8(0),
- B(LdaContextSlot), R(1), U8(14), U8(0),
- B(Star), R(12),
- B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1),
+ B(Ldar), R(23),
+ B(PushContext), R(13),
+ B(PopContext), R(13),
+ B(Jump), U8(27),
+ B(Mov), R(10), R(23),
+ B(Mov), R(6), R(24),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(23), U8(2),
+ B(Star), R(11),
+ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1),
B(JumpIfToBooleanFalse), U8(4),
- B(Jump), U8(13),
- B(LdaContextSlot), R(1), U8(14), U8(0),
- B(Star), R(12),
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1),
- B(Ldar), R(11),
+ B(Jump), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1),
+ B(Ldar), R(22),
B(SetPendingMessage),
- B(Ldar), R(9),
- B(SwitchOnSmiNoFeedback), U8(13), U8(2), I8(0),
- B(Jump), U8(25),
- B(PopContext), R(1),
- B(PopContext), R(1),
- B(PopContext), R(1),
- B(PopContext), R(1),
+ B(Ldar), R(20),
+ B(SwitchOnSmiNoFeedback), U8(11), U8(2), I8(0),
+ B(Jump), U8(13),
B(LdaZero),
- B(Star), R(5),
- B(Mov), R(10), R(6),
- B(Jump), U8(99),
- B(PopContext), R(1),
- B(PopContext), R(1),
- B(Ldar), R(10),
+ B(Star), R(16),
+ B(Mov), R(21), R(17),
+ B(Jump), U8(85),
+ B(Ldar), R(21),
B(ReThrow),
- B(PopContext), R(1),
B(LdaUndefined),
- B(Star), R(9),
- B(LdaCurrentContextSlot), U8(7),
- B(Star), R(10),
+ B(Star), R(20),
B(LdaUndefined),
- B(Star), R(11),
- B(CallJSRuntime), U8(%promise_resolve), R(9), U8(3),
- B(LdaCurrentContextSlot), U8(7),
- B(Star), R(6),
+ B(Star), R(22),
+ B(Mov), R(4), R(21),
+ B(CallJSRuntime), U8(%promise_resolve), R(20), U8(3),
B(LdaZero),
- B(Star), R(5),
- B(Jump), U8(67),
- B(Jump), U8(53),
- B(Star), R(9),
+ B(Star), R(16),
+ B(Mov), R(4), R(17),
+ B(Jump), U8(61),
+ B(Jump), U8(47),
+ B(Star), R(20),
B(Ldar), R(closure),
- B(CreateCatchContext), R(9), U8(8), U8(15),
- B(Star), R(8),
+ B(CreateCatchContext), R(20), U8(6), U8(13),
+ B(Star), R(19),
B(LdaTheHole),
B(SetPendingMessage),
- B(Ldar), R(8),
- B(PushContext), R(1),
+ B(Ldar), R(19),
+ B(PushContext), R(13),
B(LdaUndefined),
- B(Star), R(9),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(Star), R(10),
+ B(Star), R(20),
B(LdaImmutableCurrentContextSlot), U8(4),
- B(Star), R(11),
+ B(Star), R(22),
B(LdaFalse),
- B(Star), R(12),
- B(CallJSRuntime), U8(%promise_internal_reject), R(9), U8(4),
- B(LdaContextSlot), R(1), U8(7), U8(0),
- B(PopContext), R(1),
- B(PopContext), R(1),
- B(Star), R(6),
+ B(Star), R(23),
+ B(Mov), R(4), R(21),
+ B(CallJSRuntime), U8(%promise_internal_reject), R(20), U8(4),
+ B(PopContext), R(13),
+ B(PopContext), R(13),
B(LdaZero),
- B(Star), R(5),
+ B(Star), R(16),
+ B(Mov), R(4), R(17),
B(Jump), U8(14),
B(LdaSmi), I8(-1),
- B(Star), R(5),
+ B(Star), R(16),
B(Jump), U8(8),
- B(Star), R(6),
+ B(Star), R(17),
B(LdaSmi), I8(1),
- B(Star), R(5),
+ B(Star), R(16),
B(LdaTheHole),
B(SetPendingMessage),
- B(Star), R(7),
+ B(Star), R(18),
B(LdaUndefined),
- B(Star), R(8),
- B(LdaCurrentContextSlot), U8(7),
- B(Star), R(9),
- B(CallJSRuntime), U8(%async_function_promise_release), R(8), U8(2),
- B(Ldar), R(7),
+ B(Star), R(19),
+ B(Mov), R(4), R(20),
+ B(CallJSRuntime), U8(%async_function_promise_release), R(19), U8(2),
+ B(Ldar), R(18),
B(SetPendingMessage),
- B(Ldar), R(5),
- B(SwitchOnSmiNoFeedback), U8(16), U8(2), I8(0),
+ B(Ldar), R(16),
+ B(SwitchOnSmiNoFeedback), U8(14), U8(2), I8(0),
B(Jump), U8(8),
- B(Ldar), R(6),
+ B(Ldar), R(17),
/* 54 S> */ B(Return),
- B(Ldar), R(6),
+ B(Ldar), R(17),
B(ReThrow),
B(LdaUndefined),
/* 54 S> */ B(Return),
]
constant pool: [
- Smi [100],
- FIXED_ARRAY_TYPE,
+ Smi [85],
SYMBOL_TYPE,
- Smi [165],
+ Smi [99],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
- FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
FIXED_ARRAY_TYPE,
Smi [6],
- Smi [22],
+ Smi [14],
FIXED_ARRAY_TYPE,
Smi [6],
Smi [9],
]
handlers: [
- [64, 686, 692],
- [67, 633, 635],
- [84, 398, 404],
- [87, 350, 352],
- [491, 507, 509],
+ [64, 507, 513],
+ [67, 460, 462],
+ [73, 293, 299],
+ [76, 253, 255],
+ [360, 370, 372],
]

Powered by Google App Engine
This is Rietveld 408576698