Index: test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden b/test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden |
index 62dc163a70e1de03891ab9b97c4ef2e5ab0ca132..9c6498178ed30fb4835fd026c68756f1e70043f8 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden |
@@ -69,7 +69,7 @@ snippet: " |
" |
frame size: 4 |
parameter count: 1 |
-bytecode array length: 40 |
+bytecode array length: 48 |
bytecodes: [ |
B(LdaConstant), U8(0), |
B(Star), R(1), |
@@ -85,7 +85,11 @@ bytecodes: [ |
B(LdaSmi), I8(1), |
B(Star), R(3), |
B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), |
- /* 11 S> */ B(LdaSmi), I8(2), |
+ /* 11 S> */ B(LdaConstant), U8(2), |
+ B(Star), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(2), |
/* 12 E> */ B(StaGlobalSloppy), U8(1), U8(4), |
B(Star), R(0), |
/* 15 S> */ B(Return), |
@@ -93,6 +97,7 @@ bytecodes: [ |
constant pool: [ |
FIXED_ARRAY_TYPE, |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"], |
] |
handlers: [ |
] |
@@ -104,7 +109,7 @@ snippet: " |
" |
frame size: 4 |
parameter count: 1 |
-bytecode array length: 32 |
+bytecode array length: 36 |
bytecodes: [ |
B(LdaConstant), U8(0), |
B(Star), R(1), |
@@ -113,16 +118,19 @@ bytecodes: [ |
B(Mov), R(closure), R(3), |
B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1), U8(3), |
/* 0 E> */ B(StackCheck), |
- /* 16 S> */ B(LdaUndefined), |
- B(Star), R(2), |
- B(LdaGlobal), U8(1), U8(2), |
+ /* 16 S> */ B(LdaConstant), U8(1), |
B(Star), R(1), |
- /* 16 E> */ B(Call), R(1), R(2), U8(1), U8(5), |
+ B(LdaUndefined), |
+ B(Star), R(3), |
+ B(LdaGlobal), U8(2), U8(2), |
+ B(Star), R(2), |
+ /* 16 E> */ B(Call), R(2), R(3), U8(1), U8(5), |
B(Star), R(0), |
/* 20 S> */ B(Return), |
] |
constant pool: [ |
FIXED_ARRAY_TYPE, |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"], |
ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], |
] |
handlers: [ |