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 c6d6a24cdf7c2540748f88581d6425eab04d3ab4..f8c4df6b3047081b2c0dc534f776ec99432a29a1 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/Modules.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/Modules.golden |
@@ -38,13 +38,13 @@ |
B(Ldar), R(this), |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(4), |
+ 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(StaCurrentContextSlot), U8(5), |
B(Star), R(3), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(4), |
B(LdaZero), |
B(SuspendGenerator), R(4), |
@@ -110,13 +110,13 @@ |
B(Ldar), R(this), |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(4), |
+ 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(StaCurrentContextSlot), U8(5), |
B(Star), R(3), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(4), |
B(LdaZero), |
B(SuspendGenerator), R(4), |
@@ -184,13 +184,13 @@ |
B(Ldar), R(this), |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(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(StaCurrentContextSlot), U8(5), |
B(Star), R(4), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(5), |
B(LdaZero), |
B(SuspendGenerator), R(5), |
@@ -290,13 +290,13 @@ |
B(Ldar), R(this), |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(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(StaCurrentContextSlot), U8(5), |
B(Star), R(4), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(5), |
B(LdaZero), |
B(SuspendGenerator), R(5), |
@@ -383,13 +383,13 @@ |
B(LdaTheHole), |
B(StaModuleVariable), I8(1), U8(0), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(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(StaCurrentContextSlot), U8(5), |
B(Star), R(4), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(5), |
B(LdaZero), |
B(SuspendGenerator), R(5), |
@@ -476,13 +476,13 @@ |
B(LdaTheHole), |
B(StaModuleVariable), I8(1), U8(0), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(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(StaCurrentContextSlot), U8(5), |
B(Star), R(4), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(5), |
B(LdaZero), |
B(SuspendGenerator), R(5), |
@@ -567,13 +567,13 @@ |
B(LdaTheHole), |
B(StaModuleVariable), I8(1), U8(0), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(4), |
+ 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(StaCurrentContextSlot), U8(5), |
B(Star), R(3), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(4), |
B(LdaZero), |
B(SuspendGenerator), R(4), |
@@ -644,13 +644,13 @@ |
B(LdaTheHole), |
B(StaModuleVariable), I8(1), U8(0), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(4), |
+ 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(StaCurrentContextSlot), U8(5), |
B(Star), R(3), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(4), |
B(LdaZero), |
B(SuspendGenerator), R(4), |
@@ -733,13 +733,13 @@ |
B(Ldar), R(this), |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(4), |
+ 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(StaCurrentContextSlot), U8(5), |
B(Star), R(3), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(4), |
B(LdaZero), |
B(SuspendGenerator), R(4), |
@@ -805,13 +805,13 @@ |
B(Ldar), R(this), |
B(StaCurrentContextSlot), U8(4), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(4), |
+ 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(StaCurrentContextSlot), U8(5), |
B(Star), R(3), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(4), |
B(LdaZero), |
B(SuspendGenerator), R(4), |
@@ -882,13 +882,13 @@ |
B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1), |
B(StaCurrentContextSlot), U8(6), |
/* 0 E> */ B(StackCheck), |
- B(LdaCurrentContextSlot), U8(4), |
+ 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(StaCurrentContextSlot), U8(5), |
B(Star), R(3), |
- B(LdaCurrentContextSlot), U8(5), |
+ B(LdaImmutableCurrentContextSlot), U8(5), |
B(Star), R(4), |
B(LdaZero), |
B(SuspendGenerator), R(4), |
@@ -914,13 +914,13 @@ |
/* 45 S> */ B(Return), |
B(Ldar), R(5), |
/* 0 E> */ B(Throw), |
- /* 27 S> */ B(LdaCurrentContextSlot), U8(6), |
+ /* 27 S> */ B(LdaImmutableCurrentContextSlot), U8(6), |
B(Star), R(4), |
/* 30 E> */ B(LdaNamedProperty), R(4), U8(1), U8(4), |
B(Star), R(3), |
- B(LdaCurrentContextSlot), U8(6), |
- B(Star), R(5), |
- B(LdaCurrentContextSlot), U8(6), |
+ 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), |
B(Star), R(6), |