| Index: test/cctest/interpreter/bytecode_expectations/Modules.golden
|
| diff --git a/test/cctest/interpreter/bytecode_expectations/Modules.golden b/test/cctest/interpreter/bytecode_expectations/Modules.golden
|
| index f8c4df6b3047081b2c0dc534f776ec99432a29a1..b6f7396db4145e69465127db4a181de9c3ca79f2 100644
|
| --- a/test/cctest/interpreter/bytecode_expectations/Modules.golden
|
| +++ b/test/cctest/interpreter/bytecode_expectations/Modules.golden
|
| @@ -13,7 +13,7 @@ snippet: "
|
| "
|
| frame size: 9
|
| parameter count: 2
|
| -bytecode array length: 131
|
| +bytecode array length: 135
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -23,7 +23,7 @@ bytecodes: [
|
| B(Star), R(1),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(1), U8(0),
|
| - B(JumpIfTrue), U8(63),
|
| + B(JumpIfTrue), U8(67),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(3),
|
| B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
|
| @@ -38,10 +38,12 @@ bytecodes: [
|
| B(Ldar), R(this),
|
| B(StaCurrentContextSlot), U8(4),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(4),
|
| - B(Mov), R(closure), R(3),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
|
| + B(Star), R(5),
|
| + B(Mov), R(closure), R(4),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -75,6 +77,7 @@ bytecodes: [
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -85,7 +88,7 @@ snippet: "
|
| "
|
| frame size: 9
|
| parameter count: 2
|
| -bytecode array length: 131
|
| +bytecode array length: 135
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -95,7 +98,7 @@ bytecodes: [
|
| B(Star), R(1),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(1), U8(0),
|
| - B(JumpIfTrue), U8(63),
|
| + B(JumpIfTrue), U8(67),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(3),
|
| B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
|
| @@ -110,10 +113,12 @@ bytecodes: [
|
| B(Ldar), R(this),
|
| B(StaCurrentContextSlot), U8(4),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(4),
|
| - B(Mov), R(closure), R(3),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
|
| + B(Star), R(5),
|
| + B(Mov), R(closure), R(4),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -147,6 +152,7 @@ bytecodes: [
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -159,7 +165,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 2
|
| -bytecode array length: 201
|
| +bytecode array length: 209
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -169,7 +175,7 @@ bytecodes: [
|
| B(Star), R(2),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(2), U8(0),
|
| - B(JumpIfTrue), U8(63),
|
| + B(JumpIfTrue), U8(67),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(4),
|
| B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
|
| @@ -184,10 +190,12 @@ bytecodes: [
|
| B(Ldar), R(this),
|
| B(StaCurrentContextSlot), U8(4),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(4),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(5),
|
| - B(Mov), R(closure), R(4),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| + B(Star), R(6),
|
| + B(Mov), R(closure), R(5),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(4),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -220,39 +228,43 @@ bytecodes: [
|
| B(Star), R(5),
|
| /* 32 E> */ B(LdaModuleVariable), I8(-1), U8(0),
|
| B(JumpIfNotHole), U8(11),
|
| - B(LdaConstant), U8(1),
|
| + B(LdaConstant), U8(2),
|
| B(Star), R(6),
|
| B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1),
|
| B(Star), R(4),
|
| B(LdaSmi), I8(42),
|
| B(Star), R(6),
|
| - /* 32 E> */ B(Call), R(4), R(5), U8(2), U8(2),
|
| + /* 32 E> */ B(Call), R(4), R(5), U8(2), U8(4),
|
| B(Ldar), R(closure),
|
| - B(CreateBlockContext), U8(2),
|
| + B(CreateBlockContext), U8(3),
|
| B(PushContext), R(1),
|
| B(LdaTheHole),
|
| B(StaCurrentContextSlot), U8(4),
|
| - /* 47 S> */ B(LdaUndefined),
|
| + /* 47 S> */ B(LdaConstant), U8(4),
|
| + B(Star), R(4),
|
| + B(LdaUndefined),
|
| /* 47 E> */ B(StaCurrentContextSlot), U8(4),
|
| /* 52 S> */ B(LdaUndefined),
|
| B(Star), R(5),
|
| /* 52 E> */ B(LdaModuleVariable), I8(-1), U8(1),
|
| B(JumpIfNotHole), U8(11),
|
| - B(LdaConstant), U8(1),
|
| + B(LdaConstant), U8(2),
|
| B(Star), R(6),
|
| B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1),
|
| B(Star), R(4),
|
| B(LdaSmi), I8(42),
|
| B(Star), R(6),
|
| - /* 52 E> */ B(Call), R(4), R(5), U8(2), U8(4),
|
| + /* 52 E> */ B(Call), R(4), R(5), U8(2), U8(8),
|
| B(PopContext), R(1),
|
| B(LdaUndefined),
|
| /* 64 S> */ B(Return),
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"],
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -265,7 +277,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 2
|
| -bytecode array length: 166
|
| +bytecode array length: 178
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -275,7 +287,7 @@ bytecodes: [
|
| B(Star), R(2),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(2), U8(0),
|
| - B(JumpIfTrue), U8(63),
|
| + B(JumpIfTrue), U8(67),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(4),
|
| B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
|
| @@ -290,10 +302,12 @@ bytecodes: [
|
| B(Ldar), R(this),
|
| B(StaCurrentContextSlot), U8(4),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(4),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(5),
|
| - B(Mov), R(closure), R(4),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| + B(Star), R(6),
|
| + B(Mov), R(closure), R(5),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(4),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -322,20 +336,24 @@ bytecodes: [
|
| /* 49 S> */ B(Return),
|
| B(Ldar), R(6),
|
| /* 0 E> */ B(Throw),
|
| - /* 17 S> */ B(LdaSmi), I8(42),
|
| + /* 17 S> */ B(LdaConstant), U8(2),
|
| + B(Star), R(4),
|
| + B(LdaSmi), I8(42),
|
| /* 17 E> */ B(StaModuleVariable), I8(1), U8(0),
|
| /* 21 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
| - B(Inc), U8(2),
|
| + B(Inc), U8(6),
|
| /* 24 E> */ B(StaModuleVariable), I8(1), U8(0),
|
| B(Ldar), R(closure),
|
| - B(CreateBlockContext), U8(1),
|
| + B(CreateBlockContext), U8(3),
|
| B(PushContext), R(1),
|
| B(LdaTheHole),
|
| B(StaCurrentContextSlot), U8(4),
|
| - /* 34 S> */ B(LdaUndefined),
|
| + /* 34 S> */ B(LdaConstant), U8(4),
|
| + B(Star), R(4),
|
| + B(LdaUndefined),
|
| /* 34 E> */ B(StaCurrentContextSlot), U8(4),
|
| /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
| - B(Inc), U8(3),
|
| + B(Inc), U8(9),
|
| /* 42 E> */ B(StaModuleVariable), I8(1), U8(1),
|
| B(PopContext), R(1),
|
| B(LdaUndefined),
|
| @@ -343,7 +361,10 @@ bytecodes: [
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -356,7 +377,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 2
|
| -bytecode array length: 170
|
| +bytecode array length: 182
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -366,7 +387,7 @@ bytecodes: [
|
| B(Star), R(2),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(2), U8(0),
|
| - B(JumpIfTrue), U8(67),
|
| + B(JumpIfTrue), U8(71),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(4),
|
| B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
|
| @@ -383,10 +404,12 @@ bytecodes: [
|
| B(LdaTheHole),
|
| B(StaModuleVariable), I8(1), U8(0),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(4),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(5),
|
| - B(Mov), R(closure), R(4),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| + B(Star), R(6),
|
| + B(Mov), R(closure), R(5),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(4),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -415,20 +438,24 @@ bytecodes: [
|
| /* 49 S> */ B(Return),
|
| B(Ldar), R(6),
|
| /* 0 E> */ B(Throw),
|
| - /* 17 S> */ B(LdaSmi), I8(42),
|
| + /* 17 S> */ B(LdaConstant), U8(2),
|
| + B(Star), R(4),
|
| + B(LdaSmi), I8(42),
|
| /* 17 E> */ B(StaModuleVariable), I8(1), U8(0),
|
| /* 21 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
| - B(Inc), U8(2),
|
| + B(Inc), U8(6),
|
| /* 24 E> */ B(StaModuleVariable), I8(1), U8(0),
|
| B(Ldar), R(closure),
|
| - B(CreateBlockContext), U8(1),
|
| + B(CreateBlockContext), U8(3),
|
| B(PushContext), R(1),
|
| B(LdaTheHole),
|
| B(StaCurrentContextSlot), U8(4),
|
| - /* 34 S> */ B(LdaUndefined),
|
| + /* 34 S> */ B(LdaConstant), U8(4),
|
| + B(Star), R(4),
|
| + B(LdaUndefined),
|
| /* 34 E> */ B(StaCurrentContextSlot), U8(4),
|
| /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
| - B(Inc), U8(3),
|
| + B(Inc), U8(9),
|
| /* 42 E> */ B(StaModuleVariable), I8(1), U8(1),
|
| B(PopContext), R(1),
|
| B(LdaUndefined),
|
| @@ -436,7 +463,10 @@ bytecodes: [
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -449,7 +479,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 2
|
| -bytecode array length: 174
|
| +bytecode array length: 186
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -459,7 +489,7 @@ bytecodes: [
|
| B(Star), R(2),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(2), U8(0),
|
| - B(JumpIfTrue), U8(67),
|
| + B(JumpIfTrue), U8(71),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(4),
|
| B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
|
| @@ -476,10 +506,12 @@ bytecodes: [
|
| B(LdaTheHole),
|
| B(StaModuleVariable), I8(1), U8(0),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(4),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(5),
|
| - B(Mov), R(closure), R(4),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| + B(Star), R(6),
|
| + B(Mov), R(closure), R(5),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(4),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -508,20 +540,24 @@ bytecodes: [
|
| /* 51 S> */ B(Return),
|
| B(Ldar), R(6),
|
| /* 0 E> */ B(Throw),
|
| - /* 19 S> */ B(LdaSmi), I8(42),
|
| + /* 19 S> */ B(LdaConstant), U8(2),
|
| + B(Star), R(4),
|
| + B(LdaSmi), I8(42),
|
| /* 19 E> */ B(StaModuleVariable), I8(1), U8(0),
|
| /* 23 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
| - B(Inc), U8(2),
|
| + B(Inc), U8(6),
|
| /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
|
| B(Ldar), R(closure),
|
| - B(CreateBlockContext), U8(1),
|
| + B(CreateBlockContext), U8(3),
|
| B(PushContext), R(1),
|
| B(LdaTheHole),
|
| B(StaCurrentContextSlot), U8(4),
|
| - /* 36 S> */ B(LdaUndefined),
|
| + /* 36 S> */ B(LdaConstant), U8(4),
|
| + B(Star), R(4),
|
| + B(LdaUndefined),
|
| /* 36 E> */ B(StaCurrentContextSlot), U8(4),
|
| /* 41 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
| - B(Inc), U8(3),
|
| + B(Inc), U8(9),
|
| /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
|
| B(PopContext), R(1),
|
| B(LdaUndefined),
|
| @@ -529,7 +565,10 @@ bytecodes: [
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -540,7 +579,7 @@ snippet: "
|
| "
|
| frame size: 9
|
| parameter count: 2
|
| -bytecode array length: 142
|
| +bytecode array length: 150
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -550,7 +589,7 @@ bytecodes: [
|
| B(Star), R(1),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(1), U8(0),
|
| - B(JumpIfTrue), U8(67),
|
| + B(JumpIfTrue), U8(71),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(3),
|
| B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
|
| @@ -567,10 +606,12 @@ bytecodes: [
|
| B(LdaTheHole),
|
| B(StaModuleVariable), I8(1), U8(0),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(4),
|
| - B(Mov), R(closure), R(3),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
|
| + B(Star), R(5),
|
| + B(Mov), R(closure), R(4),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -599,13 +640,17 @@ bytecodes: [
|
| /* 32 S> */ B(Return),
|
| B(Ldar), R(5),
|
| /* 0 E> */ B(Throw),
|
| - B(CreateClosure), U8(1), U8(2), U8(0),
|
| + B(LdaConstant), U8(2),
|
| + B(Star), R(3),
|
| + B(CreateClosure), U8(3), U8(4), U8(0),
|
| B(StaModuleVariable), I8(1), U8(0),
|
| B(LdaUndefined),
|
| /* 32 S> */ B(Return),
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["*default*"],
|
| SHARED_FUNCTION_INFO_TYPE,
|
| ]
|
| handlers: [
|
| @@ -615,9 +660,9 @@ handlers: [
|
| snippet: "
|
| export default (class {});
|
| "
|
| -frame size: 9
|
| +frame size: 10
|
| parameter count: 2
|
| -bytecode array length: 179
|
| +bytecode array length: 191
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -627,7 +672,7 @@ bytecodes: [
|
| B(Star), R(1),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(1), U8(0),
|
| - B(JumpIfTrue), U8(67),
|
| + B(JumpIfTrue), U8(71),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(3),
|
| B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
|
| @@ -644,10 +689,12 @@ bytecodes: [
|
| B(LdaTheHole),
|
| B(StaModuleVariable), I8(1), U8(0),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(4),
|
| - B(Mov), R(closure), R(3),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
|
| + B(Star), R(5),
|
| + B(Mov), R(closure), R(4),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -676,19 +723,23 @@ bytecodes: [
|
| /* 26 S> */ B(Return),
|
| B(Ldar), R(5),
|
| /* 0 E> */ B(Throw),
|
| - /* 16 S> */ B(CreateClosure), U8(1), U8(2), U8(0),
|
| + B(LdaConstant), U8(2),
|
| B(Star), R(3),
|
| - B(LdaTheHole),
|
| + /* 16 S> */ B(LdaConstant), U8(3),
|
| B(Star), R(4),
|
| - B(LdaSmi), I8(16),
|
| + B(CreateClosure), U8(4), U8(4), U8(0),
|
| + B(Star), R(5),
|
| + B(LdaTheHole),
|
| B(Star), R(6),
|
| + B(LdaSmi), I8(16),
|
| + B(Star), R(8),
|
| B(LdaSmi), I8(24),
|
| - B(Star), R(7),
|
| - B(Mov), R(3), R(5),
|
| - B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
|
| - B(Star), R(4),
|
| - B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U8(1),
|
| - B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
|
| + B(Star), R(9),
|
| + B(Mov), R(5), R(7),
|
| + B(CallRuntime), U16(Runtime::kDefineClass), R(6), U8(4),
|
| + B(Star), R(6),
|
| + B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(5), U8(1),
|
| + B(CallRuntime), U16(Runtime::kToFastProperties), R(5), U8(1),
|
| B(StaCurrentContextSlot), U8(6),
|
| B(LdaCurrentContextSlot), U8(6),
|
| /* 16 E> */ B(StaModuleVariable), I8(1), U8(0),
|
| @@ -697,6 +748,9 @@ bytecodes: [
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["*default*"],
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
|
| SHARED_FUNCTION_INFO_TYPE,
|
| ]
|
| handlers: [
|
| @@ -708,7 +762,7 @@ snippet: "
|
| "
|
| frame size: 9
|
| parameter count: 2
|
| -bytecode array length: 131
|
| +bytecode array length: 135
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -718,7 +772,7 @@ bytecodes: [
|
| B(Star), R(1),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(1), U8(0),
|
| - B(JumpIfTrue), U8(63),
|
| + B(JumpIfTrue), U8(67),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(3),
|
| B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
|
| @@ -733,10 +787,12 @@ bytecodes: [
|
| B(Ldar), R(this),
|
| B(StaCurrentContextSlot), U8(4),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(4),
|
| - B(Mov), R(closure), R(3),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
|
| + B(Star), R(5),
|
| + B(Mov), R(closure), R(4),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -770,6 +826,7 @@ bytecodes: [
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -780,7 +837,7 @@ snippet: "
|
| "
|
| frame size: 9
|
| parameter count: 2
|
| -bytecode array length: 131
|
| +bytecode array length: 135
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -790,7 +847,7 @@ bytecodes: [
|
| B(Star), R(1),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(1), U8(0),
|
| - B(JumpIfTrue), U8(63),
|
| + B(JumpIfTrue), U8(67),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(3),
|
| B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
|
| @@ -805,10 +862,12 @@ bytecodes: [
|
| B(Ldar), R(this),
|
| B(StaCurrentContextSlot), U8(4),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(4),
|
| - B(Mov), R(closure), R(3),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
|
| + B(Star), R(5),
|
| + B(Mov), R(closure), R(4),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -842,6 +901,7 @@ bytecodes: [
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -853,7 +913,7 @@ snippet: "
|
| "
|
| frame size: 9
|
| parameter count: 2
|
| -bytecode array length: 170
|
| +bytecode array length: 174
|
| bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(JumpIfUndefined), U8(28),
|
| @@ -863,7 +923,7 @@ bytecodes: [
|
| B(Star), R(1),
|
| B(LdaZero),
|
| B(TestEqualStrict), R(1), U8(0),
|
| - B(JumpIfTrue), U8(73),
|
| + B(JumpIfTrue), U8(77),
|
| B(LdaSmi), I8(78),
|
| B(Star), R(3),
|
| B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
|
| @@ -882,10 +942,12 @@ bytecodes: [
|
| B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1),
|
| B(StaCurrentContextSlot), U8(6),
|
| /* 0 E> */ B(StackCheck),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(4),
|
| - B(Star), R(4),
|
| - B(Mov), R(closure), R(3),
|
| - /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
|
| + B(Star), R(5),
|
| + B(Mov), R(closure), R(4),
|
| + /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8(2),
|
| B(StaCurrentContextSlot), U8(5),
|
| B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(5),
|
| @@ -916,20 +978,21 @@ bytecodes: [
|
| /* 0 E> */ B(Throw),
|
| /* 27 S> */ B(LdaImmutableCurrentContextSlot), U8(6),
|
| B(Star), R(4),
|
| - /* 30 E> */ B(LdaNamedProperty), R(4), U8(1), U8(4),
|
| + /* 30 E> */ B(LdaNamedProperty), R(4), U8(2), U8(6),
|
| B(Star), R(3),
|
| B(LdaImmutableCurrentContextSlot), U8(6),
|
| B(Star), R(5),
|
| B(LdaImmutableCurrentContextSlot), U8(6),
|
| B(Star), R(6),
|
| - /* 41 E> */ B(LdaNamedProperty), R(6), U8(2), U8(6),
|
| + /* 41 E> */ B(LdaNamedProperty), R(6), U8(3), U8(8),
|
| B(Star), R(6),
|
| - /* 31 E> */ B(CallProperty), R(3), R(4), U8(3), U8(2),
|
| + /* 31 E> */ B(CallProperty), R(3), R(4), U8(3), U8(4),
|
| B(LdaUndefined),
|
| /* 45 S> */ B(Return),
|
| ]
|
| constant pool: [
|
| FIXED_ARRAY_TYPE,
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE [".generator_object"],
|
| ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
|
| ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
| ]
|
|
|