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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/Parameters.golden

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reflow REPEAT_249 macro. Created 4 years, 9 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 pool type: mixed
7 execute: yes
8 wrap: no
9 test function name: f
10
11 ---
12 snippet: "
13 function f() { return this; }
14 f();
15 "
16 frame size: 0
17 parameter count: 1
18 bytecode array length: 4
19 bytecodes: [
20 B(StackCheck),
21 B(Ldar), R(this),
22 B(Return),
23 ]
24 constant pool: [
25 ]
26 handlers: [
27 ]
28
29 ---
30 snippet: "
31 function f(arg1) { return arg1; }
32 f();
33 "
34 frame size: 0
35 parameter count: 2
36 bytecode array length: 4
37 bytecodes: [
38 B(StackCheck),
39 B(Ldar), R(arg0),
40 B(Return),
41 ]
42 constant pool: [
43 ]
44 handlers: [
45 ]
46
47 ---
48 snippet: "
49 function f(arg1) { return this; }
50 f();
51 "
52 frame size: 0
53 parameter count: 2
54 bytecode array length: 4
55 bytecodes: [
56 B(StackCheck),
57 B(Ldar), R(this),
58 B(Return),
59 ]
60 constant pool: [
61 ]
62 handlers: [
63 ]
64
65 ---
66 snippet: "
67 function f(arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return arg4; }
68 f();
69 "
70 frame size: 0
71 parameter count: 8
72 bytecode array length: 4
73 bytecodes: [
74 B(StackCheck),
75 B(Ldar), R(arg3),
76 B(Return),
77 ]
78 constant pool: [
79 ]
80 handlers: [
81 ]
82
83 ---
84 snippet: "
85 function f(arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this; }
86 f();
87 "
88 frame size: 0
89 parameter count: 8
90 bytecode array length: 4
91 bytecodes: [
92 B(StackCheck),
93 B(Ldar), R(this),
94 B(Return),
95 ]
96 constant pool: [
97 ]
98 handlers: [
99 ]
100
101 ---
102 snippet: "
103 function f(arg1) { arg1 = 1; }
104 f();
105 "
106 frame size: 0
107 parameter count: 2
108 bytecode array length: 7
109 bytecodes: [
110 B(StackCheck),
111 B(LdaSmi8), U8(1),
112 B(Star), R(arg0),
113 B(LdaUndefined),
114 B(Return),
115 ]
116 constant pool: [
117 ]
118 handlers: [
119 ]
120
121 ---
122 snippet: "
123 function f(arg1, arg2, arg3, arg4) { arg2 = 1; }
124 f();
125 "
126 frame size: 0
127 parameter count: 5
128 bytecode array length: 7
129 bytecodes: [
130 B(StackCheck),
131 B(LdaSmi8), U8(1),
132 B(Star), R(arg1),
133 B(LdaUndefined),
134 B(Return),
135 ]
136 constant pool: [
137 ]
138 handlers: [
139 ]
140
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698