Index: test/cctest/interpreter/bytecode_expectations/Parameters.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/Parameters.golden b/test/cctest/interpreter/bytecode_expectations/Parameters.golden |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4fb3af755ce33887d9b5c1573ef73e1fa364f771 |
--- /dev/null |
+++ b/test/cctest/interpreter/bytecode_expectations/Parameters.golden |
@@ -0,0 +1,140 @@ |
+# |
+# Autogenerated by generate-bytecode-expectations |
+# |
+ |
+--- |
+pool type: mixed |
+execute: yes |
+wrap: no |
+test function name: f |
+ |
+--- |
+snippet: " |
+ function f() { return this; } |
+ f(); |
+" |
+frame size: 0 |
+parameter count: 1 |
+bytecode array length: 4 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(Ldar), R(this), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(arg1) { return arg1; } |
+ f(); |
+" |
+frame size: 0 |
+parameter count: 2 |
+bytecode array length: 4 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(Ldar), R(arg0), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(arg1) { return this; } |
+ f(); |
+" |
+frame size: 0 |
+parameter count: 2 |
+bytecode array length: 4 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(Ldar), R(this), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return arg4; } |
+ f(); |
+" |
+frame size: 0 |
+parameter count: 8 |
+bytecode array length: 4 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(Ldar), R(arg3), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this; } |
+ f(); |
+" |
+frame size: 0 |
+parameter count: 8 |
+bytecode array length: 4 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(Ldar), R(this), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(arg1) { arg1 = 1; } |
+ f(); |
+" |
+frame size: 0 |
+parameter count: 2 |
+bytecode array length: 7 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(LdaSmi8), U8(1), |
+ B(Star), R(arg0), |
+ B(LdaUndefined), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(arg1, arg2, arg3, arg4) { arg2 = 1; } |
+ f(); |
+" |
+frame size: 0 |
+parameter count: 5 |
+bytecode array length: 7 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(LdaSmi8), U8(1), |
+ B(Star), R(arg1), |
+ B(LdaUndefined), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |