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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 #
2 # Autogenerated by generate-bytecode-expectations.
3 #
4
5 ---
6 wrap: yes
7
8 ---
9 snippet: "
10 Math.max(...[1, 2, 3]);
11 "
12 frame size: 3
13 parameter count: 1
14 bytecode array length: 23
15 bytecodes: [
16 /* 30 E> */ B(StackCheck),
17 /* 34 S> */ B(LdaGlobal), U8(0), U8(4),
18 B(Star), R(1),
19 /* 38 E> */ B(LdaNamedProperty), R(1), U8(1), U8(6),
20 B(Star), R(0),
21 B(CreateArrayLiteral), U8(2), U8(0), U8(9),
22 B(Star), R(2),
23 /* 39 E> */ B(CallWithSpread), R(0), U8(3),
24 B(LdaUndefined),
25 /* 58 S> */ B(Return),
26 ]
27 constant pool: [
28 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"],
29 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"],
30 CONSTANT_ELEMENTS_PAIR_TYPE,
31 ]
32 handlers: [
33 ]
34
35 ---
36 snippet: "
37 Math.max(0, ...[1, 2, 3]);
38 "
39 frame size: 4
40 parameter count: 1
41 bytecode array length: 26
42 bytecodes: [
43 /* 30 E> */ B(StackCheck),
44 /* 34 S> */ B(LdaGlobal), U8(0), U8(4),
45 B(Star), R(1),
46 /* 38 E> */ B(LdaNamedProperty), R(1), U8(1), U8(6),
47 B(Star), R(0),
48 B(LdaZero),
49 B(Star), R(2),
50 B(CreateArrayLiteral), U8(2), U8(0), U8(9),
51 B(Star), R(3),
52 /* 39 E> */ B(CallWithSpread), R(0), U8(4),
53 B(LdaUndefined),
54 /* 61 S> */ B(Return),
55 ]
56 constant pool: [
57 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"],
58 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"],
59 CONSTANT_ELEMENTS_PAIR_TYPE,
60 ]
61 handlers: [
62 ]
63
64 ---
65 snippet: "
66 Math.max(0, ...[1, 2, 3], 4);
67 "
68 frame size: 8
69 parameter count: 1
70 bytecode array length: 60
71 bytecodes: [
72 /* 30 E> */ B(StackCheck),
73 /* 34 S> */ B(LdaUndefined),
74 B(Star), R(1),
75 /* 34 E> */ B(LdaGlobal), U8(0), U8(2),
76 B(Star), R(0),
77 B(LdaNamedProperty), R(0), U8(1), U8(4),
78 B(Star), R(2),
79 B(LdaUndefined),
80 B(Star), R(4),
81 B(CreateArrayLiteral), U8(2), U8(1), U8(9),
82 B(Star), R(5),
83 B(LdaUndefined),
84 B(Star), R(6),
85 B(CreateArrayLiteral), U8(3), U8(0), U8(9),
86 B(Star), R(7),
87 B(CallJSRuntime), U8(%spread_iterable), R(6), U8(2),
88 B(Star), R(6),
89 B(CreateArrayLiteral), U8(4), U8(2), U8(9),
90 B(Star), R(7),
91 B(CallJSRuntime), U8(%spread_arguments), R(4), U8(4),
92 B(Star), R(4),
93 B(Mov), R(0), R(3),
94 B(CallJSRuntime), U8(%reflect_apply), R(1), U8(4),
95 B(LdaUndefined),
96 /* 64 S> */ B(Return),
97 ]
98 constant pool: [
99 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"],
100 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"],
101 CONSTANT_ELEMENTS_PAIR_TYPE,
102 CONSTANT_ELEMENTS_PAIR_TYPE,
103 CONSTANT_ELEMENTS_PAIR_TYPE,
104 ]
105 handlers: [
106 ]
107
OLDNEW
« 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