Index: test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden b/test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e43a8cd76c1c362206b7e309b537b8e664a40ca3 |
--- /dev/null |
+++ b/test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden |
@@ -0,0 +1,116 @@ |
+# |
+# Autogenerated by generate-bytecode-expectations. |
+# |
+ |
+--- |
+pool type: number |
+execute: yes |
+wrap: no |
+test function name: f |
+ |
+--- |
+snippet: " |
+ function f(...restArgs) { return restArgs; } |
+ f(); |
+" |
+frame size: 1 |
+parameter count: 1 |
+bytecode array length: 7 |
+bytecodes: [ |
+ B(CreateRestParameter), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(0), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(a, ...restArgs) { return restArgs; } |
+ f(); |
+" |
+frame size: 2 |
+parameter count: 2 |
+bytecode array length: 14 |
+bytecodes: [ |
+ B(CreateRestParameter), |
+ B(Star), R(0), |
+ B(LdaTheHole), |
+ B(Star), R(1), |
+ B(StackCheck), |
+ B(Ldar), R(arg0), |
+ B(Star), R(1), |
+ B(Ldar), R(0), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f(a, ...restArgs) { return restArgs[0]; } |
+ f(); |
+" |
+frame size: 3 |
+parameter count: 2 |
+bytecode array length: 20 |
+bytecodes: [ |
+ B(CreateRestParameter), |
+ B(Star), R(0), |
+ B(LdaTheHole), |
+ B(Star), R(1), |
+ B(StackCheck), |
+ B(Ldar), R(arg0), |
+ B(Star), R(1), |
+ 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, ...restArgs) { return restArgs[0] + arguments[0]; } |
+ f(); |
+" |
+frame size: 5 |
+parameter count: 2 |
+bytecode array length: 35 |
+bytecodes: [ |
+ B(CreateUnmappedArguments), |
+ B(Star), R(0), |
+ B(CreateRestParameter), |
+ B(Star), R(1), |
+ B(LdaTheHole), |
+ B(Star), R(2), |
+ B(StackCheck), |
+ B(Ldar), R(arg0), |
+ B(Star), R(2), |
+ B(Ldar), R(1), |
+ B(Star), R(3), |
+ B(LdaZero), |
+ B(KeyedLoadIC), R(3), U8(1), |
+ B(Star), R(4), |
+ B(Ldar), R(0), |
+ B(Star), R(3), |
+ B(LdaZero), |
+ B(KeyedLoadIC), R(3), U8(3), |
+ B(Add), R(4), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |