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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/CountOperators.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 var a = 1; return ++a;
13 "
14 frame size: 1
15 parameter count: 1
16 bytecode array length: 10
17 bytecodes: [
18 B(StackCheck),
19 B(LdaSmi8), U8(1),
20 B(Star), R(0),
21 B(ToNumber),
22 B(Inc),
23 B(Star), R(0),
24 B(Return),
25 ]
26 constant pool: [
27 ]
28 handlers: [
29 ]
30
31 ---
32 snippet: "
33 var a = 1; return a++;
34 "
35 frame size: 2
36 parameter count: 1
37 bytecode array length: 14
38 bytecodes: [
39 B(StackCheck),
40 B(LdaSmi8), U8(1),
41 B(Star), R(0),
42 B(ToNumber),
43 B(Star), R(1),
44 B(Inc),
45 B(Star), R(0),
46 B(Ldar), R(1),
47 B(Return),
48 ]
49 constant pool: [
50 ]
51 handlers: [
52 ]
53
54 ---
55 snippet: "
56 var a = 1; return --a;
57 "
58 frame size: 1
59 parameter count: 1
60 bytecode array length: 10
61 bytecodes: [
62 B(StackCheck),
63 B(LdaSmi8), U8(1),
64 B(Star), R(0),
65 B(ToNumber),
66 B(Dec),
67 B(Star), R(0),
68 B(Return),
69 ]
70 constant pool: [
71 ]
72 handlers: [
73 ]
74
75 ---
76 snippet: "
77 var a = 1; return a--;
78 "
79 frame size: 2
80 parameter count: 1
81 bytecode array length: 14
82 bytecodes: [
83 B(StackCheck),
84 B(LdaSmi8), U8(1),
85 B(Star), R(0),
86 B(ToNumber),
87 B(Star), R(1),
88 B(Dec),
89 B(Star), R(0),
90 B(Ldar), R(1),
91 B(Return),
92 ]
93 constant pool: [
94 ]
95 handlers: [
96 ]
97
98 ---
99 snippet: "
100 var a = { val: 1 }; return a.val++;
101 "
102 frame size: 3
103 parameter count: 1
104 bytecode array length: 26
105 bytecodes: [
106 B(StackCheck),
107 B(CreateObjectLiteral), U8(0), U8(0), U8(9),
108 B(Star), R(1),
109 B(Star), R(0),
110 B(Star), R(1),
111 B(LoadIC), R(1), U8(1), U8(1),
112 B(ToNumber),
113 B(Star), R(2),
114 B(Inc),
115 B(StoreICSloppy), R(1), U8(1), U8(3),
116 B(Ldar), R(2),
117 B(Return),
118 ]
119 constant pool: [
120 InstanceType::FIXED_ARRAY_TYPE,
121 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
122 ]
123 handlers: [
124 ]
125
126 ---
127 snippet: "
128 var a = { val: 1 }; return --a.val;
129 "
130 frame size: 2
131 parameter count: 1
132 bytecode array length: 22
133 bytecodes: [
134 B(StackCheck),
135 B(CreateObjectLiteral), U8(0), U8(0), U8(9),
136 B(Star), R(1),
137 B(Star), R(0),
138 B(Star), R(1),
139 B(LoadIC), R(1), U8(1), U8(1),
140 B(ToNumber),
141 B(Dec),
142 B(StoreICSloppy), R(1), U8(1), U8(3),
143 B(Return),
144 ]
145 constant pool: [
146 InstanceType::FIXED_ARRAY_TYPE,
147 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
148 ]
149 handlers: [
150 ]
151
152 ---
153 snippet: "
154 var name = 'var'; var a = { val: 1 }; return a[name]--;
155 "
156 frame size: 5
157 parameter count: 1
158 bytecode array length: 33
159 bytecodes: [
160 B(StackCheck),
161 B(LdaConstant), U8(0),
162 B(Star), R(0),
163 B(CreateObjectLiteral), U8(1), U8(0), U8(9),
164 B(Star), R(2),
165 B(Star), R(1),
166 B(Star), R(2),
167 B(Ldar), R(0),
168 B(Star), R(3),
169 B(KeyedLoadIC), R(2), U8(1),
170 B(ToNumber),
171 B(Star), R(4),
172 B(Dec),
173 B(KeyedStoreICSloppy), R(2), R(3), U8(3),
174 B(Ldar), R(4),
175 B(Return),
176 ]
177 constant pool: [
178 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
179 InstanceType::FIXED_ARRAY_TYPE,
180 ]
181 handlers: [
182 ]
183
184 ---
185 snippet: "
186 var name = 'var'; var a = { val: 1 }; return ++a[name];
187 "
188 frame size: 4
189 parameter count: 1
190 bytecode array length: 29
191 bytecodes: [
192 B(StackCheck),
193 B(LdaConstant), U8(0),
194 B(Star), R(0),
195 B(CreateObjectLiteral), U8(1), U8(0), U8(9),
196 B(Star), R(2),
197 B(Star), R(1),
198 B(Star), R(2),
199 B(Ldar), R(0),
200 B(Star), R(3),
201 B(KeyedLoadIC), R(2), U8(1),
202 B(ToNumber),
203 B(Inc),
204 B(KeyedStoreICSloppy), R(2), R(3), U8(3),
205 B(Return),
206 ]
207 constant pool: [
208 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
209 InstanceType::FIXED_ARRAY_TYPE,
210 ]
211 handlers: [
212 ]
213
214 ---
215 snippet: "
216 var a = 1; var b = function() { return a }; return ++a;
217 "
218 frame size: 2
219 parameter count: 1
220 bytecode array length: 27
221 bytecodes: [
222 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
223 B(PushContext), R(1),
224 B(StackCheck),
225 B(LdaSmi8), U8(1),
226 B(StaContextSlot), R(context), U8(4),
227 B(CreateClosure), U8(0), U8(0),
228 B(Star), R(0),
229 B(LdaContextSlot), R(context), U8(4),
230 B(ToNumber),
231 B(Inc),
232 B(StaContextSlot), R(context), U8(4),
233 B(Return),
234 ]
235 constant pool: [
236 InstanceType::SHARED_FUNCTION_INFO_TYPE,
237 ]
238 handlers: [
239 ]
240
241 ---
242 snippet: "
243 var a = 1; var b = function() { return a }; return a--;
244 "
245 frame size: 3
246 parameter count: 1
247 bytecode array length: 31
248 bytecodes: [
249 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
250 B(PushContext), R(1),
251 B(StackCheck),
252 B(LdaSmi8), U8(1),
253 B(StaContextSlot), R(context), U8(4),
254 B(CreateClosure), U8(0), U8(0),
255 B(Star), R(0),
256 B(LdaContextSlot), R(context), U8(4),
257 B(ToNumber),
258 B(Star), R(2),
259 B(Dec),
260 B(StaContextSlot), R(context), U8(4),
261 B(Ldar), R(2),
262 B(Return),
263 ]
264 constant pool: [
265 InstanceType::SHARED_FUNCTION_INFO_TYPE,
266 ]
267 handlers: [
268 ]
269
270 ---
271 snippet: "
272 var idx = 1; var a = [1, 2]; return a[idx++] = 2;
273 "
274 frame size: 4
275 parameter count: 1
276 bytecode array length: 28
277 bytecodes: [
278 B(StackCheck),
279 B(LdaSmi8), U8(1),
280 B(Star), R(0),
281 B(CreateArrayLiteral), U8(0), U8(0), U8(3),
282 B(Star), R(1),
283 B(Star), R(2),
284 B(Ldar), R(0),
285 B(ToNumber),
286 B(Star), R(3),
287 B(Inc),
288 B(Star), R(0),
289 B(LdaSmi8), U8(2),
290 B(KeyedStoreICSloppy), R(2), R(3), U8(1),
291 B(Return),
292 ]
293 constant pool: [
294 InstanceType::FIXED_ARRAY_TYPE,
295 ]
296 handlers: [
297 ]
298
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698