Index: test/cctest/interpreter/bytecode_expectations/Generators.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/Generators.golden b/test/cctest/interpreter/bytecode_expectations/Generators.golden |
index 2870fcc168fa0d0ca60ddb79550a18965e4e6044..97be281d256a1067416e08cf15d76c9a32de10a7 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/Generators.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/Generators.golden |
@@ -11,9 +11,9 @@ snippet: " |
function* f() { } |
f(); |
" |
-frame size: 10 |
+frame size: 5 |
parameter count: 1 |
-bytecode array length: 162 |
+bytecode array length: 104 |
bytecodes: [ |
B(Mov), R(new_target), R(1), |
B(Ldar), R(new_target), |
@@ -24,79 +24,45 @@ bytecodes: [ |
B(Star), R(2), |
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), |
B(LdaSmi), I8(79), |
- B(Star), R(4), |
- B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), |
+ B(Star), R(3), |
+ B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
B(LdaSmi), I8(-2), |
B(Star), R(2), |
- B(Mov), R(closure), R(4), |
- B(Mov), R(this), R(5), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(4), U8(2), |
+ B(Mov), R(closure), R(3), |
+ B(Mov), R(this), R(4), |
+ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2), |
B(Star), R(0), |
/* 11 E> */ B(StackCheck), |
- B(Star), R(1), |
- B(Mov), R(context), R(6), |
B(LdaZero), |
- B(Mov), R(0), R(7), |
- /* 11 E> */ B(SuspendGenerator), R(1), R(0), U8(7), U8(0), |
- B(Ldar), R(7), |
+ B(Mov), R(0), R(1), |
+ B(Mov), R(0), R(3), |
+ /* 11 E> */ B(SuspendGenerator), R(1), R(0), U8(3), U8(0), |
+ B(Ldar), R(3), |
/* 16 S> */ B(Return), |
- B(RestoreGeneratorRegisters), R(1), R(0), U8(7), |
+ B(RestoreGeneratorRegisters), R(1), R(0), U8(3), |
B(LdaSmi), I8(-2), |
B(Star), R(2), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(1), U8(1), |
- B(Star), R(7), |
+ B(Star), R(3), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(1), U8(1), |
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0), |
- B(Ldar), R(7), |
+ B(Ldar), R(3), |
/* 11 E> */ B(Throw), |
- B(LdaTrue), |
- B(Star), R(9), |
- B(Mov), R(7), R(8), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8), U8(2), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(4), |
- B(Jump), U8(31), |
- B(LdaUndefined), |
- B(Star), R(7), |
- B(LdaTrue), |
- B(Star), R(8), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(4), |
- B(Jump), U8(14), |
- B(LdaSmi), I8(-1), |
- B(Star), R(4), |
- B(Jump), U8(8), |
- B(Star), R(5), |
- B(LdaSmi), I8(1), |
- B(Star), R(4), |
- B(LdaTheHole), |
- B(SetPendingMessage), |
- B(Star), R(6), |
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(0), U8(1), |
- B(Ldar), R(6), |
- B(SetPendingMessage), |
- B(Ldar), R(4), |
- B(SwitchOnSmiNoFeedback), U8(3), U8(2), I8(0), |
- B(Jump), U8(8), |
- B(Ldar), R(5), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(1), U8(1), |
+ B(Ldar), R(3), |
/* 16 S> */ B(Return), |
- B(Ldar), R(5), |
- B(ReThrow), |
B(LdaUndefined), |
+ B(Star), R(3), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(1), U8(1), |
+ B(Ldar), R(3), |
/* 16 S> */ B(Return), |
] |
constant pool: [ |
- Smi [47], |
- Smi [24], |
+ Smi [45], |
+ Smi [14], |
Smi [7], |
- Smi [6], |
- Smi [9], |
] |
handlers: [ |
- [52, 123, 129], |
] |
--- |
@@ -104,9 +70,9 @@ snippet: " |
function* f() { yield 42 } |
f(); |
" |
-frame size: 10 |
+frame size: 6 |
parameter count: 1 |
-bytecode array length: 227 |
+bytecode array length: 158 |
bytecodes: [ |
B(Mov), R(new_target), R(1), |
B(Ldar), R(new_target), |
@@ -117,109 +83,69 @@ bytecodes: [ |
B(Star), R(2), |
B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), |
B(LdaSmi), I8(79), |
- B(Star), R(4), |
- B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), |
+ B(Star), R(3), |
+ B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
B(LdaSmi), I8(-2), |
B(Star), R(2), |
- B(Mov), R(closure), R(4), |
- B(Mov), R(this), R(5), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(4), U8(2), |
+ B(Mov), R(closure), R(3), |
+ B(Mov), R(this), R(4), |
+ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2), |
B(Star), R(0), |
/* 11 E> */ B(StackCheck), |
- B(Star), R(1), |
- B(Mov), R(context), R(6), |
B(LdaZero), |
- B(Mov), R(0), R(7), |
- /* 11 E> */ B(SuspendGenerator), R(1), R(0), U8(7), U8(0), |
- B(Ldar), R(7), |
+ B(Mov), R(0), R(1), |
+ B(Mov), R(0), R(3), |
+ /* 11 E> */ B(SuspendGenerator), R(1), R(0), U8(3), U8(0), |
+ B(Ldar), R(3), |
/* 25 S> */ B(Return), |
- B(RestoreGeneratorRegisters), R(1), R(0), U8(7), |
+ B(RestoreGeneratorRegisters), R(1), R(0), U8(3), |
B(LdaSmi), I8(-2), |
B(Star), R(2), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(1), U8(1), |
- B(Star), R(7), |
+ B(Star), R(3), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(1), U8(1), |
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), |
- B(Ldar), R(7), |
+ B(Ldar), R(3), |
/* 11 E> */ B(Throw), |
- B(LdaTrue), |
- B(Star), R(9), |
- B(Mov), R(7), R(8), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8), U8(2), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(4), |
- B(Jump), U8(96), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(1), U8(1), |
+ B(Ldar), R(3), |
+ /* 25 S> */ B(Return), |
/* 16 S> */ B(LdaSmi), I8(42), |
- B(Star), R(7), |
- B(LdaFalse), |
- B(Star), R(8), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2), |
- B(Star), R(7), |
+ B(Star), R(3), |
B(LdaSmi), I8(1), |
- B(SuspendGenerator), R(1), R(0), U8(7), U8(0), |
- B(Ldar), R(7), |
+ B(SuspendGenerator), R(1), R(0), U8(3), U8(0), |
+ B(LdaFalse), |
+ B(Star), R(5), |
+ B(Mov), R(3), R(4), |
+ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(4), U8(2), |
/* 25 S> */ B(Return), |
- B(RestoreGeneratorRegisters), R(1), R(0), U8(7), |
+ B(RestoreGeneratorRegisters), R(1), R(0), U8(3), |
B(LdaSmi), I8(-2), |
B(Star), R(2), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(1), U8(1), |
- B(Star), R(7), |
+ B(Star), R(3), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(1), U8(1), |
B(SwitchOnSmiNoFeedback), U8(4), U8(2), I8(0), |
- B(Ldar), R(7), |
+ B(Ldar), R(3), |
/* 16 E> */ B(Throw), |
- B(LdaTrue), |
- B(Star), R(9), |
- B(Mov), R(7), R(8), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8), U8(2), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(4), |
- B(Jump), U8(31), |
- B(LdaUndefined), |
- B(Star), R(7), |
- B(LdaTrue), |
- B(Star), R(8), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(4), |
- B(Jump), U8(14), |
- B(LdaSmi), I8(-1), |
- B(Star), R(4), |
- B(Jump), U8(8), |
- B(Star), R(5), |
- B(LdaSmi), I8(1), |
- B(Star), R(4), |
- B(LdaTheHole), |
- B(SetPendingMessage), |
- B(Star), R(6), |
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(0), U8(1), |
- B(Ldar), R(6), |
- B(SetPendingMessage), |
- B(Ldar), R(4), |
- B(SwitchOnSmiNoFeedback), U8(6), U8(2), I8(0), |
- B(Jump), U8(8), |
- B(Ldar), R(5), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(1), U8(1), |
+ B(Ldar), R(3), |
/* 25 S> */ B(Return), |
- B(Ldar), R(5), |
- B(ReThrow), |
B(LdaUndefined), |
+ B(Star), R(3), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(1), U8(1), |
+ B(Ldar), R(3), |
/* 25 S> */ B(Return), |
] |
constant pool: [ |
- Smi [47], |
- Smi [112], |
- Smi [24], |
+ Smi [45], |
+ Smi [99], |
+ Smi [14], |
Smi [7], |
- Smi [24], |
+ Smi [14], |
Smi [7], |
- Smi [6], |
- Smi [9], |
] |
handlers: [ |
- [52, 188, 194], |
] |
--- |
@@ -227,9 +153,9 @@ snippet: " |
function* f() { for (let x of [42]) yield x } |
f(); |
" |
-frame size: 23 |
+frame size: 19 |
parameter count: 1 |
-bytecode array length: 522 |
+bytecode array length: 447 |
bytecodes: [ |
B(Mov), R(new_target), R(10), |
B(Ldar), R(new_target), |
@@ -240,48 +166,42 @@ bytecodes: [ |
B(Star), R(11), |
B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), |
B(LdaSmi), I8(79), |
- B(Star), R(13), |
- B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1), |
+ B(Star), R(12), |
+ B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), |
B(LdaSmi), I8(-2), |
B(Star), R(11), |
- B(Mov), R(closure), R(13), |
- B(Mov), R(this), R(14), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(13), U8(2), |
+ B(Mov), R(closure), R(12), |
+ B(Mov), R(this), R(13), |
+ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(12), U8(2), |
B(Star), R(2), |
/* 11 E> */ B(StackCheck), |
- B(Star), R(10), |
- B(Mov), R(context), R(15), |
B(LdaZero), |
- B(Mov), R(2), R(16), |
- /* 11 E> */ B(SuspendGenerator), R(10), R(0), U8(16), U8(0), |
- B(Ldar), R(16), |
+ B(Mov), R(2), R(10), |
+ B(Mov), R(2), R(12), |
+ /* 11 E> */ B(SuspendGenerator), R(10), R(0), U8(12), U8(0), |
+ B(Ldar), R(12), |
/* 44 S> */ B(Return), |
- B(RestoreGeneratorRegisters), R(10), R(0), U8(16), |
+ B(RestoreGeneratorRegisters), R(10), R(0), U8(12), |
B(LdaSmi), I8(-2), |
B(Star), R(11), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(10), U8(1), |
- B(Star), R(16), |
+ B(Star), R(12), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(10), U8(1), |
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), |
- B(Ldar), R(16), |
+ B(Ldar), R(12), |
/* 11 E> */ B(Throw), |
- B(LdaTrue), |
- B(Star), R(18), |
- B(Mov), R(16), R(17), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(17), U8(2), |
- B(Star), R(14), |
- B(LdaZero), |
- B(Star), R(13), |
- B(JumpConstant), U8(19), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(10), U8(1), |
+ B(Ldar), R(12), |
+ /* 44 S> */ B(Return), |
B(LdaZero), |
B(Star), R(6), |
- B(Mov), R(context), R(18), |
- B(Mov), R(context), R(19), |
+ B(Mov), R(context), R(14), |
+ B(Mov), R(context), R(15), |
/* 30 S> */ B(CreateArrayLiteral), U8(4), U8(3), U8(17), |
- B(Star), R(20), |
- B(LdaNamedProperty), R(20), U8(5), U8(4), |
- B(Star), R(21), |
- B(CallProperty0), R(21), R(20), U8(6), |
+ B(Star), R(16), |
+ B(LdaNamedProperty), R(16), U8(5), U8(4), |
+ B(Star), R(17), |
+ B(CallProperty0), R(17), R(16), U8(6), |
B(JumpIfJSReceiver), U8(7), |
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0), |
B(Star), R(4), |
@@ -291,18 +211,18 @@ bytecodes: [ |
/* 30 E> */ B(TestEqualStrictNoFeedback), R(11), |
B(JumpIfTrue), U8(11), |
B(LdaSmi), I8(79), |
- B(Star), R(20), |
- B(CallRuntime), U16(Runtime::kAbort), R(20), U8(1), |
+ B(Star), R(16), |
+ B(CallRuntime), U16(Runtime::kAbort), R(16), U8(1), |
/* 25 S> */ B(LdaNamedProperty), R(4), U8(7), U8(10), |
- B(Star), R(20), |
- B(CallProperty0), R(20), R(4), U8(8), |
+ B(Star), R(16), |
+ B(CallProperty0), R(16), R(4), U8(8), |
B(Star), R(5), |
/* 25 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(5), U8(1), |
B(ToBooleanLogicalNot), |
B(JumpIfFalse), U8(7), |
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1), |
B(LdaNamedProperty), R(5), U8(8), U8(12), |
- B(JumpIfToBooleanTrue), U8(89), |
+ B(JumpIfToBooleanTrue), U8(79), |
B(LdaNamedProperty), R(5), U8(9), U8(14), |
B(Star), R(7), |
B(LdaSmi), I8(2), |
@@ -310,59 +230,54 @@ bytecodes: [ |
B(Mov), R(7), R(3), |
/* 16 E> */ B(StackCheck), |
B(Mov), R(3), R(0), |
- /* 36 S> */ B(LdaFalse), |
- B(Star), R(21), |
- B(Mov), R(0), R(20), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(20), U8(2), |
- B(Star), R(20), |
- B(LdaSmi), I8(1), |
- B(SuspendGenerator), R(10), R(0), U8(20), U8(0), |
- B(Ldar), R(20), |
+ /* 36 S> */ B(LdaSmi), I8(1), |
+ B(Mov), R(0), R(16), |
+ B(SuspendGenerator), R(10), R(0), U8(16), U8(0), |
+ B(LdaFalse), |
+ B(Star), R(18), |
+ B(Mov), R(16), R(17), |
+ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(17), U8(2), |
/* 44 S> */ B(Return), |
- B(RestoreGeneratorRegisters), R(10), R(0), U8(20), |
+ B(RestoreGeneratorRegisters), R(10), R(0), U8(16), |
B(LdaSmi), I8(-2), |
B(Star), R(11), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(10), U8(1), |
- B(Star), R(20), |
+ B(Star), R(16), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(10), U8(1), |
B(SwitchOnSmiNoFeedback), U8(10), U8(2), I8(0), |
- B(Ldar), R(20), |
+ B(Ldar), R(16), |
/* 36 E> */ B(Throw), |
- B(LdaTrue), |
- B(Star), R(22), |
- B(Mov), R(20), R(21), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(21), U8(2), |
- B(Star), R(17), |
B(LdaZero), |
- B(Star), R(16), |
+ B(Star), R(12), |
+ B(Mov), R(16), R(13), |
B(Jump), U8(56), |
B(LdaZero), |
B(Star), R(6), |
- B(JumpLoop), U8(135), I8(0), |
+ B(JumpLoop), U8(125), I8(0), |
B(Jump), U8(36), |
- B(Star), R(20), |
+ B(Star), R(16), |
B(Ldar), R(closure), |
- B(CreateCatchContext), R(20), U8(12), U8(13), |
- B(PushContext), R(20), |
- B(Star), R(19), |
+ B(CreateCatchContext), R(16), U8(12), U8(13), |
+ B(PushContext), R(16), |
+ B(Star), R(15), |
B(LdaSmi), I8(2), |
B(TestEqualStrict), R(6), U8(16), |
B(JumpIfFalse), U8(6), |
B(LdaSmi), I8(1), |
B(Star), R(6), |
B(LdaImmutableCurrentContextSlot), U8(4), |
- B(Star), R(21), |
- B(CallRuntime), U16(Runtime::kReThrow), R(21), U8(1), |
- B(PopContext), R(20), |
+ B(Star), R(17), |
+ B(CallRuntime), U16(Runtime::kReThrow), R(17), U8(1), |
+ B(PopContext), R(16), |
B(LdaSmi), I8(-1), |
- B(Star), R(16), |
+ B(Star), R(12), |
B(Jump), U8(8), |
- B(Star), R(17), |
+ B(Star), R(13), |
B(LdaSmi), I8(1), |
- B(Star), R(16), |
+ B(Star), R(12), |
B(LdaTheHole), |
B(SetPendingMessage), |
- B(Star), R(18), |
+ B(Star), R(14), |
B(LdaZero), |
B(TestEqualStrict), R(6), U8(17), |
B(JumpIfTrue), U8(104), |
@@ -379,90 +294,62 @@ bytecodes: [ |
B(JumpIfFalse), U8(4), |
B(Jump), U8(18), |
B(Wide), B(LdaSmi), I16(130), |
- B(Star), R(19), |
+ B(Star), R(15), |
B(LdaConstant), U8(15), |
- B(Star), R(20), |
- B(CallRuntime), U16(Runtime::kNewTypeError), R(19), U8(2), |
+ B(Star), R(16), |
+ B(CallRuntime), U16(Runtime::kNewTypeError), R(15), U8(2), |
B(Throw), |
- B(Mov), R(context), R(19), |
- B(Mov), R(8), R(20), |
- B(Mov), R(4), R(21), |
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(20), U8(2), |
+ B(Mov), R(context), R(15), |
+ B(Mov), R(8), R(16), |
+ B(Mov), R(4), R(17), |
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(16), U8(2), |
B(Jump), U8(20), |
- B(Star), R(20), |
+ B(Star), R(16), |
B(Ldar), R(closure), |
- B(CreateCatchContext), R(20), U8(12), U8(16), |
- B(Star), R(19), |
+ B(CreateCatchContext), R(16), U8(12), U8(16), |
+ B(Star), R(15), |
B(LdaTheHole), |
B(SetPendingMessage), |
- B(Ldar), R(19), |
- B(PushContext), R(20), |
- B(PopContext), R(20), |
+ B(Ldar), R(15), |
+ B(PushContext), R(16), |
+ B(PopContext), R(16), |
B(Jump), U8(27), |
- B(Mov), R(8), R(19), |
- B(Mov), R(4), R(20), |
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(19), U8(2), |
+ B(Mov), R(8), R(15), |
+ B(Mov), R(4), R(16), |
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(15), U8(2), |
B(Star), R(9), |
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(9), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
B(Jump), U8(7), |
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(9), U8(1), |
- B(Ldar), R(18), |
+ B(Ldar), R(14), |
B(SetPendingMessage), |
- B(Ldar), R(16), |
+ B(Ldar), R(12), |
B(SwitchOnSmiNoFeedback), U8(17), U8(2), I8(0), |
- B(Jump), U8(19), |
- B(LdaZero), |
- B(Star), R(13), |
- B(Mov), R(17), R(14), |
- B(Jump), U8(40), |
- B(LdaSmi), I8(1), |
- B(Star), R(13), |
- B(Mov), R(17), R(14), |
- B(Jump), U8(31), |
- B(LdaUndefined), |
- B(Star), R(16), |
- B(LdaTrue), |
- B(Star), R(17), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(16), U8(2), |
- B(Star), R(14), |
- B(LdaZero), |
- B(Star), R(13), |
- B(Jump), U8(14), |
- B(LdaSmi), I8(-1), |
- B(Star), R(13), |
- B(Jump), U8(8), |
- B(Star), R(14), |
- B(LdaSmi), I8(1), |
- B(Star), R(13), |
- B(LdaTheHole), |
- B(SetPendingMessage), |
- B(Star), R(15), |
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(2), U8(1), |
- B(Ldar), R(15), |
- B(SetPendingMessage), |
+ B(Jump), U8(12), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(10), U8(1), |
B(Ldar), R(13), |
- B(SwitchOnSmiNoFeedback), U8(20), U8(2), I8(0), |
- B(Jump), U8(8), |
- B(Ldar), R(14), |
/* 44 S> */ B(Return), |
- B(Ldar), R(14), |
+ B(Ldar), R(13), |
B(ReThrow), |
B(LdaUndefined), |
+ B(Star), R(12), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(10), U8(1), |
+ B(Ldar), R(12), |
/* 44 S> */ B(Return), |
] |
constant pool: [ |
- Smi [47], |
- Smi [123], |
- Smi [24], |
+ Smi [45], |
+ Smi [111], |
+ Smi [14], |
Smi [7], |
TUPLE2_TYPE, |
SYMBOL_TYPE, |
- Smi [88], |
+ Smi [87], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
- Smi [24], |
+ Smi [15], |
Smi [7], |
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
FIXED_ARRAY_TYPE, |
@@ -470,16 +357,12 @@ constant pool: [ |
ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
FIXED_ARRAY_TYPE, |
Smi [6], |
- Smi [14], |
- Smi [391], |
- Smi [6], |
- Smi [9], |
+ Smi [13], |
] |
handlers: [ |
- [52, 483, 489], |
- [112, 314, 320], |
- [115, 278, 280], |
- [381, 391, 393], |
+ [100, 292, 298], |
+ [103, 256, 258], |
+ [359, 369, 371], |
] |
--- |
@@ -488,9 +371,9 @@ snippet: " |
function* f() { yield* g() } |
f(); |
" |
-frame size: 19 |
+frame size: 15 |
parameter count: 1 |
-bytecode array length: 575 |
+bytecode array length: 500 |
bytecodes: [ |
B(Mov), R(new_target), R(9), |
B(Ldar), R(new_target), |
@@ -501,39 +384,33 @@ bytecodes: [ |
B(Star), R(10), |
B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), |
B(LdaSmi), I8(79), |
- B(Star), R(12), |
- B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), |
+ B(Star), R(11), |
+ B(CallRuntime), U16(Runtime::kAbort), R(11), U8(1), |
B(LdaSmi), I8(-2), |
B(Star), R(10), |
- B(Mov), R(closure), R(12), |
- B(Mov), R(this), R(13), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(12), U8(2), |
+ B(Mov), R(closure), R(11), |
+ B(Mov), R(this), R(12), |
+ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(11), U8(2), |
B(Star), R(0), |
/* 38 E> */ B(StackCheck), |
- B(Star), R(9), |
- B(Mov), R(context), R(14), |
B(LdaZero), |
- B(Mov), R(0), R(15), |
- /* 38 E> */ B(SuspendGenerator), R(9), R(0), U8(15), U8(0), |
- B(Ldar), R(15), |
+ B(Mov), R(0), R(9), |
+ B(Mov), R(0), R(11), |
+ /* 38 E> */ B(SuspendGenerator), R(9), R(0), U8(11), U8(0), |
+ B(Ldar), R(11), |
/* 54 S> */ B(Return), |
- B(RestoreGeneratorRegisters), R(9), R(0), U8(15), |
+ B(RestoreGeneratorRegisters), R(9), R(0), U8(11), |
B(LdaSmi), I8(-2), |
B(Star), R(10), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(9), U8(1), |
- B(Star), R(15), |
+ B(Star), R(11), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(9), U8(1), |
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), |
- B(Ldar), R(15), |
+ B(Ldar), R(11), |
/* 38 E> */ B(Throw), |
- B(LdaTrue), |
- B(Star), R(17), |
- B(Mov), R(15), R(16), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(16), U8(2), |
- B(Star), R(13), |
- B(LdaZero), |
- B(Star), R(12), |
- B(JumpConstant), U8(15), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(9), U8(1), |
+ B(Ldar), R(11), |
+ /* 54 S> */ B(Return), |
/* 43 S> */ B(LdaUndefined), |
B(Star), R(1), |
B(LdaZero), |
@@ -541,12 +418,12 @@ bytecodes: [ |
B(LdaUndefined), |
B(Star), R(3), |
B(LdaGlobal), U8(4), U8(5), |
- B(Star), R(17), |
- /* 50 E> */ B(CallUndefinedReceiver0), R(17), U8(3), |
- B(Star), R(15), |
- B(LdaNamedProperty), R(15), U8(5), U8(7), |
- B(Star), R(16), |
- B(CallProperty0), R(16), R(15), U8(9), |
+ B(Star), R(13), |
+ /* 50 E> */ B(CallUndefinedReceiver0), R(13), U8(3), |
+ B(Star), R(11), |
+ B(LdaNamedProperty), R(11), U8(5), U8(7), |
+ B(Star), R(12), |
+ B(CallProperty0), R(12), R(11), U8(9), |
B(JumpIfJSReceiver), U8(7), |
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0), |
B(Star), R(4), |
@@ -556,45 +433,40 @@ bytecodes: [ |
B(TestEqualStrictNoFeedback), R(10), |
B(JumpIfTrue), U8(11), |
B(LdaSmi), I8(79), |
- B(Star), R(15), |
- B(CallRuntime), U16(Runtime::kAbort), R(15), U8(1), |
+ B(Star), R(11), |
+ B(CallRuntime), U16(Runtime::kAbort), R(11), U8(1), |
B(StackCheck), |
B(LdaZero), |
B(TestEqualStrict), R(2), U8(15), |
- B(Mov), R(2), R(15), |
+ B(Mov), R(2), R(11), |
B(JumpIfTrue), U8(18), |
B(LdaSmi), I8(1), |
- B(TestEqualStrict), R(15), U8(19), |
+ B(TestEqualStrict), R(11), U8(19), |
B(JumpIfTrue), U8(39), |
B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(15), U8(28), |
- B(JumpIfTrue), U8(88), |
- B(Jump), U8(246), |
+ B(TestEqualStrict), R(11), U8(28), |
+ B(JumpIfTrue), U8(78), |
+ B(Jump), U8(236), |
B(LdaNamedProperty), R(4), U8(7), U8(13), |
- B(Star), R(16), |
- B(CallProperty1), R(16), R(4), R(1), U8(11), |
+ B(Star), R(12), |
+ B(CallProperty1), R(12), R(4), R(1), U8(11), |
B(Star), R(3), |
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
B(Jump), U8(7), |
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(3), U8(1), |
- B(Jump), U8(218), |
+ B(Jump), U8(208), |
B(LdaNamedProperty), R(4), U8(8), U8(16), |
B(Star), R(3), |
B(TestUndetectable), |
- B(JumpIfFalse), U8(19), |
- B(LdaTrue), |
- B(Star), R(17), |
- B(Mov), R(1), R(16), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(16), U8(2), |
- B(Star), R(13), |
- B(LdaZero), |
- B(Star), R(12), |
- B(JumpConstant), U8(16), |
- B(Mov), R(3), R(16), |
- B(Mov), R(4), R(17), |
- B(Mov), R(1), R(18), |
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(16), U8(3), |
+ B(JumpIfFalse), U8(9), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(9), U8(1), |
+ B(Ldar), R(1), |
+ /* 54 S> */ B(Return), |
+ B(Mov), R(3), R(12), |
+ B(Mov), R(4), R(13), |
+ B(Mov), R(1), R(14), |
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(3), |
B(Star), R(3), |
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
@@ -611,53 +483,53 @@ bytecodes: [ |
B(JumpIfFalse), U8(4), |
B(Jump), U8(96), |
B(LdaZero), |
- B(Star), R(16), |
+ B(Star), R(12), |
B(LdaSmi), I8(1), |
- B(TestEqualStrict), R(16), U8(26), |
+ B(TestEqualStrict), R(12), U8(26), |
B(JumpIfFalse), U8(61), |
B(Ldar), R(6), |
B(TestTypeOf), U8(5), |
B(JumpIfFalse), U8(4), |
B(Jump), U8(18), |
B(Wide), B(LdaSmi), I16(130), |
- B(Star), R(16), |
+ B(Star), R(12), |
B(LdaConstant), U8(10), |
- B(Star), R(17), |
- B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2), |
+ B(Star), R(13), |
+ B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), |
B(Throw), |
- B(Mov), R(context), R(16), |
- B(Mov), R(6), R(17), |
- B(Mov), R(4), R(18), |
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(17), U8(2), |
+ B(Mov), R(context), R(12), |
+ B(Mov), R(6), R(13), |
+ B(Mov), R(4), R(14), |
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2), |
B(Jump), U8(20), |
- B(Star), R(17), |
+ B(Star), R(13), |
B(Ldar), R(closure), |
- B(CreateCatchContext), R(17), U8(11), U8(12), |
- B(Star), R(16), |
+ B(CreateCatchContext), R(13), U8(11), U8(12), |
+ B(Star), R(12), |
B(LdaTheHole), |
B(SetPendingMessage), |
- B(Ldar), R(16), |
- B(PushContext), R(17), |
- B(PopContext), R(17), |
+ B(Ldar), R(12), |
+ B(PushContext), R(13), |
+ B(PopContext), R(13), |
B(Jump), U8(27), |
- B(Mov), R(6), R(16), |
- B(Mov), R(4), R(17), |
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(16), U8(2), |
+ B(Mov), R(6), R(12), |
+ B(Mov), R(4), R(13), |
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), |
B(Star), R(7), |
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(7), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
B(Jump), U8(7), |
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(7), U8(1), |
B(Wide), B(LdaSmi), I16(144), |
- B(Star), R(16), |
+ B(Star), R(12), |
B(LdaConstant), U8(10), |
- B(Star), R(17), |
- B(CallRuntime), U16(Runtime::kNewTypeError), R(16), U8(2), |
+ B(Star), R(13), |
+ B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), |
B(Throw), |
- B(Mov), R(5), R(16), |
- B(Mov), R(4), R(17), |
- B(Mov), R(1), R(18), |
- B(InvokeIntrinsic), U8(Runtime::k_Call), R(16), U8(3), |
+ B(Mov), R(5), R(12), |
+ B(Mov), R(4), R(13), |
+ B(Mov), R(1), R(14), |
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(3), |
B(Star), R(3), |
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1), |
B(JumpIfToBooleanFalse), U8(4), |
@@ -668,11 +540,11 @@ bytecodes: [ |
B(JumpIfToBooleanFalse), U8(4), |
B(Jump), U8(45), |
B(LdaSmi), I8(1), |
- B(Mov), R(3), R(15), |
- B(SuspendGenerator), R(9), R(0), U8(15), U8(1), |
- B(Ldar), R(15), |
+ B(Mov), R(3), R(11), |
+ B(SuspendGenerator), R(9), R(0), U8(11), U8(1), |
+ B(Ldar), R(11), |
/* 54 S> */ B(Return), |
- B(RestoreGeneratorRegisters), R(9), R(0), U8(15), |
+ B(RestoreGeneratorRegisters), R(9), R(0), U8(11), |
B(LdaSmi), I8(-2), |
B(Star), R(10), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(9), U8(1), |
@@ -680,60 +552,31 @@ bytecodes: [ |
B(Star), R(1), |
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1), |
B(Star), R(2), |
- B(Wide), B(JumpLoop), U16(337), I16(0), |
+ B(Wide), B(JumpLoop), U16(327), I16(0), |
B(LdaSmi), I8(1), |
B(TestEqualStrict), R(2), U8(31), |
- B(JumpIfFalse), U8(22), |
+ B(JumpIfFalse), U8(15), |
B(LdaNamedProperty), R(3), U8(14), U8(32), |
- B(Star), R(15), |
- B(LdaTrue), |
- B(Star), R(16), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(15), U8(2), |
- B(Star), R(13), |
- B(LdaZero), |
- B(Star), R(12), |
- B(Jump), U8(37), |
+ B(Star), R(11), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(9), U8(1), |
+ B(Ldar), R(11), |
+ /* 54 S> */ B(Return), |
B(LdaNamedProperty), R(3), U8(14), U8(34), |
B(Star), R(8), |
B(LdaUndefined), |
- B(Star), R(15), |
- B(LdaTrue), |
- B(Star), R(16), |
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(15), U8(2), |
- B(Star), R(13), |
- B(LdaZero), |
- B(Star), R(12), |
- B(Jump), U8(14), |
- B(LdaSmi), I8(-1), |
- B(Star), R(12), |
- B(Jump), U8(8), |
- B(Star), R(13), |
- B(LdaSmi), I8(1), |
- B(Star), R(12), |
- B(LdaTheHole), |
- B(SetPendingMessage), |
- B(Star), R(14), |
- B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(0), U8(1), |
- B(Ldar), R(14), |
- B(SetPendingMessage), |
- B(Ldar), R(12), |
- B(SwitchOnSmiNoFeedback), U8(17), U8(2), I8(0), |
- B(Jump), U8(8), |
- B(Ldar), R(13), |
- /* 54 S> */ B(Return), |
- B(Ldar), R(13), |
- B(ReThrow), |
- B(LdaUndefined), |
+ B(Star), R(11), |
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(9), U8(1), |
+ B(Ldar), R(11), |
/* 54 S> */ B(Return), |
] |
constant pool: [ |
- Smi [47], |
- Smi [127], |
- Smi [24], |
+ Smi [45], |
+ Smi [115], |
+ Smi [14], |
Smi [7], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["g"], |
SYMBOL_TYPE, |
- Smi [310], |
+ Smi [300], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["throw"], |
@@ -742,13 +585,8 @@ constant pool: [ |
FIXED_ARRAY_TYPE, |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
- Smi [444], |
- Smi [305], |
- Smi [6], |
- Smi [9], |
] |
handlers: [ |
- [52, 536, 542], |
- [332, 342, 344], |
+ [310, 320, 322], |
] |