Index: test/cctest/interpreter/ContextParameters.golden |
diff --git a/test/cctest/interpreter/ContextParameters.golden b/test/cctest/interpreter/ContextParameters.golden |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a14c8dd3941c3179cc91c81f50a1ee4331a2b6ba |
--- /dev/null |
+++ b/test/cctest/interpreter/ContextParameters.golden |
@@ -0,0 +1,102 @@ |
+# |
+# Autogenerated by generate-bytecode-expectations |
+# |
+ |
+--- |
+pool type: mixed |
+execute: yes |
+wrap: no |
+test function name: f |
+ |
+--- |
+snippet: " |
+ function f(arg1) { return function() { arg1 = 2; }; } |
+ f(); |
+" |
+frame size: 1 # in multiples of sizeof(void*) |
+parameter count: 2 |
+bytecodes: [ |
+ B(CallRuntime), U16(461), R(closure), U8(1), |
+ B(PushContext), R(0), |
+ B(Ldar), R(arg0), |
+ B(StaContextSlot), R(context), U8(4), |
+ B(StackCheck), |
+ B(CreateClosure), U8(0), U8(0), |
+ B(Return), |
+] |
+constant pool: [ |
+ InstanceType::SHARED_FUNCTION_INFO_TYPE, |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } |
+ f(); |
+" |
+frame size: 2 # in multiples of sizeof(void*) |
+parameter count: 2 |
+bytecodes: [ |
+ B(CallRuntime), U16(461), R(closure), U8(1), |
+ B(PushContext), R(1), |
+ B(Ldar), R(arg0), |
+ B(StaContextSlot), R(context), U8(4), |
+ B(StackCheck), |
+ B(CreateClosure), U8(0), U8(0), |
+ B(Star), R(0), |
+ B(LdaContextSlot), R(context), U8(4), |
+ B(Return), |
+] |
+constant pool: [ |
+ InstanceType::SHARED_FUNCTION_INFO_TYPE, |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(a1, a2, a3, a4) { return function() { a1 = a3; }; } |
+ f(); |
+" |
+frame size: 1 # in multiples of sizeof(void*) |
+parameter count: 5 |
+bytecodes: [ |
+ B(CallRuntime), U16(461), R(closure), U8(1), |
+ B(PushContext), R(0), |
+ B(Ldar), R(arg0), |
+ B(StaContextSlot), R(context), U8(5), |
+ B(Ldar), R(arg2), |
+ B(StaContextSlot), R(context), U8(4), |
+ B(StackCheck), |
+ B(CreateClosure), U8(0), U8(0), |
+ B(Return), |
+] |
+constant pool: [ |
+ InstanceType::SHARED_FUNCTION_INFO_TYPE, |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f() { var self = this; return function() { self = 2; }; } |
+ f(); |
+" |
+frame size: 1 # in multiples of sizeof(void*) |
+parameter count: 1 |
+bytecodes: [ |
+ B(CallRuntime), U16(461), R(closure), U8(1), |
+ B(PushContext), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(this), |
+ B(StaContextSlot), R(context), U8(4), |
+ B(CreateClosure), U8(0), U8(0), |
+ B(Return), |
+] |
+constant pool: [ |
+ InstanceType::SHARED_FUNCTION_INFO_TYPE, |
+] |
+handlers: [ |
+] |
+ |