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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/ForIn.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: yes
9
10 ---
11 snippet: "
12 for (var p in null) {}
13 "
14 frame size: 2
15 parameter count: 1
16 bytecode array length: 3
17 bytecodes: [
18 B(StackCheck),
19 B(LdaUndefined),
20 B(Return),
21 ]
22 constant pool: [
23 ]
24 handlers: [
25 ]
26
27 ---
28 snippet: "
29 for (var p in undefined) {}
30 "
31 frame size: 2
32 parameter count: 1
33 bytecode array length: 3
34 bytecodes: [
35 B(StackCheck),
36 B(LdaUndefined),
37 B(Return),
38 ]
39 constant pool: [
40 ]
41 handlers: [
42 ]
43
44 ---
45 snippet: "
46 for (var p in undefined) {}
47 "
48 frame size: 2
49 parameter count: 1
50 bytecode array length: 3
51 bytecodes: [
52 B(StackCheck),
53 B(LdaUndefined),
54 B(Return),
55 ]
56 constant pool: [
57 ]
58 handlers: [
59 ]
60
61 ---
62 snippet: "
63 var x = 'potatoes';
64 for (var p in x) { return p; }
65 "
66 frame size: 8
67 parameter count: 1
68 bytecode array length: 46
69 bytecodes: [
70 B(StackCheck),
71 B(LdaConstant), U8(0),
72 B(Star), R(1),
73 B(JumpIfUndefined), U8(39),
74 B(JumpIfNull), U8(37),
75 B(ToObject),
76 B(JumpIfNull), U8(34),
77 B(Star), R(3),
78 B(ForInPrepare), R(4),
79 B(LdaZero),
80 B(Star), R(7),
81 B(ForInDone), R(7), R(6),
82 B(JumpIfTrue), U8(22),
83 B(ForInNext), R(3), R(7), R(4),
84 B(JumpIfUndefined), U8(10),
85 B(Star), R(0),
86 B(StackCheck),
87 B(Ldar), R(0),
88 B(Star), R(2),
89 B(Return),
90 B(ForInStep), R(7),
91 B(Star), R(7),
92 B(Jump), U8(-23),
93 B(LdaUndefined),
94 B(Return),
95 ]
96 constant pool: [
97 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
98 ]
99 handlers: [
100 ]
101
102 ---
103 snippet: "
104 var x = 0;
105 for (var p in [1,2,3]) { x += p; }
106 "
107 frame size: 9
108 parameter count: 1
109 bytecode array length: 58
110 bytecodes: [
111 B(StackCheck),
112 B(LdaZero),
113 B(Star), R(1),
114 B(CreateArrayLiteral), U8(0), U8(0), U8(3),
115 B(JumpIfUndefined), U8(48),
116 B(JumpIfNull), U8(46),
117 B(ToObject),
118 B(JumpIfNull), U8(43),
119 B(Star), R(3),
120 B(ForInPrepare), R(4),
121 B(LdaZero),
122 B(Star), R(7),
123 B(ForInDone), R(7), R(6),
124 B(JumpIfTrue), U8(31),
125 B(ForInNext), R(3), R(7), R(4),
126 B(JumpIfUndefined), U8(19),
127 B(Star), R(0),
128 B(StackCheck),
129 B(Ldar), R(0),
130 B(Star), R(2),
131 B(Ldar), R(1),
132 B(Star), R(8),
133 B(Ldar), R(2),
134 B(Add), R(8),
135 B(Star), R(1),
136 B(ForInStep), R(7),
137 B(Star), R(7),
138 B(Jump), U8(-32),
139 B(LdaUndefined),
140 B(Return),
141 ]
142 constant pool: [
143 InstanceType::FIXED_ARRAY_TYPE,
144 ]
145 handlers: [
146 ]
147
148 ---
149 snippet: "
150 var x = { 'a': 1, 'b': 2 };
151 for (x['a'] in [10, 20, 30]) {
152 if (x['a'] == 10) continue;
153 if (x['a'] == 20) break;
154 }
155 "
156 frame size: 8
157 parameter count: 1
158 bytecode array length: 95
159 bytecodes: [
160 B(StackCheck),
161 B(CreateObjectLiteral), U8(0), U8(0), U8(9),
162 B(Star), R(1),
163 B(Star), R(0),
164 B(CreateArrayLiteral), U8(1), U8(1), U8(3),
165 B(JumpIfUndefined), U8(80),
166 B(JumpIfNull), U8(78),
167 B(ToObject),
168 B(JumpIfNull), U8(75),
169 B(Star), R(1),
170 B(ForInPrepare), R(2),
171 B(LdaZero),
172 B(Star), R(5),
173 B(ForInDone), R(5), R(4),
174 B(JumpIfTrue), U8(63),
175 B(ForInNext), R(1), R(5), R(2),
176 B(JumpIfUndefined), U8(51),
177 B(Star), R(6),
178 B(Ldar), R(0),
179 B(Star), R(7),
180 B(Ldar), R(6),
181 B(StoreICSloppy), R(7), U8(2), U8(7),
182 B(StackCheck),
183 B(Ldar), R(0),
184 B(Star), R(6),
185 B(LoadIC), R(6), U8(2), U8(3),
186 B(Star), R(7),
187 B(LdaSmi8), U8(10),
188 B(TestEqual), R(7),
189 B(JumpIfFalse), U8(4),
190 B(Jump), U8(20),
191 B(Ldar), R(0),
192 B(Star), R(6),
193 B(LoadIC), R(6), U8(2), U8(5),
194 B(Star), R(7),
195 B(LdaSmi8), U8(20),
196 B(TestEqual), R(7),
197 B(JumpIfFalse), U8(4),
198 B(Jump), U8(8),
199 B(ForInStep), R(5),
200 B(Star), R(5),
201 B(Jump), U8(-64),
202 B(LdaUndefined),
203 B(Return),
204 ]
205 constant pool: [
206 InstanceType::FIXED_ARRAY_TYPE,
207 InstanceType::FIXED_ARRAY_TYPE,
208 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
209 ]
210 handlers: [
211 ]
212
213 ---
214 snippet: "
215 var x = [ 10, 11, 12 ] ;
216 for (x[0] in [1,2,3]) { return x[3]; }
217 "
218 frame size: 9
219 parameter count: 1
220 bytecode array length: 70
221 bytecodes: [
222 B(StackCheck),
223 B(CreateArrayLiteral), U8(0), U8(0), U8(3),
224 B(Star), R(0),
225 B(CreateArrayLiteral), U8(1), U8(1), U8(3),
226 B(JumpIfUndefined), U8(57),
227 B(JumpIfNull), U8(55),
228 B(ToObject),
229 B(JumpIfNull), U8(52),
230 B(Star), R(1),
231 B(ForInPrepare), R(2),
232 B(LdaZero),
233 B(Star), R(5),
234 B(ForInDone), R(5), R(4),
235 B(JumpIfTrue), U8(40),
236 B(ForInNext), R(1), R(5), R(2),
237 B(JumpIfUndefined), U8(28),
238 B(Star), R(6),
239 B(Ldar), R(0),
240 B(Star), R(7),
241 B(LdaZero),
242 B(Star), R(8),
243 B(Ldar), R(6),
244 B(KeyedStoreICSloppy), R(7), R(8), U8(5),
245 B(StackCheck),
246 B(Ldar), R(0),
247 B(Star), R(6),
248 B(LdaSmi8), U8(3),
249 B(KeyedLoadIC), R(6), U8(3),
250 B(Return),
251 B(ForInStep), R(5),
252 B(Star), R(5),
253 B(Jump), U8(-41),
254 B(LdaUndefined),
255 B(Return),
256 ]
257 constant pool: [
258 InstanceType::FIXED_ARRAY_TYPE,
259 InstanceType::FIXED_ARRAY_TYPE,
260 ]
261 handlers: [
262 ]
263
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Eval.golden ('k') | test/cctest/interpreter/bytecode_expectations/ForOf.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698