Index: test/cctest/interpreter/bytecode_expectations/ContextParameters.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/ContextParameters.golden b/test/cctest/interpreter/bytecode_expectations/ContextParameters.golden |
index 63e48fd10ac42d7575ce985f326bad72a164721b..7032e48c8e357afaf2e3b3eadb654f06e141b55c 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/ContextParameters.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/ContextParameters.golden |
@@ -34,21 +34,24 @@ snippet: " |
function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } |
f(); |
" |
-frame size: 2 |
+frame size: 3 |
parameter count: 2 |
-bytecode array length: 18 |
+bytecode array length: 22 |
bytecodes: [ |
B(CreateFunctionContext), U8(1), |
B(PushContext), R(1), |
B(Ldar), R(arg0), |
B(StaCurrentContextSlot), U8(4), |
/* 10 E> */ B(StackCheck), |
- /* 27 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
+ /* 27 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(CreateClosure), U8(1), U8(2), U8(2), |
B(Star), R(0), |
/* 53 S> */ B(LdaCurrentContextSlot), U8(4), |
/* 66 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
SHARED_FUNCTION_INFO_TYPE, |
] |
handlers: [ |
@@ -84,19 +87,22 @@ snippet: " |
function f() { var self = this; return function() { self = 2; }; } |
f(); |
" |
-frame size: 1 |
+frame size: 2 |
parameter count: 1 |
-bytecode array length: 14 |
+bytecode array length: 18 |
bytecodes: [ |
B(CreateFunctionContext), U8(1), |
B(PushContext), R(0), |
/* 10 E> */ B(StackCheck), |
- /* 26 S> */ B(Ldar), R(this), |
+ /* 26 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(1), |
+ B(Ldar), R(this), |
/* 26 E> */ B(StaCurrentContextSlot), U8(4), |
- /* 32 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
+ /* 32 S> */ B(CreateClosure), U8(1), U8(4), U8(2), |
/* 65 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["self"], |
SHARED_FUNCTION_INFO_TYPE, |
] |
handlers: [ |