Index: test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden b/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden |
index bea38c7ea5021ba01fe922a20a6387a40e64ed09..39c334985fe977d84213ef4fb1bef7fc4ea23b30 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden |
@@ -11,17 +11,17 @@ snippet: " |
" |
frame size: 2 |
parameter count: 1 |
-bytecode array length: 23 |
+bytecode array length: 19 |
bytecodes: [ |
B(CreateFunctionContext), U8(1), |
B(PushContext), R(1), |
B(LdaTheHole), |
- B(StaContextSlot), R(context), U8(4), U8(0), |
+ B(StaCurrentContextSlot), U8(4), |
B(CreateClosure), U8(0), U8(2), |
B(Star), R(0), |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(10), |
- /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
+ /* 42 E> */ B(StaCurrentContextSlot), U8(4), |
B(LdaUndefined), |
/* 72 S> */ B(Return), |
] |
@@ -37,18 +37,18 @@ snippet: " |
" |
frame size: 2 |
parameter count: 1 |
-bytecode array length: 26 |
+bytecode array length: 20 |
bytecodes: [ |
B(CreateFunctionContext), U8(1), |
B(PushContext), R(1), |
B(LdaTheHole), |
- B(StaContextSlot), R(context), U8(4), U8(0), |
+ B(StaCurrentContextSlot), U8(4), |
B(CreateClosure), U8(0), U8(2), |
B(Star), R(0), |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(10), |
- /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
- /* 72 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
+ /* 42 E> */ B(StaCurrentContextSlot), U8(4), |
+ /* 72 S> */ B(LdaCurrentContextSlot), U8(4), |
/* 82 S> */ B(Return), |
] |
constant pool: [ |
@@ -63,25 +63,25 @@ snippet: " |
" |
frame size: 4 |
parameter count: 1 |
-bytecode array length: 46 |
+bytecode array length: 38 |
bytecodes: [ |
B(CreateFunctionContext), U8(1), |
B(PushContext), R(1), |
B(LdaTheHole), |
- B(StaContextSlot), R(context), U8(4), U8(0), |
+ B(StaCurrentContextSlot), U8(4), |
B(CreateClosure), U8(0), U8(2), |
B(Star), R(0), |
/* 30 E> */ B(StackCheck), |
/* 45 S> */ B(LdaSmi), U8(20), |
B(Star), R(2), |
- /* 45 E> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
+ /* 45 E> */ B(LdaCurrentContextSlot), U8(4), |
B(JumpIfNotHole), U8(11), |
B(LdaConstant), U8(1), |
B(Star), R(3), |
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
B(Ldar), R(2), |
- B(StaContextSlot), R(context), U8(4), U8(0), |
- /* 45 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
+ B(StaCurrentContextSlot), U8(4), |
+ /* 45 E> */ B(StaCurrentContextSlot), U8(4), |
B(LdaUndefined), |
/* 78 S> */ B(Return), |
] |
@@ -98,19 +98,19 @@ snippet: " |
" |
frame size: 2 |
parameter count: 1 |
-bytecode array length: 29 |
+bytecode array length: 23 |
bytecodes: [ |
B(CreateFunctionContext), U8(1), |
B(PushContext), R(1), |
B(LdaTheHole), |
- B(StaContextSlot), R(context), U8(4), U8(0), |
+ B(StaCurrentContextSlot), U8(4), |
B(CreateClosure), U8(0), U8(2), |
B(Star), R(0), |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(10), |
- /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
+ /* 42 E> */ B(StaCurrentContextSlot), U8(4), |
/* 46 S> */ B(LdaSmi), U8(20), |
- /* 48 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
+ /* 48 E> */ B(StaCurrentContextSlot), U8(4), |
B(LdaUndefined), |
/* 80 S> */ B(Return), |
] |