summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/interpreter/bytecode_expectations/Modules.golden
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/interpreter/bytecode_expectations/Modules.golden')
-rw-r--r--deps/v8/test/cctest/interpreter/bytecode_expectations/Modules.golden453
1 files changed, 237 insertions, 216 deletions
diff --git a/deps/v8/test/cctest/interpreter/bytecode_expectations/Modules.golden b/deps/v8/test/cctest/interpreter/bytecode_expectations/Modules.golden
index 62dbeb7ada..7f13b4a3d5 100644
--- a/deps/v8/test/cctest/interpreter/bytecode_expectations/Modules.golden
+++ b/deps/v8/test/cctest/interpreter/bytecode_expectations/Modules.golden
@@ -13,7 +13,7 @@ snippet: "
"
frame size: 8
parameter count: 2
-bytecode array length: 133
+bytecode array length: 125
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -21,8 +21,8 @@ bytecodes: [
B(Star), R(1),
B(LdaZero),
B(TestEqualStrict), R(1), U8(0),
- B(JumpIfTrue), U8(71),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(63),
+ B(LdaSmi), U8(77),
B(Star), R(2),
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
B(LdaSmi), U8(-2),
@@ -34,15 +34,16 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3),
- B(Ldar), R(3),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(3),
B(Mov), R(closure), R(2),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(2),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(3),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(3),
B(LdaZero),
B(SuspendGenerator), R(3),
B(Ldar), R(2),
@@ -82,7 +83,7 @@ snippet: "
"
frame size: 8
parameter count: 2
-bytecode array length: 133
+bytecode array length: 125
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -90,8 +91,8 @@ bytecodes: [
B(Star), R(1),
B(LdaZero),
B(TestEqualStrict), R(1), U8(0),
- B(JumpIfTrue), U8(71),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(63),
+ B(LdaSmi), U8(77),
B(Star), R(2),
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
B(LdaSmi), U8(-2),
@@ -103,15 +104,16 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3),
- B(Ldar), R(3),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(3),
B(Mov), R(closure), R(2),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(2),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(3),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(3),
B(LdaZero),
B(SuspendGenerator), R(3),
B(Ldar), R(2),
@@ -153,7 +155,7 @@ snippet: "
"
frame size: 9
parameter count: 2
-bytecode array length: 223
+bytecode array length: 195
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -161,8 +163,8 @@ bytecodes: [
B(Star), R(2),
B(LdaZero),
B(TestEqualStrict), R(2), U8(0),
- B(JumpIfTrue), U8(71),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(63),
+ B(LdaSmi), U8(77),
B(Star), R(3),
B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
B(LdaSmi), U8(-2),
@@ -174,15 +176,16 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(4),
- B(Ldar), R(4),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(4),
B(Mov), R(closure), R(3),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(3),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(4),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(4),
B(LdaZero),
B(SuspendGenerator), R(4),
B(Ldar), R(3),
@@ -207,37 +210,31 @@ bytecodes: [
/* 64 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
- /* 32 S> */ B(LdrUndefined), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(6),
- B(LdaZero),
- B(Star), R(7),
- /* 32 E> */ B(CallRuntime), U16(Runtime::kLoadModuleImport), R(6), U8(2),
+ /* 32 S> */ B(LdaUndefined),
+ B(Star), R(4),
+ /* 32 E> */ B(LdaModuleVariable), U8(-1), U8(0),
B(JumpIfNotHole), U8(11),
- B(LdaConstant), U8(2),
- B(Star), R(8),
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(8), U8(1),
+ B(LdaConstant), U8(1),
+ B(Star), R(5),
+ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
B(Star), R(3),
B(LdaSmi), U8(42),
B(Star), R(5),
/* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2),
B(Ldar), R(closure),
- B(CreateBlockContext), U8(3),
+ B(CreateBlockContext), U8(2),
B(PushContext), R(1),
B(LdaTheHole),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 47 S> */ B(LdaUndefined),
- /* 47 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
- /* 52 S> */ B(LdrUndefined), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(6),
- B(LdaZero),
- B(Star), R(7),
- /* 52 E> */ B(CallRuntime), U16(Runtime::kLoadModuleImport), R(6), U8(2),
+ /* 47 E> */ B(StaCurrentContextSlot), U8(4),
+ /* 52 S> */ B(LdaUndefined),
+ B(Star), R(4),
+ /* 52 E> */ B(LdaModuleVariable), U8(-1), U8(1),
B(JumpIfNotHole), U8(11),
- B(LdaConstant), U8(2),
- B(Star), R(8),
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(8), U8(1),
+ B(LdaConstant), U8(1),
+ B(Star), R(5),
+ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
B(Star), R(3),
B(LdaSmi), U8(42),
B(Star), R(5),
@@ -248,7 +245,6 @@ bytecodes: [
]
constant pool: [
FIXED_ARRAY_TYPE,
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"],
FIXED_ARRAY_TYPE,
]
@@ -263,7 +259,7 @@ snippet: "
"
frame size: 9
parameter count: 2
-bytecode array length: 208
+bytecode array length: 160
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -271,8 +267,8 @@ bytecodes: [
B(Star), R(2),
B(LdaZero),
B(TestEqualStrict), R(2), U8(0),
- B(JumpIfTrue), U8(71),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(63),
+ B(LdaSmi), U8(77),
B(Star), R(3),
B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
B(LdaSmi), U8(-2),
@@ -284,15 +280,16 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(4),
- B(Ldar), R(4),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(4),
B(Mov), R(closure), R(3),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(3),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(4),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(4),
B(LdaZero),
B(SuspendGenerator), R(4),
B(Ldar), R(3),
@@ -318,40 +315,26 @@ bytecodes: [
B(Ldar), R(5),
/* 0 E> */ B(Throw),
/* 17 S> */ B(LdaSmi), U8(42),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- /* 17 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
- /* 21 S> */ B(LdaConstant), U8(1),
- B(Star), R(3),
- B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
+ /* 17 E> */ B(StaModuleVariable), U8(1), U8(0),
+ /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0),
B(Inc), U8(2),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
+ /* 24 E> */ B(StaModuleVariable), U8(1), U8(0),
B(Ldar), R(closure),
- B(CreateBlockContext), U8(2),
+ B(CreateBlockContext), U8(1),
B(PushContext), R(1),
B(LdaTheHole),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 34 S> */ B(LdaUndefined),
- /* 34 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
- /* 39 S> */ B(LdaConstant), U8(1),
- B(Star), R(3),
- B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
+ /* 34 E> */ B(StaCurrentContextSlot), U8(4),
+ /* 39 S> */ B(LdaModuleVariable), U8(1), U8(1),
B(Inc), U8(3),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
+ /* 42 E> */ B(StaModuleVariable), U8(1), U8(1),
B(PopContext), R(1),
B(LdaUndefined),
/* 49 S> */ B(Return),
]
constant pool: [
FIXED_ARRAY_TYPE,
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
FIXED_ARRAY_TYPE,
]
handlers: [
@@ -365,7 +348,7 @@ snippet: "
"
frame size: 9
parameter count: 2
-bytecode array length: 242
+bytecode array length: 164
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -373,8 +356,8 @@ bytecodes: [
B(Star), R(2),
B(LdaZero),
B(TestEqualStrict), R(2), U8(0),
- B(JumpIfTrue), U8(83),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(67),
+ B(LdaSmi), U8(77),
B(Star), R(3),
B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
B(LdaSmi), U8(-2),
@@ -386,20 +369,18 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
B(LdaTheHole),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
+ B(StaModuleVariable), U8(1), U8(0),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(4),
- B(Ldar), R(4),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(4),
B(Mov), R(closure), R(3),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(3),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(4),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(4),
B(LdaZero),
B(SuspendGenerator), R(4),
B(Ldar), R(3),
@@ -425,48 +406,26 @@ bytecodes: [
B(Ldar), R(5),
/* 0 E> */ B(Throw),
/* 17 S> */ B(LdaSmi), U8(42),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- /* 17 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
- /* 21 S> */ B(LdaConstant), U8(1),
- B(Star), R(3),
- B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
- B(JumpIfNotHole), U8(11),
- B(LdaConstant), U8(1),
- B(Star), R(4),
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
+ /* 17 E> */ B(StaModuleVariable), U8(1), U8(0),
+ /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0),
B(Inc), U8(2),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
+ /* 24 E> */ B(StaModuleVariable), U8(1), U8(0),
B(Ldar), R(closure),
- B(CreateBlockContext), U8(2),
+ B(CreateBlockContext), U8(1),
B(PushContext), R(1),
B(LdaTheHole),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 34 S> */ B(LdaUndefined),
- /* 34 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
- /* 39 S> */ B(LdaConstant), U8(1),
- B(Star), R(3),
- B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
- B(JumpIfNotHole), U8(11),
- B(LdaConstant), U8(1),
- B(Star), R(4),
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
+ /* 34 E> */ B(StaCurrentContextSlot), U8(4),
+ /* 39 S> */ B(LdaModuleVariable), U8(1), U8(1),
B(Inc), U8(3),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
+ /* 42 E> */ B(StaModuleVariable), U8(1), U8(1),
B(PopContext), R(1),
B(LdaUndefined),
/* 49 S> */ B(Return),
]
constant pool: [
FIXED_ARRAY_TYPE,
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
FIXED_ARRAY_TYPE,
]
handlers: [
@@ -480,7 +439,7 @@ snippet: "
"
frame size: 9
parameter count: 2
-bytecode array length: 230
+bytecode array length: 168
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -488,8 +447,8 @@ bytecodes: [
B(Star), R(2),
B(LdaZero),
B(TestEqualStrict), R(2), U8(0),
- B(JumpIfTrue), U8(83),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(67),
+ B(LdaSmi), U8(77),
B(Star), R(3),
B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
B(LdaSmi), U8(-2),
@@ -501,20 +460,18 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
B(LdaTheHole),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
+ B(StaModuleVariable), U8(1), U8(0),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(4),
- B(Ldar), R(4),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(4),
B(Mov), R(closure), R(3),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(3),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(4),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(4),
B(LdaZero),
B(SuspendGenerator), R(4),
B(Ldar), R(3),
@@ -540,33 +497,18 @@ bytecodes: [
B(Ldar), R(5),
/* 0 E> */ B(Throw),
/* 19 S> */ B(LdaSmi), U8(42),
- B(Star), R(4),
- B(LdaConstant), U8(1),
- B(Star), R(3),
- /* 19 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
- /* 23 S> */ B(LdaConstant), U8(1),
- B(Star), R(3),
- B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
- B(JumpIfNotHole), U8(11),
- B(LdaConstant), U8(1),
- B(Star), R(4),
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
+ /* 19 E> */ B(StaModuleVariable), U8(1), U8(0),
+ /* 23 S> */ B(LdaModuleVariable), U8(1), U8(0),
B(Inc), U8(2),
/* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
B(Ldar), R(closure),
- B(CreateBlockContext), U8(2),
+ B(CreateBlockContext), U8(1),
B(PushContext), R(1),
B(LdaTheHole),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 36 S> */ B(LdaUndefined),
- /* 36 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
- /* 41 S> */ B(LdaConstant), U8(1),
- B(Star), R(3),
- B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
- B(JumpIfNotHole), U8(11),
- B(LdaConstant), U8(1),
- B(Star), R(4),
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
+ /* 36 E> */ B(StaCurrentContextSlot), U8(4),
+ /* 41 S> */ B(LdaModuleVariable), U8(1), U8(1),
B(Inc), U8(3),
/* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
B(PopContext), R(1),
@@ -575,7 +517,6 @@ bytecodes: [
]
constant pool: [
FIXED_ARRAY_TYPE,
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
FIXED_ARRAY_TYPE,
]
handlers: [
@@ -587,7 +528,7 @@ snippet: "
"
frame size: 8
parameter count: 2
-bytecode array length: 159
+bytecode array length: 135
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -595,8 +536,8 @@ bytecodes: [
B(Star), R(1),
B(LdaZero),
B(TestEqualStrict), R(1), U8(0),
- B(JumpIfTrue), U8(83),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(67),
+ B(LdaSmi), U8(77),
B(Star), R(2),
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
B(LdaSmi), U8(-2),
@@ -608,20 +549,18 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
B(LdaTheHole),
- B(Star), R(3),
- B(LdaConstant), U8(1),
- B(Star), R(2),
- B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2),
+ B(StaModuleVariable), U8(1), U8(0),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3),
- B(Ldar), R(3),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(3),
B(Mov), R(closure), R(2),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(2),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(3),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(3),
B(LdaZero),
B(SuspendGenerator), R(3),
B(Ldar), R(2),
@@ -646,17 +585,13 @@ bytecodes: [
/* 32 S> */ B(Return),
B(Ldar), R(4),
/* 0 E> */ B(Throw),
- B(CreateClosure), U8(2), U8(0),
- B(Star), R(3),
- B(LdaConstant), U8(1),
- B(Star), R(2),
- B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2),
+ B(CreateClosure), U8(1), U8(0),
+ B(StaModuleVariable), U8(1), U8(0),
B(LdaUndefined),
/* 32 S> */ B(Return),
]
constant pool: [
FIXED_ARRAY_TYPE,
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["default"],
SHARED_FUNCTION_INFO_TYPE,
]
handlers: [
@@ -668,7 +603,7 @@ snippet: "
"
frame size: 8
parameter count: 2
-bytecode array length: 196
+bytecode array length: 170
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -676,8 +611,8 @@ bytecodes: [
B(Star), R(1),
B(LdaZero),
B(TestEqualStrict), R(1), U8(0),
- B(JumpIfTrue), U8(83),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(67),
+ B(LdaSmi), U8(77),
B(Star), R(2),
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
B(LdaSmi), U8(-2),
@@ -689,20 +624,18 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
B(LdaTheHole),
- B(Star), R(3),
- B(LdaConstant), U8(1),
- B(Star), R(2),
- B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2),
+ B(StaModuleVariable), U8(1), U8(0),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3),
- B(Ldar), R(3),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(3),
B(Mov), R(closure), R(2),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(2),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(3),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(3),
B(LdaZero),
B(SuspendGenerator), R(3),
B(Ldar), R(2),
@@ -729,7 +662,7 @@ bytecodes: [
/* 0 E> */ B(Throw),
/* 16 S> */ B(LdaTheHole),
B(Star), R(2),
- B(CreateClosure), U8(2), U8(0),
+ B(CreateClosure), U8(1), U8(0),
B(Star), R(3),
B(LdaSmi), U8(16),
B(Star), R(4),
@@ -737,19 +670,17 @@ bytecodes: [
B(Star), R(5),
B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4),
B(Star), R(2),
- B(LdrNamedProperty), R(2), U8(3), U8(2), R(3),
+ B(LdaNamedProperty), R(2), U8(2), U8(2),
+ B(Star), R(3),
B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1),
- B(StaContextSlot), R(context), U8(6), U8(0),
- /* 16 E> */ B(LdrContextSlot), R(context), U8(6), U8(0), R(3),
- B(LdaConstant), U8(1),
- B(Star), R(2),
- B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2),
+ B(StaCurrentContextSlot), U8(6),
+ B(LdaCurrentContextSlot), U8(6),
+ /* 16 E> */ B(StaModuleVariable), U8(1), U8(0),
B(LdaUndefined),
/* 26 S> */ B(Return),
]
constant pool: [
FIXED_ARRAY_TYPE,
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["default"],
SHARED_FUNCTION_INFO_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
]
@@ -762,7 +693,7 @@ snippet: "
"
frame size: 8
parameter count: 2
-bytecode array length: 133
+bytecode array length: 125
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -770,8 +701,8 @@ bytecodes: [
B(Star), R(1),
B(LdaZero),
B(TestEqualStrict), R(1), U8(0),
- B(JumpIfTrue), U8(71),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(63),
+ B(LdaSmi), U8(77),
B(Star), R(2),
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
B(LdaSmi), U8(-2),
@@ -783,15 +714,16 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3),
- B(Ldar), R(3),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(3),
B(Mov), R(closure), R(2),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(2),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(3),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(3),
B(LdaZero),
B(SuspendGenerator), R(3),
B(Ldar), R(2),
@@ -831,7 +763,7 @@ snippet: "
"
frame size: 8
parameter count: 2
-bytecode array length: 133
+bytecode array length: 125
bytecodes: [
B(Ldar), R(new_target),
B(JumpIfUndefined), U8(21),
@@ -839,8 +771,8 @@ bytecodes: [
B(Star), R(1),
B(LdaZero),
B(TestEqualStrict), R(1), U8(0),
- B(JumpIfTrue), U8(71),
- B(LdaSmi), U8(76),
+ B(JumpIfTrue), U8(63),
+ B(LdaSmi), U8(77),
B(Star), R(2),
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
B(LdaSmi), U8(-2),
@@ -852,15 +784,16 @@ bytecodes: [
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
B(PushContext), R(0),
B(Ldar), R(this),
- B(StaContextSlot), R(context), U8(4), U8(0),
+ B(StaCurrentContextSlot), U8(4),
/* 0 E> */ B(StackCheck),
- /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3),
- B(Ldar), R(3),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(3),
B(Mov), R(closure), R(2),
- B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
- B(StaContextSlot), R(context), U8(5), U8(0),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
+ B(StaCurrentContextSlot), U8(5),
B(Star), R(2),
- B(LdrContextSlot), R(context), U8(5), U8(0), R(3),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(3),
B(LdaZero),
B(SuspendGenerator), R(3),
B(Ldar), R(2),
@@ -894,3 +827,91 @@ constant pool: [
handlers: [
]
+---
+snippet: "
+ import * as foo from \"bar\"
+ foo.f(foo, foo.x);
+"
+frame size: 8
+parameter count: 2
+bytecode array length: 164
+bytecodes: [
+ B(Ldar), R(new_target),
+ B(JumpIfUndefined), U8(21),
+ B(ResumeGenerator), R(new_target),
+ B(Star), R(1),
+ B(LdaZero),
+ B(TestEqualStrict), R(1), U8(0),
+ B(JumpIfTrue), U8(73),
+ B(LdaSmi), U8(77),
+ B(Star), R(2),
+ B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
+ B(LdaSmi), U8(-2),
+ B(Star), R(1),
+ B(LdaConstant), U8(0),
+ B(Star), R(4),
+ B(Mov), R(arg0), R(2),
+ B(Mov), R(closure), R(3),
+ B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
+ B(PushContext), R(0),
+ B(Ldar), R(this),
+ B(StaCurrentContextSlot), U8(4),
+ B(LdaZero),
+ B(Star), R(2),
+ B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(2), U8(1),
+ B(StaCurrentContextSlot), U8(6),
+ /* 0 E> */ B(StackCheck),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(3),
+ B(Mov), R(closure), R(2),
+ /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8(2),
+ B(StaCurrentContextSlot), U8(5),
+ B(Star), R(2),
+ B(LdaCurrentContextSlot), U8(5),
+ B(Star), R(3),
+ B(LdaZero),
+ B(SuspendGenerator), R(3),
+ B(Ldar), R(2),
+ /* 45 S> */ B(Return),
+ B(LdaSmi), U8(-2),
+ B(Star), R(1),
+ B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
+ B(Star), R(4),
+ B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
+ B(Star), R(5),
+ B(LdaZero),
+ B(TestEqualStrict), R(5), U8(0),
+ B(JumpIfTrue), U8(26),
+ B(LdaSmi), U8(2),
+ B(TestEqualStrict), R(5), U8(0),
+ B(JumpIfTrue), U8(16),
+ B(Jump), U8(2),
+ B(LdaTrue),
+ B(Star), R(7),
+ B(Mov), R(4), R(6),
+ B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8(2),
+ /* 45 S> */ B(Return),
+ B(Ldar), R(4),
+ /* 0 E> */ B(Throw),
+ /* 27 S> */ B(LdaCurrentContextSlot), U8(6),
+ B(Star), R(3),
+ /* 30 E> */ B(LdaNamedProperty), R(3), U8(1), U8(4),
+ B(Star), R(2),
+ B(LdaCurrentContextSlot), U8(6),
+ B(Star), R(4),
+ B(LdaCurrentContextSlot), U8(6),
+ B(Star), R(5),
+ /* 41 E> */ B(LdaNamedProperty), R(5), U8(2), U8(6),
+ B(Star), R(5),
+ /* 31 E> */ B(CallProperty), R(2), R(3), U8(3), U8(2),
+ B(LdaUndefined),
+ /* 45 S> */ B(Return),
+]
+constant pool: [
+ FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
+]
+handlers: [
+]
+