Index: test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden b/test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden |
index f1b696bdfff4b112ea5aa8dbec96d73610e179c4..1d17e2852c8607d3f3ffec516a148267901e0fa1 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden |
@@ -35,9 +35,9 @@ handlers: [ |
snippet: " |
const x = 10; function f1() {return x;} return x; |
" |
-frame size: 3 |
+frame size: 2 |
parameter count: 1 |
-bytecode array length: 37 |
+bytecode array length: 26 |
bytecodes: [ |
B(CreateFunctionContext), U8(1), |
B(PushContext), R(1), |
@@ -49,15 +49,10 @@ bytecodes: [ |
/* 44 S> */ B(LdaSmi), U8(10), |
/* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
/* 74 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
- B(JumpIfNotHole), U8(11), |
- B(LdaConstant), U8(1), |
- B(Star), R(2), |
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
/* 84 S> */ B(Return), |
] |
constant pool: [ |
SHARED_FUNCTION_INFO_TYPE, |
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
] |
handlers: [ |
] |
@@ -100,9 +95,9 @@ handlers: [ |
snippet: " |
const x = 10; x = 20; function f1() {return x;} |
" |
-frame size: 4 |
+frame size: 2 |
parameter count: 1 |
-bytecode array length: 47 |
+bytecode array length: 30 |
bytecodes: [ |
B(CreateFunctionContext), U8(1), |
B(PushContext), R(1), |
@@ -114,19 +109,12 @@ bytecodes: [ |
/* 44 S> */ B(LdaSmi), U8(10), |
/* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
/* 48 S> */ B(LdaSmi), U8(20), |
- B(Star), R(2), |
- /* 50 E> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
- B(JumpIfNotHole), U8(11), |
- B(LdaConstant), U8(1), |
- B(Star), R(3), |
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
- B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0), |
+ /* 50 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0), |
B(LdaUndefined), |
/* 82 S> */ B(Return), |
] |
constant pool: [ |
SHARED_FUNCTION_INFO_TYPE, |
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
] |
handlers: [ |
] |