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

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

Issue 2640273002: [ignition] Expect 'I' for signed bytecode operands (Closed)
Patch Set: Rebase Created 3 years, 10 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), U8(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), U8(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(JumpIfToBooleanTrue), U8(11),
28 B(LdaSmi), U8(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), U8(2), 32 /* 66 S> */ B(LdaSmi), I8(2),
33 /* 97 S> */ B(Return), 33 /* 97 S> */ B(Return),
34 /* 85 S> */ B(LdaSmi), U8(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),
38 ] 38 ]
39 constant pool: [ 39 constant pool: [
40 ] 40 ]
41 handlers: [ 41 handlers: [
42 ] 42 ]
43 43
44 --- 44 ---
45 snippet: " 45 snippet: "
46 var a = 1; 46 var a = 1;
47 switch(a) { 47 switch(a) {
48 case 1: a = 2; break; 48 case 1: a = 2; break;
49 case 2: a = 3; break; 49 case 2: a = 3; break;
50 } 50 }
51 " 51 "
52 frame size: 3 52 frame size: 3
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), U8(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), U8(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(JumpIfToBooleanTrue), U8(11),
64 B(LdaSmi), U8(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), U8(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), U8(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),
74 B(LdaUndefined), 74 B(LdaUndefined),
75 /* 105 S> */ B(Return), 75 /* 105 S> */ B(Return),
76 ] 76 ]
77 constant pool: [ 77 constant pool: [
78 ] 78 ]
79 handlers: [ 79 handlers: [
80 ] 80 ]
81 81
82 --- 82 ---
83 snippet: " 83 snippet: "
84 var a = 1; 84 var a = 1;
85 switch(a) { 85 switch(a) {
86 case 1: a = 2; // fall-through 86 case 1: a = 2; // fall-through
87 case 2: a = 3; break; 87 case 2: a = 3; break;
88 } 88 }
89 " 89 "
90 frame size: 3 90 frame size: 3
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), U8(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), U8(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(JumpIfToBooleanTrue), U8(11),
102 B(LdaSmi), U8(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), U8(2), 106 /* 66 S> */ B(LdaSmi), I8(2),
107 B(Star), R(0), 107 B(Star), R(0),
108 /* 98 S> */ B(LdaSmi), U8(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),
112 /* 114 S> */ B(Return), 112 /* 114 S> */ B(Return),
113 ] 113 ]
114 constant pool: [ 114 constant pool: [
115 ] 115 ]
116 handlers: [ 116 handlers: [
117 ] 117 ]
118 118
119 --- 119 ---
120 snippet: " 120 snippet: "
121 var a = 1; 121 var a = 1;
122 switch(a) { 122 switch(a) {
123 case 2: break; 123 case 2: break;
124 case 3: break; 124 case 3: break;
125 default: a = 1; break; 125 default: a = 1; break;
126 } 126 }
127 " 127 "
128 frame size: 3 128 frame size: 3
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), U8(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), U8(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(JumpIfToBooleanTrue), U8(11),
140 B(LdaSmi), U8(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), U8(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),
150 /* 115 S> */ B(Return), 150 /* 115 S> */ B(Return),
151 ] 151 ]
152 constant pool: [ 152 constant pool: [
153 ] 153 ]
154 handlers: [ 154 handlers: [
155 ] 155 ]
156 156
157 --- 157 ---
158 snippet: " 158 snippet: "
159 var a = 1; 159 var a = 1;
160 switch(typeof(a)) { 160 switch(typeof(a)) {
161 case 2: a = 1; break; 161 case 2: a = 1; break;
162 case 3: a = 2; break; 162 case 3: a = 2; break;
163 default: a = 3; break; 163 default: a = 3; break;
164 } 164 }
165 " 165 "
166 frame size: 3 166 frame size: 3
167 parameter count: 1 167 parameter count: 1
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), U8(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), U8(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(JumpIfToBooleanTrue), U8(11),
179 B(LdaSmi), U8(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), U8(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), U8(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),
189 /* 121 S> */ B(LdaSmi), U8(3), 189 /* 121 S> */ B(LdaSmi), I8(3),
190 B(Star), R(0), 190 B(Star), R(0),
191 /* 128 S> */ B(Jump), U8(2), 191 /* 128 S> */ B(Jump), U8(2),
192 B(LdaUndefined), 192 B(LdaUndefined),
193 /* 137 S> */ B(Return), 193 /* 137 S> */ B(Return),
194 ] 194 ]
195 constant pool: [ 195 constant pool: [
196 ] 196 ]
197 handlers: [ 197 handlers: [
198 ] 198 ]
199 199
200 --- 200 ---
201 snippet: " 201 snippet: "
202 var a = 1; 202 var a = 1;
203 switch(a) { 203 switch(a) {
204 case typeof(a): a = 1; break; 204 case typeof(a): a = 1; break;
205 default: a = 2; break; 205 default: a = 2; break;
206 } 206 }
207 " 207 "
208 frame size: 3 208 frame size: 3
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), U8(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(JumpIfToBooleanTrue), U8(4),
220 B(Jump), U8(8), 220 B(Jump), U8(8),
221 /* 74 S> */ B(LdaSmi), U8(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), U8(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 ]
230 constant pool: [ 230 constant pool: [
231 ] 231 ]
232 handlers: [ 232 handlers: [
233 ] 233 ]
234 234
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 case 2: 305 case 2:
306 a = 3; 306 a = 3;
307 break; 307 break;
308 } 308 }
309 " 309 "
310 frame size: 3 310 frame size: 3
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), U8(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), U8(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(JumpIfToBooleanTrue), U8(11),
322 B(LdaSmi), U8(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), U8(2), 326 /* 68 S> */ B(LdaSmi), I8(2),
327 B(Star), R(0), 327 B(Star), R(0),
328 /* 77 S> */ B(LdaSmi), U8(2), 328 /* 77 S> */ B(LdaSmi), I8(2),
329 B(Star), R(0), 329 B(Star), R(0),
330 /* 86 S> */ B(LdaSmi), U8(2), 330 /* 86 S> */ B(LdaSmi), I8(2),
331 B(Star), R(0), 331 B(Star), R(0),
332 /* 95 S> */ B(LdaSmi), U8(2), 332 /* 95 S> */ B(LdaSmi), I8(2),
333 B(Star), R(0), 333 B(Star), R(0),
334 /* 104 S> */ B(LdaSmi), U8(2), 334 /* 104 S> */ B(LdaSmi), I8(2),
335 B(Star), R(0), 335 B(Star), R(0),
336 /* 113 S> */ B(LdaSmi), U8(2), 336 /* 113 S> */ B(LdaSmi), I8(2),
337 B(Star), R(0), 337 B(Star), R(0),
338 /* 122 S> */ B(LdaSmi), U8(2), 338 /* 122 S> */ B(LdaSmi), I8(2),
339 B(Star), R(0), 339 B(Star), R(0),
340 /* 131 S> */ B(LdaSmi), U8(2), 340 /* 131 S> */ B(LdaSmi), I8(2),
341 B(Star), R(0), 341 B(Star), R(0),
342 /* 140 S> */ B(LdaSmi), U8(2), 342 /* 140 S> */ B(LdaSmi), I8(2),
343 B(Star), R(0), 343 B(Star), R(0),
344 /* 149 S> */ B(LdaSmi), U8(2), 344 /* 149 S> */ B(LdaSmi), I8(2),
345 B(Star), R(0), 345 B(Star), R(0),
346 /* 158 S> */ B(LdaSmi), U8(2), 346 /* 158 S> */ B(LdaSmi), I8(2),
347 B(Star), R(0), 347 B(Star), R(0),
348 /* 167 S> */ B(LdaSmi), U8(2), 348 /* 167 S> */ B(LdaSmi), I8(2),
349 B(Star), R(0), 349 B(Star), R(0),
350 /* 176 S> */ B(LdaSmi), U8(2), 350 /* 176 S> */ B(LdaSmi), I8(2),
351 B(Star), R(0), 351 B(Star), R(0),
352 /* 185 S> */ B(LdaSmi), U8(2), 352 /* 185 S> */ B(LdaSmi), I8(2),
353 B(Star), R(0), 353 B(Star), R(0),
354 /* 194 S> */ B(LdaSmi), U8(2), 354 /* 194 S> */ B(LdaSmi), I8(2),
355 B(Star), R(0), 355 B(Star), R(0),
356 /* 203 S> */ B(LdaSmi), U8(2), 356 /* 203 S> */ B(LdaSmi), I8(2),
357 B(Star), R(0), 357 B(Star), R(0),
358 /* 212 S> */ B(LdaSmi), U8(2), 358 /* 212 S> */ B(LdaSmi), I8(2),
359 B(Star), R(0), 359 B(Star), R(0),
360 /* 221 S> */ B(LdaSmi), U8(2), 360 /* 221 S> */ B(LdaSmi), I8(2),
361 B(Star), R(0), 361 B(Star), R(0),
362 /* 230 S> */ B(LdaSmi), U8(2), 362 /* 230 S> */ B(LdaSmi), I8(2),
363 B(Star), R(0), 363 B(Star), R(0),
364 /* 239 S> */ B(LdaSmi), U8(2), 364 /* 239 S> */ B(LdaSmi), I8(2),
365 B(Star), R(0), 365 B(Star), R(0),
366 /* 248 S> */ B(LdaSmi), U8(2), 366 /* 248 S> */ B(LdaSmi), I8(2),
367 B(Star), R(0), 367 B(Star), R(0),
368 /* 257 S> */ B(LdaSmi), U8(2), 368 /* 257 S> */ B(LdaSmi), I8(2),
369 B(Star), R(0), 369 B(Star), R(0),
370 /* 266 S> */ B(LdaSmi), U8(2), 370 /* 266 S> */ B(LdaSmi), I8(2),
371 B(Star), R(0), 371 B(Star), R(0),
372 /* 275 S> */ B(LdaSmi), U8(2), 372 /* 275 S> */ B(LdaSmi), I8(2),
373 B(Star), R(0), 373 B(Star), R(0),
374 /* 284 S> */ B(LdaSmi), U8(2), 374 /* 284 S> */ B(LdaSmi), I8(2),
375 B(Star), R(0), 375 B(Star), R(0),
376 /* 293 S> */ B(LdaSmi), U8(2), 376 /* 293 S> */ B(LdaSmi), I8(2),
377 B(Star), R(0), 377 B(Star), R(0),
378 /* 302 S> */ B(LdaSmi), U8(2), 378 /* 302 S> */ B(LdaSmi), I8(2),
379 B(Star), R(0), 379 B(Star), R(0),
380 /* 311 S> */ B(LdaSmi), U8(2), 380 /* 311 S> */ B(LdaSmi), I8(2),
381 B(Star), R(0), 381 B(Star), R(0),
382 /* 320 S> */ B(LdaSmi), U8(2), 382 /* 320 S> */ B(LdaSmi), I8(2),
383 B(Star), R(0), 383 B(Star), R(0),
384 /* 329 S> */ B(LdaSmi), U8(2), 384 /* 329 S> */ B(LdaSmi), I8(2),
385 B(Star), R(0), 385 B(Star), R(0),
386 /* 338 S> */ B(LdaSmi), U8(2), 386 /* 338 S> */ B(LdaSmi), I8(2),
387 B(Star), R(0), 387 B(Star), R(0),
388 /* 347 S> */ B(LdaSmi), U8(2), 388 /* 347 S> */ B(LdaSmi), I8(2),
389 B(Star), R(0), 389 B(Star), R(0),
390 /* 356 S> */ B(LdaSmi), U8(2), 390 /* 356 S> */ B(LdaSmi), I8(2),
391 B(Star), R(0), 391 B(Star), R(0),
392 /* 365 S> */ B(LdaSmi), U8(2), 392 /* 365 S> */ B(LdaSmi), I8(2),
393 B(Star), R(0), 393 B(Star), R(0),
394 /* 374 S> */ B(LdaSmi), U8(2), 394 /* 374 S> */ B(LdaSmi), I8(2),
395 B(Star), R(0), 395 B(Star), R(0),
396 /* 383 S> */ B(LdaSmi), U8(2), 396 /* 383 S> */ B(LdaSmi), I8(2),
397 B(Star), R(0), 397 B(Star), R(0),
398 /* 392 S> */ B(LdaSmi), U8(2), 398 /* 392 S> */ B(LdaSmi), I8(2),
399 B(Star), R(0), 399 B(Star), R(0),
400 /* 401 S> */ B(LdaSmi), U8(2), 400 /* 401 S> */ B(LdaSmi), I8(2),
401 B(Star), R(0), 401 B(Star), R(0),
402 /* 410 S> */ B(LdaSmi), U8(2), 402 /* 410 S> */ B(LdaSmi), I8(2),
403 B(Star), R(0), 403 B(Star), R(0),
404 /* 419 S> */ B(LdaSmi), U8(2), 404 /* 419 S> */ B(LdaSmi), I8(2),
405 B(Star), R(0), 405 B(Star), R(0),
406 /* 428 S> */ B(LdaSmi), U8(2), 406 /* 428 S> */ B(LdaSmi), I8(2),
407 B(Star), R(0), 407 B(Star), R(0),
408 /* 437 S> */ B(LdaSmi), U8(2), 408 /* 437 S> */ B(LdaSmi), I8(2),
409 B(Star), R(0), 409 B(Star), R(0),
410 /* 446 S> */ B(LdaSmi), U8(2), 410 /* 446 S> */ B(LdaSmi), I8(2),
411 B(Star), R(0), 411 B(Star), R(0),
412 /* 455 S> */ B(LdaSmi), U8(2), 412 /* 455 S> */ B(LdaSmi), I8(2),
413 B(Star), R(0), 413 B(Star), R(0),
414 /* 464 S> */ B(LdaSmi), U8(2), 414 /* 464 S> */ B(LdaSmi), I8(2),
415 B(Star), R(0), 415 B(Star), R(0),
416 /* 473 S> */ B(LdaSmi), U8(2), 416 /* 473 S> */ B(LdaSmi), I8(2),
417 B(Star), R(0), 417 B(Star), R(0),
418 /* 482 S> */ B(LdaSmi), U8(2), 418 /* 482 S> */ B(LdaSmi), I8(2),
419 B(Star), R(0), 419 B(Star), R(0),
420 /* 491 S> */ B(LdaSmi), U8(2), 420 /* 491 S> */ B(LdaSmi), I8(2),
421 B(Star), R(0), 421 B(Star), R(0),
422 /* 500 S> */ B(LdaSmi), U8(2), 422 /* 500 S> */ B(LdaSmi), I8(2),
423 B(Star), R(0), 423 B(Star), R(0),
424 /* 509 S> */ B(LdaSmi), U8(2), 424 /* 509 S> */ B(LdaSmi), I8(2),
425 B(Star), R(0), 425 B(Star), R(0),
426 /* 518 S> */ B(LdaSmi), U8(2), 426 /* 518 S> */ B(LdaSmi), I8(2),
427 B(Star), R(0), 427 B(Star), R(0),
428 /* 527 S> */ B(LdaSmi), U8(2), 428 /* 527 S> */ B(LdaSmi), I8(2),
429 B(Star), R(0), 429 B(Star), R(0),
430 /* 536 S> */ B(LdaSmi), U8(2), 430 /* 536 S> */ B(LdaSmi), I8(2),
431 B(Star), R(0), 431 B(Star), R(0),
432 /* 545 S> */ B(LdaSmi), U8(2), 432 /* 545 S> */ B(LdaSmi), I8(2),
433 B(Star), R(0), 433 B(Star), R(0),
434 /* 554 S> */ B(LdaSmi), U8(2), 434 /* 554 S> */ B(LdaSmi), I8(2),
435 B(Star), R(0), 435 B(Star), R(0),
436 /* 563 S> */ B(LdaSmi), U8(2), 436 /* 563 S> */ B(LdaSmi), I8(2),
437 B(Star), R(0), 437 B(Star), R(0),
438 /* 572 S> */ B(LdaSmi), U8(2), 438 /* 572 S> */ B(LdaSmi), I8(2),
439 B(Star), R(0), 439 B(Star), R(0),
440 /* 581 S> */ B(LdaSmi), U8(2), 440 /* 581 S> */ B(LdaSmi), I8(2),
441 B(Star), R(0), 441 B(Star), R(0),
442 /* 590 S> */ B(LdaSmi), U8(2), 442 /* 590 S> */ B(LdaSmi), I8(2),
443 B(Star), R(0), 443 B(Star), R(0),
444 /* 599 S> */ B(LdaSmi), U8(2), 444 /* 599 S> */ B(LdaSmi), I8(2),
445 B(Star), R(0), 445 B(Star), R(0),
446 /* 608 S> */ B(LdaSmi), U8(2), 446 /* 608 S> */ B(LdaSmi), I8(2),
447 B(Star), R(0), 447 B(Star), R(0),
448 /* 617 S> */ B(LdaSmi), U8(2), 448 /* 617 S> */ B(LdaSmi), I8(2),
449 B(Star), R(0), 449 B(Star), R(0),
450 /* 626 S> */ B(LdaSmi), U8(2), 450 /* 626 S> */ B(LdaSmi), I8(2),
451 B(Star), R(0), 451 B(Star), R(0),
452 /* 635 S> */ B(LdaSmi), U8(2), 452 /* 635 S> */ B(LdaSmi), I8(2),
453 B(Star), R(0), 453 B(Star), R(0),
454 /* 644 S> */ B(Jump), U8(8), 454 /* 644 S> */ B(Jump), U8(8),
455 /* 662 S> */ B(LdaSmi), U8(3), 455 /* 662 S> */ B(LdaSmi), I8(3),
456 B(Star), R(0), 456 B(Star), R(0),
457 /* 671 S> */ B(Jump), U8(2), 457 /* 671 S> */ B(Jump), U8(2),
458 B(LdaUndefined), 458 B(LdaUndefined),
459 /* 680 S> */ B(Return), 459 /* 680 S> */ B(Return),
460 ] 460 ]
461 constant pool: [ 461 constant pool: [
462 Smi [262], 462 Smi [262],
463 Smi [266], 463 Smi [266],
464 ] 464 ]
465 handlers: [ 465 handlers: [
466 ] 466 ]
467 467
468 --- 468 ---
469 snippet: " 469 snippet: "
470 var a = 1; 470 var a = 1;
471 switch(a) { 471 switch(a) {
472 case 1: 472 case 1:
473 switch(a + 1) { 473 switch(a + 1) {
474 case 2 : a = 1; break; 474 case 2 : a = 1; break;
475 default : a = 2; break; 475 default : a = 2; break;
476 } // fall-through 476 } // fall-through
477 case 2: a = 3; 477 case 2: a = 3;
478 } 478 }
479 " 479 "
480 frame size: 5 480 frame size: 5
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), U8(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), U8(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(JumpIfToBooleanTrue), U8(11),
492 B(LdaSmi), U8(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), U8(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), U8(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(JumpIfToBooleanTrue), U8(4),
502 B(Jump), U8(8), 502 B(Jump), U8(8),
503 /* 101 S> */ B(LdaSmi), U8(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), U8(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), U8(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