Index: test/cctest/interpreter/bytecode_expectations/CreateArguments.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/CreateArguments.golden b/test/cctest/interpreter/bytecode_expectations/CreateArguments.golden |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ab60ba49b836c3b6067850b6eef4a7ee7c292a65 |
--- /dev/null |
+++ b/test/cctest/interpreter/bytecode_expectations/CreateArguments.golden |
@@ -0,0 +1,148 @@ |
+# |
+# Autogenerated by generate-bytecode-expectations. |
+# |
+ |
+--- |
+pool type: string |
+execute: yes |
+wrap: no |
+test function name: f |
+ |
+--- |
+snippet: " |
+ function f() { return arguments; } |
+ f(); |
+" |
+frame size: 1 |
+parameter count: 1 |
+bytecode array length: 7 |
+bytecodes: [ |
+ B(CreateMappedArguments), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(0), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f() { return arguments[0]; } |
+ f(); |
+" |
+frame size: 2 |
+parameter count: 1 |
+bytecode array length: 13 |
+bytecodes: [ |
+ B(CreateMappedArguments), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(0), |
+ B(Star), R(1), |
+ B(LdaZero), |
+ B(KeyedLoadIC), R(1), U8(1), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f() { 'use strict'; return arguments; } |
+ f(); |
+" |
+frame size: 1 |
+parameter count: 1 |
+bytecode array length: 7 |
+bytecodes: [ |
+ B(CreateUnmappedArguments), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(0), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(a) { return arguments[0]; } |
+ f(); |
+" |
+frame size: 3 |
+parameter count: 2 |
+bytecode array length: 25 |
+bytecodes: [ |
+ B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
+ B(PushContext), R(1), |
+ B(Ldar), R(arg0), |
+ B(StaContextSlot), R(context), U8(4), |
+ B(CreateMappedArguments), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(0), |
+ B(Star), R(2), |
+ B(LdaZero), |
+ B(KeyedLoadIC), R(2), U8(1), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(a, b, c) { return arguments; } |
+ f(); |
+" |
+frame size: 2 |
+parameter count: 4 |
+bytecode array length: 29 |
+bytecodes: [ |
+ B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
+ B(PushContext), R(1), |
+ B(Ldar), R(arg0), |
+ B(StaContextSlot), R(context), U8(6), |
+ B(Ldar), R(arg1), |
+ B(StaContextSlot), R(context), U8(5), |
+ B(Ldar), R(arg2), |
+ B(StaContextSlot), R(context), U8(4), |
+ B(CreateMappedArguments), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(0), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(a, b, c) { 'use strict'; return arguments; } |
+ f(); |
+" |
+frame size: 1 |
+parameter count: 4 |
+bytecode array length: 7 |
+bytecodes: [ |
+ B(CreateUnmappedArguments), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(0), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |