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..359ec42d6464d1f87104b2cfa2c151a2d9cb6cd3 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/Modules.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/Modules.golden |
@@ -39,9 +39,9 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
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), |
@@ -111,9 +111,9 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
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), |
@@ -185,9 +185,9 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
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), |
@@ -226,7 +226,7 @@ bytecodes: [ |
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(PushContext), R(1), |
@@ -244,7 +244,7 @@ bytecodes: [ |
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), |
@@ -291,9 +291,9 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
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), |
@@ -325,7 +325,7 @@ bytecodes: [ |
/* 17 S> */ 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), |
@@ -335,7 +335,7 @@ bytecodes: [ |
/* 34 S> */ 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), |
@@ -384,9 +384,9 @@ bytecodes: [ |
B(StaModuleVariable), I8(1), U8(0), |
/* 0 E> */ B(StackCheck), |
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), |
@@ -418,7 +418,7 @@ bytecodes: [ |
/* 17 S> */ 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), |
@@ -428,7 +428,7 @@ bytecodes: [ |
/* 34 S> */ 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), |
@@ -477,9 +477,9 @@ bytecodes: [ |
B(StaModuleVariable), I8(1), U8(0), |
/* 0 E> */ B(StackCheck), |
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), |
@@ -511,7 +511,7 @@ bytecodes: [ |
/* 19 S> */ 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), |
@@ -521,7 +521,7 @@ bytecodes: [ |
/* 36 S> */ 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), |
@@ -568,9 +568,9 @@ bytecodes: [ |
B(StaModuleVariable), I8(1), U8(0), |
/* 0 E> */ B(StackCheck), |
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,7 +599,7 @@ bytecodes: [ |
/* 32 S> */ B(Return), |
B(Ldar), R(5), |
/* 0 E> */ B(Throw), |
- B(CreateClosure), U8(1), U8(2), U8(0), |
+ B(CreateClosure), U8(1), U8(4), U8(0), |
B(StaModuleVariable), I8(1), U8(0), |
B(LdaUndefined), |
/* 32 S> */ B(Return), |
@@ -615,7 +615,7 @@ handlers: [ |
snippet: " |
export default (class {}); |
" |
-frame size: 9 |
+frame size: 10 |
parameter count: 2 |
bytecode array length: 179 |
bytecodes: [ |
@@ -645,9 +645,9 @@ bytecodes: [ |
B(StaModuleVariable), I8(1), U8(0), |
/* 0 E> */ B(StackCheck), |
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 +676,19 @@ bytecodes: [ |
/* 26 S> */ B(Return), |
B(Ldar), R(5), |
/* 0 E> */ B(Throw), |
- /* 16 S> */ B(CreateClosure), U8(1), U8(2), U8(0), |
- B(Star), R(3), |
+ /* 16 S> */ B(CreateClosure), U8(1), U8(4), U8(0), |
+ B(Star), R(5), |
B(LdaTheHole), |
- B(Star), R(4), |
- B(LdaSmi), I8(16), |
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), |
@@ -734,9 +734,9 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
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), |
@@ -806,9 +806,9 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
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), |
@@ -883,9 +883,9 @@ bytecodes: [ |
B(StaCurrentContextSlot), U8(6), |
/* 0 E> */ B(StackCheck), |
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,15 +916,15 @@ 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(1), 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(2), 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), |
] |