Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: test/cctest/interpreter/bytecode_expectations/CallAndSpread.golden

Issue 2629363002: [Ignition/turbo] Add a CallWithSpread bytecode. (Closed)
Patch Set: reparent on the bytecode CL Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-classes.cc ('k') | test/cctest/interpreter/bytecode_expectations/NewAndSpread.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/bytecode_expectations/CallAndSpread.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/CallAndSpread.golden b/test/cctest/interpreter/bytecode_expectations/CallAndSpread.golden
new file mode 100644
index 0000000000000000000000000000000000000000..6678d65c6679d4c8939e4cf1518b90736642d82a
--- /dev/null
+++ b/test/cctest/interpreter/bytecode_expectations/CallAndSpread.golden
@@ -0,0 +1,107 @@
+#
+# Autogenerated by generate-bytecode-expectations.
+#
+
+---
+wrap: yes
+
+---
+snippet: "
+ Math.max(...[1, 2, 3]);
+"
+frame size: 3
+parameter count: 1
+bytecode array length: 23
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 34 S> */ B(LdaGlobal), U8(0), U8(4),
+ B(Star), R(1),
+ /* 38 E> */ B(LdaNamedProperty), R(1), U8(1), U8(6),
+ B(Star), R(0),
+ B(CreateArrayLiteral), U8(2), U8(0), U8(9),
+ B(Star), R(2),
+ /* 39 E> */ B(CallWithSpread), R(0), U8(3),
+ B(LdaUndefined),
+ /* 58 S> */ B(Return),
+]
+constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"],
+ CONSTANT_ELEMENTS_PAIR_TYPE,
+]
+handlers: [
+]
+
+---
+snippet: "
+ Math.max(0, ...[1, 2, 3]);
+"
+frame size: 4
+parameter count: 1
+bytecode array length: 26
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 34 S> */ B(LdaGlobal), U8(0), U8(4),
+ B(Star), R(1),
+ /* 38 E> */ B(LdaNamedProperty), R(1), U8(1), U8(6),
+ B(Star), R(0),
+ B(LdaZero),
+ B(Star), R(2),
+ B(CreateArrayLiteral), U8(2), U8(0), U8(9),
+ B(Star), R(3),
+ /* 39 E> */ B(CallWithSpread), R(0), U8(4),
+ B(LdaUndefined),
+ /* 61 S> */ B(Return),
+]
+constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"],
+ CONSTANT_ELEMENTS_PAIR_TYPE,
+]
+handlers: [
+]
+
+---
+snippet: "
+ Math.max(0, ...[1, 2, 3], 4);
+"
+frame size: 8
+parameter count: 1
+bytecode array length: 60
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 34 S> */ B(LdaUndefined),
+ B(Star), R(1),
+ /* 34 E> */ B(LdaGlobal), U8(0), U8(2),
+ B(Star), R(0),
+ B(LdaNamedProperty), R(0), U8(1), U8(4),
+ B(Star), R(2),
+ B(LdaUndefined),
+ B(Star), R(4),
+ B(CreateArrayLiteral), U8(2), U8(1), U8(9),
+ B(Star), R(5),
+ B(LdaUndefined),
+ B(Star), R(6),
+ B(CreateArrayLiteral), U8(3), U8(0), U8(9),
+ B(Star), R(7),
+ B(CallJSRuntime), U8(%spread_iterable), R(6), U8(2),
+ B(Star), R(6),
+ B(CreateArrayLiteral), U8(4), U8(2), U8(9),
+ B(Star), R(7),
+ B(CallJSRuntime), U8(%spread_arguments), R(4), U8(4),
+ B(Star), R(4),
+ B(Mov), R(0), R(3),
+ B(CallJSRuntime), U8(%reflect_apply), R(1), U8(4),
+ B(LdaUndefined),
+ /* 64 S> */ B(Return),
+]
+constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"],
+ CONSTANT_ELEMENTS_PAIR_TYPE,
+ CONSTANT_ELEMENTS_PAIR_TYPE,
+ CONSTANT_ELEMENTS_PAIR_TYPE,
+]
+handlers: [
+]
+
« no previous file with comments | « src/runtime/runtime-classes.cc ('k') | test/cctest/interpreter/bytecode_expectations/NewAndSpread.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698