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

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

Issue 2640273002: [ignition] Expect 'I' for signed bytecode operands (Closed)
Patch Set: Rebase 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
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 var a = 1; return ++a; 10 var a = 1; return ++a;
11 " 11 "
12 frame size: 1 12 frame size: 1
13 parameter count: 1 13 parameter count: 1
14 bytecode array length: 10 14 bytecode array length: 10
15 bytecodes: [ 15 bytecodes: [
16 /* 30 E> */ B(StackCheck), 16 /* 30 E> */ B(StackCheck),
17 /* 42 S> */ B(LdaSmi), U8(1), 17 /* 42 S> */ B(LdaSmi), I8(1),
18 B(Star), R(0), 18 B(Star), R(0),
19 /* 45 S> */ B(Inc), U8(2), 19 /* 45 S> */ B(Inc), U8(2),
20 B(Star), R(0), 20 B(Star), R(0),
21 /* 57 S> */ B(Return), 21 /* 57 S> */ B(Return),
22 ] 22 ]
23 constant pool: [ 23 constant pool: [
24 ] 24 ]
25 handlers: [ 25 handlers: [
26 ] 26 ]
27 27
28 --- 28 ---
29 snippet: " 29 snippet: "
30 var a = 1; return a++; 30 var a = 1; return a++;
31 " 31 "
32 frame size: 2 32 frame size: 2
33 parameter count: 1 33 parameter count: 1
34 bytecode array length: 16 34 bytecode array length: 16
35 bytecodes: [ 35 bytecodes: [
36 /* 30 E> */ B(StackCheck), 36 /* 30 E> */ B(StackCheck),
37 /* 42 S> */ B(LdaSmi), U8(1), 37 /* 42 S> */ B(LdaSmi), I8(1),
38 B(Star), R(0), 38 B(Star), R(0),
39 /* 45 S> */ B(ToNumber), R(1), 39 /* 45 S> */ B(ToNumber), R(1),
40 B(Ldar), R(1), 40 B(Ldar), R(1),
41 B(Inc), U8(2), 41 B(Inc), U8(2),
42 B(Star), R(0), 42 B(Star), R(0),
43 B(Ldar), R(1), 43 B(Ldar), R(1),
44 /* 57 S> */ B(Return), 44 /* 57 S> */ B(Return),
45 ] 45 ]
46 constant pool: [ 46 constant pool: [
47 ] 47 ]
48 handlers: [ 48 handlers: [
49 ] 49 ]
50 50
51 --- 51 ---
52 snippet: " 52 snippet: "
53 var a = 1; return --a; 53 var a = 1; return --a;
54 " 54 "
55 frame size: 1 55 frame size: 1
56 parameter count: 1 56 parameter count: 1
57 bytecode array length: 10 57 bytecode array length: 10
58 bytecodes: [ 58 bytecodes: [
59 /* 30 E> */ B(StackCheck), 59 /* 30 E> */ B(StackCheck),
60 /* 42 S> */ B(LdaSmi), U8(1), 60 /* 42 S> */ B(LdaSmi), I8(1),
61 B(Star), R(0), 61 B(Star), R(0),
62 /* 45 S> */ B(Dec), U8(2), 62 /* 45 S> */ B(Dec), U8(2),
63 B(Star), R(0), 63 B(Star), R(0),
64 /* 57 S> */ B(Return), 64 /* 57 S> */ B(Return),
65 ] 65 ]
66 constant pool: [ 66 constant pool: [
67 ] 67 ]
68 handlers: [ 68 handlers: [
69 ] 69 ]
70 70
71 --- 71 ---
72 snippet: " 72 snippet: "
73 var a = 1; return a--; 73 var a = 1; return a--;
74 " 74 "
75 frame size: 2 75 frame size: 2
76 parameter count: 1 76 parameter count: 1
77 bytecode array length: 16 77 bytecode array length: 16
78 bytecodes: [ 78 bytecodes: [
79 /* 30 E> */ B(StackCheck), 79 /* 30 E> */ B(StackCheck),
80 /* 42 S> */ B(LdaSmi), U8(1), 80 /* 42 S> */ B(LdaSmi), I8(1),
81 B(Star), R(0), 81 B(Star), R(0),
82 /* 45 S> */ B(ToNumber), R(1), 82 /* 45 S> */ B(ToNumber), R(1),
83 B(Ldar), R(1), 83 B(Ldar), R(1),
84 B(Dec), U8(2), 84 B(Dec), U8(2),
85 B(Star), R(0), 85 B(Star), R(0),
86 B(Ldar), R(1), 86 B(Ldar), R(1),
87 /* 57 S> */ B(Return), 87 /* 57 S> */ B(Return),
88 ] 88 ]
89 constant pool: [ 89 constant pool: [
90 ] 90 ]
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 snippet: " 199 snippet: "
200 var a = 1; var b = function() { return a }; return ++a; 200 var a = 1; var b = function() { return a }; return ++a;
201 " 201 "
202 frame size: 2 202 frame size: 2
203 parameter count: 1 203 parameter count: 1
204 bytecode array length: 22 204 bytecode array length: 22
205 bytecodes: [ 205 bytecodes: [
206 B(CreateFunctionContext), U8(1), 206 B(CreateFunctionContext), U8(1),
207 B(PushContext), R(1), 207 B(PushContext), R(1),
208 /* 30 E> */ B(StackCheck), 208 /* 30 E> */ B(StackCheck),
209 /* 42 S> */ B(LdaSmi), U8(1), 209 /* 42 S> */ B(LdaSmi), I8(1),
210 /* 42 E> */ B(StaCurrentContextSlot), U8(4), 210 /* 42 E> */ B(StaCurrentContextSlot), U8(4),
211 /* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2), 211 /* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
212 B(Star), R(0), 212 B(Star), R(0),
213 /* 78 S> */ B(LdaCurrentContextSlot), U8(4), 213 /* 78 S> */ B(LdaCurrentContextSlot), U8(4),
214 B(Inc), U8(3), 214 B(Inc), U8(3),
215 /* 87 E> */ B(StaCurrentContextSlot), U8(4), 215 /* 87 E> */ B(StaCurrentContextSlot), U8(4),
216 /* 90 S> */ B(Return), 216 /* 90 S> */ B(Return),
217 ] 217 ]
218 constant pool: [ 218 constant pool: [
219 SHARED_FUNCTION_INFO_TYPE, 219 SHARED_FUNCTION_INFO_TYPE,
220 ] 220 ]
221 handlers: [ 221 handlers: [
222 ] 222 ]
223 223
224 --- 224 ---
225 snippet: " 225 snippet: "
226 var a = 1; var b = function() { return a }; return a--; 226 var a = 1; var b = function() { return a }; return a--;
227 " 227 "
228 frame size: 3 228 frame size: 3
229 parameter count: 1 229 parameter count: 1
230 bytecode array length: 28 230 bytecode array length: 28
231 bytecodes: [ 231 bytecodes: [
232 B(CreateFunctionContext), U8(1), 232 B(CreateFunctionContext), U8(1),
233 B(PushContext), R(1), 233 B(PushContext), R(1),
234 /* 30 E> */ B(StackCheck), 234 /* 30 E> */ B(StackCheck),
235 /* 42 S> */ B(LdaSmi), U8(1), 235 /* 42 S> */ B(LdaSmi), I8(1),
236 /* 42 E> */ B(StaCurrentContextSlot), U8(4), 236 /* 42 E> */ B(StaCurrentContextSlot), U8(4),
237 /* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2), 237 /* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
238 B(Star), R(0), 238 B(Star), R(0),
239 /* 78 S> */ B(LdaCurrentContextSlot), U8(4), 239 /* 78 S> */ B(LdaCurrentContextSlot), U8(4),
240 B(ToNumber), R(2), 240 B(ToNumber), R(2),
241 B(Ldar), R(2), 241 B(Ldar), R(2),
242 B(Dec), U8(3), 242 B(Dec), U8(3),
243 /* 86 E> */ B(StaCurrentContextSlot), U8(4), 243 /* 86 E> */ B(StaCurrentContextSlot), U8(4),
244 B(Ldar), R(2), 244 B(Ldar), R(2),
245 /* 90 S> */ B(Return), 245 /* 90 S> */ B(Return),
246 ] 246 ]
247 constant pool: [ 247 constant pool: [
248 SHARED_FUNCTION_INFO_TYPE, 248 SHARED_FUNCTION_INFO_TYPE,
249 ] 249 ]
250 handlers: [ 250 handlers: [
251 ] 251 ]
252 252
253 --- 253 ---
254 snippet: " 254 snippet: "
255 var idx = 1; var a = [1, 2]; return a[idx++] = 2; 255 var idx = 1; var a = [1, 2]; return a[idx++] = 2;
256 " 256 "
257 frame size: 4 257 frame size: 4
258 parameter count: 1 258 parameter count: 1
259 bytecode array length: 28 259 bytecode array length: 28
260 bytecodes: [ 260 bytecodes: [
261 /* 30 E> */ B(StackCheck), 261 /* 30 E> */ B(StackCheck),
262 /* 44 S> */ B(LdaSmi), U8(1), 262 /* 44 S> */ B(LdaSmi), I8(1),
263 B(Star), R(0), 263 B(Star), R(0),
264 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 264 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
265 B(Star), R(1), 265 B(Star), R(1),
266 /* 63 S> */ B(Ldar), R(0), 266 /* 63 S> */ B(Ldar), R(0),
267 B(ToNumber), R(3), 267 B(ToNumber), R(3),
268 B(Ldar), R(3), 268 B(Ldar), R(3),
269 B(Inc), U8(2), 269 B(Inc), U8(2),
270 B(Star), R(0), 270 B(Star), R(0),
271 B(LdaSmi), U8(2), 271 B(LdaSmi), I8(2),
272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(3), 272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(3),
273 /* 84 S> */ B(Return), 273 /* 84 S> */ B(Return),
274 ] 274 ]
275 constant pool: [ 275 constant pool: [
276 CONSTANT_ELEMENTS_PAIR_TYPE, 276 CONSTANT_ELEMENTS_PAIR_TYPE,
277 ] 277 ]
278 handlers: [ 278 handlers: [
279 ] 279 ]
280 280
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698