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

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

Issue 2795183002: [Interpreter] Move ToBoolean elision in BytecodeGenerator. (Closed)
Patch Set: tests Created 3 years, 8 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; 10 var a = 1;
11 switch(a) { 11 switch(a) {
12 case 1: return 2; 12 case 1: return 2;
13 case 2: return 3; 13 case 2: return 3;
14 } 14 }
15 " 15 "
16 frame size: 3 16 frame size: 3
17 parameter count: 1 17 parameter count: 1
18 bytecode array length: 34 18 bytecode array length: 34
19 bytecodes: [ 19 bytecodes: [
20 /* 30 E> */ B(StackCheck), 20 /* 30 E> */ B(StackCheck),
21 /* 42 S> */ B(LdaSmi), I8(1), 21 /* 42 S> */ B(LdaSmi), I8(1),
22 B(Star), R(0), 22 B(Star), R(0),
23 B(Star), R(1), 23 B(Star), R(1),
24 /* 45 S> */ B(LdaSmi), I8(1), 24 /* 45 S> */ B(LdaSmi), I8(1),
25 B(TestEqualStrict), R(1), U8(2), 25 B(TestEqualStrict), R(1), U8(2),
26 B(Mov), R(0), R(2), 26 B(Mov), R(0), R(2),
27 B(JumpIfToBooleanTrue), U8(11), 27 B(JumpIfTrue), U8(11),
28 B(LdaSmi), I8(2), 28 B(LdaSmi), I8(2),
29 B(TestEqualStrict), R(2), U8(3), 29 B(TestEqualStrict), R(2), U8(3),
30 B(JumpIfTrue), U8(7), 30 B(JumpIfTrue), U8(7),
31 B(Jump), U8(8), 31 B(Jump), U8(8),
32 /* 66 S> */ B(LdaSmi), I8(2), 32 /* 66 S> */ B(LdaSmi), I8(2),
33 /* 97 S> */ B(Return), 33 /* 97 S> */ B(Return),
34 /* 85 S> */ B(LdaSmi), I8(3), 34 /* 85 S> */ B(LdaSmi), I8(3),
35 /* 97 S> */ B(Return), 35 /* 97 S> */ B(Return),
36 B(LdaUndefined), 36 B(LdaUndefined),
37 /* 97 S> */ B(Return), 37 /* 97 S> */ B(Return),
(...skipping 15 matching lines...) Expand all
53 parameter count: 1 53 parameter count: 1
54 bytecode array length: 40 54 bytecode array length: 40
55 bytecodes: [ 55 bytecodes: [
56 /* 30 E> */ B(StackCheck), 56 /* 30 E> */ B(StackCheck),
57 /* 42 S> */ B(LdaSmi), I8(1), 57 /* 42 S> */ B(LdaSmi), I8(1),
58 B(Star), R(0), 58 B(Star), R(0),
59 B(Star), R(1), 59 B(Star), R(1),
60 /* 45 S> */ B(LdaSmi), I8(1), 60 /* 45 S> */ B(LdaSmi), I8(1),
61 B(TestEqualStrict), R(1), U8(2), 61 B(TestEqualStrict), R(1), U8(2),
62 B(Mov), R(0), R(2), 62 B(Mov), R(0), R(2),
63 B(JumpIfToBooleanTrue), U8(11), 63 B(JumpIfTrue), U8(11),
64 B(LdaSmi), I8(2), 64 B(LdaSmi), I8(2),
65 B(TestEqualStrict), R(2), U8(3), 65 B(TestEqualStrict), R(2), U8(3),
66 B(JumpIfTrue), U8(10), 66 B(JumpIfTrue), U8(10),
67 B(Jump), U8(14), 67 B(Jump), U8(14),
68 /* 66 S> */ B(LdaSmi), I8(2), 68 /* 66 S> */ B(LdaSmi), I8(2),
69 B(Star), R(0), 69 B(Star), R(0),
70 /* 73 S> */ B(Jump), U8(8), 70 /* 73 S> */ B(Jump), U8(8),
71 /* 89 S> */ B(LdaSmi), I8(3), 71 /* 89 S> */ B(LdaSmi), I8(3),
72 B(Star), R(0), 72 B(Star), R(0),
73 /* 96 S> */ B(Jump), U8(2), 73 /* 96 S> */ B(Jump), U8(2),
(...skipping 17 matching lines...) Expand all
91 parameter count: 1 91 parameter count: 1
92 bytecode array length: 38 92 bytecode array length: 38
93 bytecodes: [ 93 bytecodes: [
94 /* 30 E> */ B(StackCheck), 94 /* 30 E> */ B(StackCheck),
95 /* 42 S> */ B(LdaSmi), I8(1), 95 /* 42 S> */ B(LdaSmi), I8(1),
96 B(Star), R(0), 96 B(Star), R(0),
97 B(Star), R(1), 97 B(Star), R(1),
98 /* 45 S> */ B(LdaSmi), I8(1), 98 /* 45 S> */ B(LdaSmi), I8(1),
99 B(TestEqualStrict), R(1), U8(2), 99 B(TestEqualStrict), R(1), U8(2),
100 B(Mov), R(0), R(2), 100 B(Mov), R(0), R(2),
101 B(JumpIfToBooleanTrue), U8(11), 101 B(JumpIfTrue), U8(11),
102 B(LdaSmi), I8(2), 102 B(LdaSmi), I8(2),
103 B(TestEqualStrict), R(2), U8(3), 103 B(TestEqualStrict), R(2), U8(3),
104 B(JumpIfTrue), U8(8), 104 B(JumpIfTrue), U8(8),
105 B(Jump), U8(12), 105 B(Jump), U8(12),
106 /* 66 S> */ B(LdaSmi), I8(2), 106 /* 66 S> */ B(LdaSmi), I8(2),
107 B(Star), R(0), 107 B(Star), R(0),
108 /* 98 S> */ B(LdaSmi), I8(3), 108 /* 98 S> */ B(LdaSmi), I8(3),
109 B(Star), R(0), 109 B(Star), R(0),
110 /* 105 S> */ B(Jump), U8(2), 110 /* 105 S> */ B(Jump), U8(2),
111 B(LdaUndefined), 111 B(LdaUndefined),
(...skipping 17 matching lines...) Expand all
129 parameter count: 1 129 parameter count: 1
130 bytecode array length: 38 130 bytecode array length: 38
131 bytecodes: [ 131 bytecodes: [
132 /* 30 E> */ B(StackCheck), 132 /* 30 E> */ B(StackCheck),
133 /* 42 S> */ B(LdaSmi), I8(1), 133 /* 42 S> */ B(LdaSmi), I8(1),
134 B(Star), R(0), 134 B(Star), R(0),
135 B(Star), R(1), 135 B(Star), R(1),
136 /* 45 S> */ B(LdaSmi), I8(2), 136 /* 45 S> */ B(LdaSmi), I8(2),
137 B(TestEqualStrict), R(1), U8(2), 137 B(TestEqualStrict), R(1), U8(2),
138 B(Mov), R(0), R(2), 138 B(Mov), R(0), R(2),
139 B(JumpIfToBooleanTrue), U8(11), 139 B(JumpIfTrue), U8(11),
140 B(LdaSmi), I8(3), 140 B(LdaSmi), I8(3),
141 B(TestEqualStrict), R(2), U8(3), 141 B(TestEqualStrict), R(2), U8(3),
142 B(JumpIfTrue), U8(6), 142 B(JumpIfTrue), U8(6),
143 B(Jump), U8(6), 143 B(Jump), U8(6),
144 /* 66 S> */ B(Jump), U8(10), 144 /* 66 S> */ B(Jump), U8(10),
145 /* 82 S> */ B(Jump), U8(8), 145 /* 82 S> */ B(Jump), U8(8),
146 /* 99 S> */ B(LdaSmi), I8(1), 146 /* 99 S> */ B(LdaSmi), I8(1),
147 B(Star), R(0), 147 B(Star), R(0),
148 /* 106 S> */ B(Jump), U8(2), 148 /* 106 S> */ B(Jump), U8(2),
149 B(LdaUndefined), 149 B(LdaUndefined),
(...skipping 18 matching lines...) Expand all
168 bytecode array length: 47 168 bytecode array length: 47
169 bytecodes: [ 169 bytecodes: [
170 /* 30 E> */ B(StackCheck), 170 /* 30 E> */ B(StackCheck),
171 /* 42 S> */ B(LdaSmi), I8(1), 171 /* 42 S> */ B(LdaSmi), I8(1),
172 B(Star), R(0), 172 B(Star), R(0),
173 /* 42 E> */ B(TypeOf), 173 /* 42 E> */ B(TypeOf),
174 B(Star), R(1), 174 B(Star), R(1),
175 /* 45 S> */ B(LdaSmi), I8(2), 175 /* 45 S> */ B(LdaSmi), I8(2),
176 B(TestEqualStrict), R(1), U8(2), 176 B(TestEqualStrict), R(1), U8(2),
177 B(Mov), R(1), R(2), 177 B(Mov), R(1), R(2),
178 B(JumpIfToBooleanTrue), U8(11), 178 B(JumpIfTrue), U8(11),
179 B(LdaSmi), I8(3), 179 B(LdaSmi), I8(3),
180 B(TestEqualStrict), R(2), U8(3), 180 B(TestEqualStrict), R(2), U8(3),
181 B(JumpIfTrue), U8(10), 181 B(JumpIfTrue), U8(10),
182 B(Jump), U8(14), 182 B(Jump), U8(14),
183 /* 74 S> */ B(LdaSmi), I8(1), 183 /* 74 S> */ B(LdaSmi), I8(1),
184 B(Star), R(0), 184 B(Star), R(0),
185 /* 81 S> */ B(Jump), U8(14), 185 /* 81 S> */ B(Jump), U8(14),
186 /* 97 S> */ B(LdaSmi), I8(2), 186 /* 97 S> */ B(LdaSmi), I8(2),
187 B(Star), R(0), 187 B(Star), R(0),
188 /* 104 S> */ B(Jump), U8(8), 188 /* 104 S> */ B(Jump), U8(8),
(...skipping 20 matching lines...) Expand all
209 parameter count: 1 209 parameter count: 1
210 bytecode array length: 32 210 bytecode array length: 32
211 bytecodes: [ 211 bytecodes: [
212 /* 30 E> */ B(StackCheck), 212 /* 30 E> */ B(StackCheck),
213 /* 42 S> */ B(LdaSmi), I8(1), 213 /* 42 S> */ B(LdaSmi), I8(1),
214 B(Star), R(0), 214 B(Star), R(0),
215 B(Star), R(1), 215 B(Star), R(1),
216 /* 45 S> */ B(TypeOf), 216 /* 45 S> */ B(TypeOf),
217 B(TestEqualStrict), R(1), U8(2), 217 B(TestEqualStrict), R(1), U8(2),
218 B(Mov), R(0), R(2), 218 B(Mov), R(0), R(2),
219 B(JumpIfToBooleanTrue), U8(4), 219 B(JumpIfTrue), U8(4),
220 B(Jump), U8(8), 220 B(Jump), U8(8),
221 /* 74 S> */ B(LdaSmi), I8(1), 221 /* 74 S> */ B(LdaSmi), I8(1),
222 B(Star), R(0), 222 B(Star), R(0),
223 /* 81 S> */ B(Jump), U8(8), 223 /* 81 S> */ B(Jump), U8(8),
224 /* 98 S> */ B(LdaSmi), I8(2), 224 /* 98 S> */ B(LdaSmi), I8(2),
225 B(Star), R(0), 225 B(Star), R(0),
226 /* 105 S> */ B(Jump), U8(2), 226 /* 105 S> */ B(Jump), U8(2),
227 B(LdaUndefined), 227 B(LdaUndefined),
228 /* 114 S> */ B(Return), 228 /* 114 S> */ B(Return),
229 ] 229 ]
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 parameter count: 1 311 parameter count: 1
312 bytecode array length: 292 312 bytecode array length: 292
313 bytecodes: [ 313 bytecodes: [
314 /* 30 E> */ B(StackCheck), 314 /* 30 E> */ B(StackCheck),
315 /* 42 S> */ B(LdaSmi), I8(1), 315 /* 42 S> */ B(LdaSmi), I8(1),
316 B(Star), R(0), 316 B(Star), R(0),
317 B(Star), R(1), 317 B(Star), R(1),
318 /* 45 S> */ B(LdaSmi), I8(1), 318 /* 45 S> */ B(LdaSmi), I8(1),
319 B(TestEqualStrict), R(1), U8(2), 319 B(TestEqualStrict), R(1), U8(2),
320 B(Mov), R(0), R(2), 320 B(Mov), R(0), R(2),
321 B(JumpIfToBooleanTrue), U8(11), 321 B(JumpIfTrue), U8(11),
322 B(LdaSmi), I8(2), 322 B(LdaSmi), I8(2),
323 B(TestEqualStrict), R(2), U8(3), 323 B(TestEqualStrict), R(2), U8(3),
324 B(JumpIfTrueConstant), U8(0), 324 B(JumpIfTrueConstant), U8(0),
325 B(JumpConstant), U8(1), 325 B(JumpConstant), U8(1),
326 /* 68 S> */ B(LdaSmi), I8(2), 326 /* 68 S> */ B(LdaSmi), I8(2),
327 B(Star), R(0), 327 B(Star), R(0),
328 /* 77 S> */ B(LdaSmi), I8(2), 328 /* 77 S> */ B(LdaSmi), I8(2),
329 B(Star), R(0), 329 B(Star), R(0),
330 /* 86 S> */ B(LdaSmi), I8(2), 330 /* 86 S> */ B(LdaSmi), I8(2),
331 B(Star), R(0), 331 B(Star), R(0),
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 parameter count: 1 481 parameter count: 1
482 bytecode array length: 62 482 bytecode array length: 62
483 bytecodes: [ 483 bytecodes: [
484 /* 30 E> */ B(StackCheck), 484 /* 30 E> */ B(StackCheck),
485 /* 42 S> */ B(LdaSmi), I8(1), 485 /* 42 S> */ B(LdaSmi), I8(1),
486 B(Star), R(0), 486 B(Star), R(0),
487 B(Star), R(2), 487 B(Star), R(2),
488 /* 45 S> */ B(LdaSmi), I8(1), 488 /* 45 S> */ B(LdaSmi), I8(1),
489 B(TestEqualStrict), R(2), U8(5), 489 B(TestEqualStrict), R(2), U8(5),
490 B(Mov), R(0), R(3), 490 B(Mov), R(0), R(3),
491 B(JumpIfToBooleanTrue), U8(11), 491 B(JumpIfTrue), U8(11),
492 B(LdaSmi), I8(2), 492 B(LdaSmi), I8(2),
493 B(TestEqualStrict), R(3), U8(6), 493 B(TestEqualStrict), R(3), U8(6),
494 B(JumpIfTrue), U8(34), 494 B(JumpIfTrue), U8(34),
495 B(Jump), U8(36), 495 B(Jump), U8(36),
496 /* 79 E> */ B(AddSmi), I8(1), R(0), U8(2), 496 /* 79 E> */ B(AddSmi), I8(1), R(0), U8(2),
497 B(Star), R(1), 497 B(Star), R(1),
498 /* 70 S> */ B(LdaSmi), I8(2), 498 /* 70 S> */ B(LdaSmi), I8(2),
499 B(TestEqualStrict), R(1), U8(3), 499 B(TestEqualStrict), R(1), U8(3),
500 B(Mov), R(1), R(4), 500 B(Mov), R(1), R(4),
501 B(JumpIfToBooleanTrue), U8(4), 501 B(JumpIfTrue), U8(4),
502 B(Jump), U8(8), 502 B(Jump), U8(8),
503 /* 101 S> */ B(LdaSmi), I8(1), 503 /* 101 S> */ B(LdaSmi), I8(1),
504 B(Star), R(0), 504 B(Star), R(0),
505 /* 108 S> */ B(Jump), U8(8), 505 /* 108 S> */ B(Jump), U8(8),
506 /* 131 S> */ B(LdaSmi), I8(2), 506 /* 131 S> */ B(LdaSmi), I8(2),
507 B(Star), R(0), 507 B(Star), R(0),
508 /* 138 S> */ B(Jump), U8(2), 508 /* 138 S> */ B(Jump), U8(2),
509 /* 176 S> */ B(LdaSmi), I8(3), 509 /* 176 S> */ B(LdaSmi), I8(3),
510 B(Star), R(0), 510 B(Star), R(0),
511 B(LdaUndefined), 511 B(LdaUndefined),
512 /* 185 S> */ B(Return), 512 /* 185 S> */ B(Return),
513 ] 513 ]
514 constant pool: [ 514 constant pool: [
515 ] 515 ]
516 handlers: [ 516 handlers: [
517 ] 517 ]
518 518
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698