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

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

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. 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: 43
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(LdaConstant), U8(0),
22 B(Star), R(2),
23 B(LdaSmi), I8(1),
22 B(Star), R(0), 24 B(Star), R(0),
23 B(Star), R(1), 25 B(LdaConstant), U8(1),
26 B(Star), R(2),
27 B(Mov), R(0), R(1),
24 /* 45 S> */ B(LdaSmi), I8(1), 28 /* 45 S> */ B(LdaSmi), I8(1),
25 B(TestEqualStrict), R(1), U8(2), 29 B(TestEqualStrict), R(1), U8(6),
26 B(Mov), R(0), R(2), 30 B(Mov), R(0), R(2),
27 B(JumpIfToBooleanTrue), U8(11), 31 B(JumpIfToBooleanTrue), U8(11),
28 B(LdaSmi), I8(2), 32 B(LdaSmi), I8(2),
29 B(TestEqualStrict), R(2), U8(3), 33 B(TestEqualStrict), R(2), U8(7),
30 B(JumpIfTrue), U8(7), 34 B(JumpIfTrue), U8(7),
31 B(Jump), U8(8), 35 B(Jump), U8(8),
32 /* 66 S> */ B(LdaSmi), I8(2), 36 /* 66 S> */ B(LdaSmi), I8(2),
33 /* 97 S> */ B(Return), 37 /* 97 S> */ B(Return),
34 /* 85 S> */ B(LdaSmi), I8(3), 38 /* 85 S> */ B(LdaSmi), I8(3),
35 /* 97 S> */ B(Return), 39 /* 97 S> */ B(Return),
36 B(LdaUndefined), 40 B(LdaUndefined),
37 /* 97 S> */ B(Return), 41 /* 97 S> */ B(Return),
38 ] 42 ]
39 constant pool: [ 43 constant pool: [
44 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
45 ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"],
40 ] 46 ]
41 handlers: [ 47 handlers: [
42 ] 48 ]
43 49
44 --- 50 ---
45 snippet: " 51 snippet: "
46 var a = 1; 52 var a = 1;
47 switch(a) { 53 switch(a) {
48 case 1: a = 2; break; 54 case 1: a = 2; break;
49 case 2: a = 3; break; 55 case 2: a = 3; break;
50 } 56 }
51 " 57 "
52 frame size: 3 58 frame size: 4
53 parameter count: 1 59 parameter count: 1
54 bytecode array length: 40 60 bytecode array length: 57
55 bytecodes: [ 61 bytecodes: [
56 /* 30 E> */ B(StackCheck), 62 /* 30 E> */ B(StackCheck),
57 /* 42 S> */ B(LdaSmi), I8(1), 63 /* 42 S> */ B(LdaConstant), U8(0),
64 B(Star), R(2),
65 B(LdaSmi), I8(1),
58 B(Star), R(0), 66 B(Star), R(0),
59 B(Star), R(1), 67 B(LdaConstant), U8(1),
68 B(Star), R(2),
69 B(Mov), R(0), R(1),
60 /* 45 S> */ B(LdaSmi), I8(1), 70 /* 45 S> */ B(LdaSmi), I8(1),
61 B(TestEqualStrict), R(1), U8(2), 71 B(TestEqualStrict), R(1), U8(8),
62 B(Mov), R(0), R(2), 72 B(Mov), R(0), R(2),
63 B(JumpIfToBooleanTrue), U8(11), 73 B(JumpIfToBooleanTrue), U8(11),
64 B(LdaSmi), I8(2), 74 B(LdaSmi), I8(2),
65 B(TestEqualStrict), R(2), U8(3), 75 B(TestEqualStrict), R(2), U8(11),
66 B(JumpIfTrue), U8(10), 76 B(JumpIfTrue), U8(14),
67 B(Jump), U8(14), 77 B(Jump), U8(22),
68 /* 66 S> */ B(LdaSmi), I8(2), 78 /* 66 S> */ B(LdaConstant), U8(0),
79 B(Star), R(3),
80 B(LdaSmi), I8(2),
69 B(Star), R(0), 81 B(Star), R(0),
70 /* 73 S> */ B(Jump), U8(8), 82 /* 73 S> */ B(Jump), U8(12),
71 /* 89 S> */ B(LdaSmi), I8(3), 83 /* 89 S> */ B(LdaConstant), U8(0),
84 B(Star), R(3),
85 B(LdaSmi), I8(3),
72 B(Star), R(0), 86 B(Star), R(0),
73 /* 96 S> */ B(Jump), U8(2), 87 /* 96 S> */ B(Jump), U8(2),
74 B(LdaUndefined), 88 B(LdaUndefined),
75 /* 105 S> */ B(Return), 89 /* 105 S> */ B(Return),
76 ] 90 ]
77 constant pool: [ 91 constant pool: [
92 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
93 ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"],
78 ] 94 ]
79 handlers: [ 95 handlers: [
80 ] 96 ]
81 97
82 --- 98 ---
83 snippet: " 99 snippet: "
84 var a = 1; 100 var a = 1;
85 switch(a) { 101 switch(a) {
86 case 1: a = 2; // fall-through 102 case 1: a = 2; // fall-through
87 case 2: a = 3; break; 103 case 2: a = 3; break;
88 } 104 }
89 " 105 "
90 frame size: 3 106 frame size: 4
91 parameter count: 1 107 parameter count: 1
92 bytecode array length: 38 108 bytecode array length: 55
93 bytecodes: [ 109 bytecodes: [
94 /* 30 E> */ B(StackCheck), 110 /* 30 E> */ B(StackCheck),
95 /* 42 S> */ B(LdaSmi), I8(1), 111 /* 42 S> */ B(LdaConstant), U8(0),
112 B(Star), R(2),
113 B(LdaSmi), I8(1),
96 B(Star), R(0), 114 B(Star), R(0),
97 B(Star), R(1), 115 B(LdaConstant), U8(1),
116 B(Star), R(2),
117 B(Mov), R(0), R(1),
98 /* 45 S> */ B(LdaSmi), I8(1), 118 /* 45 S> */ B(LdaSmi), I8(1),
99 B(TestEqualStrict), R(1), U8(2), 119 B(TestEqualStrict), R(1), U8(8),
100 B(Mov), R(0), R(2), 120 B(Mov), R(0), R(2),
101 B(JumpIfToBooleanTrue), U8(11), 121 B(JumpIfToBooleanTrue), U8(11),
102 B(LdaSmi), I8(2), 122 B(LdaSmi), I8(2),
103 B(TestEqualStrict), R(2), U8(3), 123 B(TestEqualStrict), R(2), U8(11),
104 B(JumpIfTrue), U8(8), 124 B(JumpIfTrue), U8(12),
105 B(Jump), U8(12), 125 B(Jump), U8(20),
106 /* 66 S> */ B(LdaSmi), I8(2), 126 /* 66 S> */ B(LdaConstant), U8(0),
127 B(Star), R(3),
128 B(LdaSmi), I8(2),
107 B(Star), R(0), 129 B(Star), R(0),
108 /* 98 S> */ B(LdaSmi), I8(3), 130 /* 98 S> */ B(LdaConstant), U8(0),
131 B(Star), R(3),
132 B(LdaSmi), I8(3),
109 B(Star), R(0), 133 B(Star), R(0),
110 /* 105 S> */ B(Jump), U8(2), 134 /* 105 S> */ B(Jump), U8(2),
111 B(LdaUndefined), 135 B(LdaUndefined),
112 /* 114 S> */ B(Return), 136 /* 114 S> */ B(Return),
113 ] 137 ]
114 constant pool: [ 138 constant pool: [
139 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
140 ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"],
115 ] 141 ]
116 handlers: [ 142 handlers: [
117 ] 143 ]
118 144
119 --- 145 ---
120 snippet: " 146 snippet: "
121 var a = 1; 147 var a = 1;
122 switch(a) { 148 switch(a) {
123 case 2: break; 149 case 2: break;
124 case 3: break; 150 case 3: break;
125 default: a = 1; break; 151 default: a = 1; break;
126 } 152 }
127 " 153 "
128 frame size: 3 154 frame size: 4
129 parameter count: 1 155 parameter count: 1
130 bytecode array length: 38 156 bytecode array length: 51
131 bytecodes: [ 157 bytecodes: [
132 /* 30 E> */ B(StackCheck), 158 /* 30 E> */ B(StackCheck),
133 /* 42 S> */ B(LdaSmi), I8(1), 159 /* 42 S> */ B(LdaConstant), U8(0),
160 B(Star), R(2),
161 B(LdaSmi), I8(1),
134 B(Star), R(0), 162 B(Star), R(0),
135 B(Star), R(1), 163 B(LdaConstant), U8(1),
164 B(Star), R(2),
165 B(Mov), R(0), R(1),
136 /* 45 S> */ B(LdaSmi), I8(2), 166 /* 45 S> */ B(LdaSmi), I8(2),
137 B(TestEqualStrict), R(1), U8(2), 167 B(TestEqualStrict), R(1), U8(6),
138 B(Mov), R(0), R(2), 168 B(Mov), R(0), R(2),
139 B(JumpIfToBooleanTrue), U8(11), 169 B(JumpIfToBooleanTrue), U8(11),
140 B(LdaSmi), I8(3), 170 B(LdaSmi), I8(3),
141 B(TestEqualStrict), R(2), U8(3), 171 B(TestEqualStrict), R(2), U8(7),
142 B(JumpIfTrue), U8(6), 172 B(JumpIfTrue), U8(6),
143 B(Jump), U8(6), 173 B(Jump), U8(6),
144 /* 66 S> */ B(Jump), U8(10), 174 /* 66 S> */ B(Jump), U8(14),
145 /* 82 S> */ B(Jump), U8(8), 175 /* 82 S> */ B(Jump), U8(12),
146 /* 99 S> */ B(LdaSmi), I8(1), 176 /* 99 S> */ B(LdaConstant), U8(0),
177 B(Star), R(3),
178 B(LdaSmi), I8(1),
147 B(Star), R(0), 179 B(Star), R(0),
148 /* 106 S> */ B(Jump), U8(2), 180 /* 106 S> */ B(Jump), U8(2),
149 B(LdaUndefined), 181 B(LdaUndefined),
150 /* 115 S> */ B(Return), 182 /* 115 S> */ B(Return),
151 ] 183 ]
152 constant pool: [ 184 constant pool: [
185 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
186 ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"],
153 ] 187 ]
154 handlers: [ 188 handlers: [
155 ] 189 ]
156 190
157 --- 191 ---
158 snippet: " 192 snippet: "
159 var a = 1; 193 var a = 1;
160 switch(typeof(a)) { 194 switch(typeof(a)) {
161 case 2: a = 1; break; 195 case 2: a = 1; break;
162 case 3: a = 2; break; 196 case 3: a = 2; break;
163 default: a = 3; break; 197 default: a = 3; break;
164 } 198 }
165 " 199 "
166 frame size: 3 200 frame size: 4
167 parameter count: 1 201 parameter count: 1
168 bytecode array length: 47 202 bytecode array length: 69
169 bytecodes: [ 203 bytecodes: [
170 /* 30 E> */ B(StackCheck), 204 /* 30 E> */ B(StackCheck),
171 /* 42 S> */ B(LdaSmi), I8(1), 205 /* 42 S> */ B(LdaConstant), U8(0),
206 B(Star), R(2),
207 B(LdaSmi), I8(1),
172 B(Star), R(0), 208 B(Star), R(0),
209 B(LdaConstant), U8(1),
210 B(Star), R(2),
211 B(Ldar), R(0),
173 /* 42 E> */ B(TypeOf), 212 /* 42 E> */ B(TypeOf),
174 B(Star), R(1), 213 B(Star), R(1),
175 /* 45 S> */ B(LdaSmi), I8(2), 214 /* 45 S> */ B(LdaSmi), I8(2),
176 B(TestEqualStrict), R(1), U8(2), 215 B(TestEqualStrict), R(1), U8(8),
177 B(Mov), R(1), R(2), 216 B(Mov), R(1), R(2),
178 B(JumpIfToBooleanTrue), U8(11), 217 B(JumpIfToBooleanTrue), U8(11),
179 B(LdaSmi), I8(3), 218 B(LdaSmi), I8(3),
180 B(TestEqualStrict), R(2), U8(3), 219 B(TestEqualStrict), R(2), U8(11),
181 B(JumpIfTrue), U8(10), 220 B(JumpIfTrue), U8(14),
182 B(Jump), U8(14), 221 B(Jump), U8(22),
183 /* 74 S> */ B(LdaSmi), I8(1), 222 /* 74 S> */ B(LdaConstant), U8(0),
223 B(Star), R(3),
224 B(LdaSmi), I8(1),
184 B(Star), R(0), 225 B(Star), R(0),
185 /* 81 S> */ B(Jump), U8(14), 226 /* 81 S> */ B(Jump), U8(22),
186 /* 97 S> */ B(LdaSmi), I8(2), 227 /* 97 S> */ B(LdaConstant), U8(0),
228 B(Star), R(3),
229 B(LdaSmi), I8(2),
187 B(Star), R(0), 230 B(Star), R(0),
188 /* 104 S> */ B(Jump), U8(8), 231 /* 104 S> */ B(Jump), U8(12),
189 /* 121 S> */ B(LdaSmi), I8(3), 232 /* 121 S> */ B(LdaConstant), U8(0),
233 B(Star), R(3),
234 B(LdaSmi), I8(3),
190 B(Star), R(0), 235 B(Star), R(0),
191 /* 128 S> */ B(Jump), U8(2), 236 /* 128 S> */ B(Jump), U8(2),
192 B(LdaUndefined), 237 B(LdaUndefined),
193 /* 137 S> */ B(Return), 238 /* 137 S> */ B(Return),
194 ] 239 ]
195 constant pool: [ 240 constant pool: [
241 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
242 ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"],
196 ] 243 ]
197 handlers: [ 244 handlers: [
198 ] 245 ]
199 246
200 --- 247 ---
201 snippet: " 248 snippet: "
202 var a = 1; 249 var a = 1;
203 switch(a) { 250 switch(a) {
204 case typeof(a): a = 1; break; 251 case typeof(a): a = 1; break;
205 default: a = 2; break; 252 default: a = 2; break;
206 } 253 }
207 " 254 "
208 frame size: 3 255 frame size: 4
209 parameter count: 1 256 parameter count: 1
210 bytecode array length: 32 257 bytecode array length: 51
211 bytecodes: [ 258 bytecodes: [
212 /* 30 E> */ B(StackCheck), 259 /* 30 E> */ B(StackCheck),
213 /* 42 S> */ B(LdaSmi), I8(1), 260 /* 42 S> */ B(LdaConstant), U8(0),
261 B(Star), R(2),
262 B(LdaSmi), I8(1),
214 B(Star), R(0), 263 B(Star), R(0),
215 B(Star), R(1), 264 B(LdaConstant), U8(1),
216 /* 45 S> */ B(TypeOf), 265 B(Star), R(2),
217 B(TestEqualStrict), R(1), U8(2), 266 B(Mov), R(0), R(1),
267 /* 45 S> */ B(Ldar), R(1),
268 B(TypeOf),
269 B(TestEqualStrict), R(1), U8(8),
218 B(Mov), R(0), R(2), 270 B(Mov), R(0), R(2),
219 B(JumpIfToBooleanTrue), U8(4), 271 B(JumpIfToBooleanTrue), U8(4),
220 B(Jump), U8(8), 272 B(Jump), U8(12),
221 /* 74 S> */ B(LdaSmi), I8(1), 273 /* 74 S> */ B(LdaConstant), U8(0),
274 B(Star), R(3),
275 B(LdaSmi), I8(1),
222 B(Star), R(0), 276 B(Star), R(0),
223 /* 81 S> */ B(Jump), U8(8), 277 /* 81 S> */ B(Jump), U8(12),
224 /* 98 S> */ B(LdaSmi), I8(2), 278 /* 98 S> */ B(LdaConstant), U8(0),
279 B(Star), R(3),
280 B(LdaSmi), I8(2),
225 B(Star), R(0), 281 B(Star), R(0),
226 /* 105 S> */ B(Jump), U8(2), 282 /* 105 S> */ B(Jump), U8(2),
227 B(LdaUndefined), 283 B(LdaUndefined),
228 /* 114 S> */ B(Return), 284 /* 114 S> */ B(Return),
229 ] 285 ]
230 constant pool: [ 286 constant pool: [
287 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
288 ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"],
231 ] 289 ]
232 handlers: [ 290 handlers: [
233 ] 291 ]
234 292
235 --- 293 ---
236 snippet: " 294 snippet: "
237 var a = 1; 295 var a = 1;
238 switch(a) { 296 switch(a) {
239 case 1: 297 case 1:
240 a = 2; 298 a = 2;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 a = 2; 358 a = 2;
301 a = 2; 359 a = 2;
302 a = 2; 360 a = 2;
303 a = 2; 361 a = 2;
304 break; 362 break;
305 case 2: 363 case 2:
306 a = 3; 364 a = 3;
307 break; 365 break;
308 } 366 }
309 " 367 "
310 frame size: 3 368 frame size: 4
311 parameter count: 1 369 parameter count: 1
312 bytecode array length: 292 370 bytecode array length: 561
313 bytecodes: [ 371 bytecodes: [
314 /* 30 E> */ B(StackCheck), 372 /* 30 E> */ B(StackCheck),
315 /* 42 S> */ B(LdaSmi), I8(1), 373 /* 42 S> */ B(LdaConstant), U8(0),
316 B(Star), R(0), 374 B(Star), R(2),
317 B(Star), R(1), 375 B(LdaSmi), I8(1),
376 B(Star), R(0),
377 B(LdaConstant), U8(1),
378 B(Star), R(2),
379 B(Mov), R(0), R(1),
318 /* 45 S> */ B(LdaSmi), I8(1), 380 /* 45 S> */ B(LdaSmi), I8(1),
319 B(TestEqualStrict), R(1), U8(2), 381 B(TestEqualStrict), R(1), U8(134),
320 B(Mov), R(0), R(2), 382 B(Mov), R(0), R(2),
321 B(JumpIfToBooleanTrue), U8(11), 383 B(JumpIfToBooleanTrue), U8(11),
322 B(LdaSmi), I8(2), 384 B(LdaSmi), I8(2),
323 B(TestEqualStrict), R(2), U8(3), 385 B(TestEqualStrict), R(2), U8(137),
324 B(JumpIfTrueConstant), U8(0), 386 B(JumpIfTrueConstant), U8(2),
325 B(JumpConstant), U8(1), 387 B(JumpConstant), U8(3),
326 /* 68 S> */ B(LdaSmi), I8(2), 388 /* 68 S> */ B(LdaConstant), U8(0),
327 B(Star), R(0), 389 B(Star), R(3),
328 /* 77 S> */ B(LdaSmi), I8(2), 390 B(LdaSmi), I8(2),
329 B(Star), R(0), 391 B(Star), R(0),
330 /* 86 S> */ B(LdaSmi), I8(2), 392 /* 77 S> */ B(LdaConstant), U8(0),
331 B(Star), R(0), 393 B(Star), R(3),
332 /* 95 S> */ B(LdaSmi), I8(2), 394 B(LdaSmi), I8(2),
333 B(Star), R(0), 395 B(Star), R(0),
334 /* 104 S> */ B(LdaSmi), I8(2), 396 /* 86 S> */ B(LdaConstant), U8(0),
335 B(Star), R(0), 397 B(Star), R(3),
336 /* 113 S> */ B(LdaSmi), I8(2), 398 B(LdaSmi), I8(2),
337 B(Star), R(0), 399 B(Star), R(0),
338 /* 122 S> */ B(LdaSmi), I8(2), 400 /* 95 S> */ B(LdaConstant), U8(0),
339 B(Star), R(0), 401 B(Star), R(3),
340 /* 131 S> */ B(LdaSmi), I8(2), 402 B(LdaSmi), I8(2),
341 B(Star), R(0), 403 B(Star), R(0),
342 /* 140 S> */ B(LdaSmi), I8(2), 404 /* 104 S> */ B(LdaConstant), U8(0),
343 B(Star), R(0), 405 B(Star), R(3),
344 /* 149 S> */ B(LdaSmi), I8(2), 406 B(LdaSmi), I8(2),
345 B(Star), R(0), 407 B(Star), R(0),
346 /* 158 S> */ B(LdaSmi), I8(2), 408 /* 113 S> */ B(LdaConstant), U8(0),
347 B(Star), R(0), 409 B(Star), R(3),
348 /* 167 S> */ B(LdaSmi), I8(2), 410 B(LdaSmi), I8(2),
349 B(Star), R(0), 411 B(Star), R(0),
350 /* 176 S> */ B(LdaSmi), I8(2), 412 /* 122 S> */ B(LdaConstant), U8(0),
351 B(Star), R(0), 413 B(Star), R(3),
352 /* 185 S> */ B(LdaSmi), I8(2), 414 B(LdaSmi), I8(2),
353 B(Star), R(0), 415 B(Star), R(0),
354 /* 194 S> */ B(LdaSmi), I8(2), 416 /* 131 S> */ B(LdaConstant), U8(0),
355 B(Star), R(0), 417 B(Star), R(3),
356 /* 203 S> */ B(LdaSmi), I8(2), 418 B(LdaSmi), I8(2),
357 B(Star), R(0), 419 B(Star), R(0),
358 /* 212 S> */ B(LdaSmi), I8(2), 420 /* 140 S> */ B(LdaConstant), U8(0),
359 B(Star), R(0), 421 B(Star), R(3),
360 /* 221 S> */ B(LdaSmi), I8(2), 422 B(LdaSmi), I8(2),
361 B(Star), R(0), 423 B(Star), R(0),
362 /* 230 S> */ B(LdaSmi), I8(2), 424 /* 149 S> */ B(LdaConstant), U8(0),
363 B(Star), R(0), 425 B(Star), R(3),
364 /* 239 S> */ B(LdaSmi), I8(2), 426 B(LdaSmi), I8(2),
365 B(Star), R(0), 427 B(Star), R(0),
366 /* 248 S> */ B(LdaSmi), I8(2), 428 /* 158 S> */ B(LdaConstant), U8(0),
367 B(Star), R(0), 429 B(Star), R(3),
368 /* 257 S> */ B(LdaSmi), I8(2), 430 B(LdaSmi), I8(2),
369 B(Star), R(0), 431 B(Star), R(0),
370 /* 266 S> */ B(LdaSmi), I8(2), 432 /* 167 S> */ B(LdaConstant), U8(0),
371 B(Star), R(0), 433 B(Star), R(3),
372 /* 275 S> */ B(LdaSmi), I8(2), 434 B(LdaSmi), I8(2),
373 B(Star), R(0), 435 B(Star), R(0),
374 /* 284 S> */ B(LdaSmi), I8(2), 436 /* 176 S> */ B(LdaConstant), U8(0),
375 B(Star), R(0), 437 B(Star), R(3),
376 /* 293 S> */ B(LdaSmi), I8(2), 438 B(LdaSmi), I8(2),
377 B(Star), R(0), 439 B(Star), R(0),
378 /* 302 S> */ B(LdaSmi), I8(2), 440 /* 185 S> */ B(LdaConstant), U8(0),
379 B(Star), R(0), 441 B(Star), R(3),
380 /* 311 S> */ B(LdaSmi), I8(2), 442 B(LdaSmi), I8(2),
381 B(Star), R(0), 443 B(Star), R(0),
382 /* 320 S> */ B(LdaSmi), I8(2), 444 /* 194 S> */ B(LdaConstant), U8(0),
383 B(Star), R(0), 445 B(Star), R(3),
384 /* 329 S> */ B(LdaSmi), I8(2), 446 B(LdaSmi), I8(2),
385 B(Star), R(0), 447 B(Star), R(0),
386 /* 338 S> */ B(LdaSmi), I8(2), 448 /* 203 S> */ B(LdaConstant), U8(0),
387 B(Star), R(0), 449 B(Star), R(3),
388 /* 347 S> */ B(LdaSmi), I8(2), 450 B(LdaSmi), I8(2),
389 B(Star), R(0), 451 B(Star), R(0),
390 /* 356 S> */ B(LdaSmi), I8(2), 452 /* 212 S> */ B(LdaConstant), U8(0),
391 B(Star), R(0), 453 B(Star), R(3),
392 /* 365 S> */ B(LdaSmi), I8(2), 454 B(LdaSmi), I8(2),
393 B(Star), R(0), 455 B(Star), R(0),
394 /* 374 S> */ B(LdaSmi), I8(2), 456 /* 221 S> */ B(LdaConstant), U8(0),
395 B(Star), R(0), 457 B(Star), R(3),
396 /* 383 S> */ B(LdaSmi), I8(2), 458 B(LdaSmi), I8(2),
397 B(Star), R(0), 459 B(Star), R(0),
398 /* 392 S> */ B(LdaSmi), I8(2), 460 /* 230 S> */ B(LdaConstant), U8(0),
399 B(Star), R(0), 461 B(Star), R(3),
400 /* 401 S> */ B(LdaSmi), I8(2), 462 B(LdaSmi), I8(2),
401 B(Star), R(0), 463 B(Star), R(0),
402 /* 410 S> */ B(LdaSmi), I8(2), 464 /* 239 S> */ B(LdaConstant), U8(0),
403 B(Star), R(0), 465 B(Star), R(3),
404 /* 419 S> */ B(LdaSmi), I8(2), 466 B(LdaSmi), I8(2),
405 B(Star), R(0), 467 B(Star), R(0),
406 /* 428 S> */ B(LdaSmi), I8(2), 468 /* 248 S> */ B(LdaConstant), U8(0),
407 B(Star), R(0), 469 B(Star), R(3),
408 /* 437 S> */ B(LdaSmi), I8(2), 470 B(LdaSmi), I8(2),
409 B(Star), R(0), 471 B(Star), R(0),
410 /* 446 S> */ B(LdaSmi), I8(2), 472 /* 257 S> */ B(LdaConstant), U8(0),
411 B(Star), R(0), 473 B(Star), R(3),
412 /* 455 S> */ B(LdaSmi), I8(2), 474 B(LdaSmi), I8(2),
413 B(Star), R(0), 475 B(Star), R(0),
414 /* 464 S> */ B(LdaSmi), I8(2), 476 /* 266 S> */ B(LdaConstant), U8(0),
415 B(Star), R(0), 477 B(Star), R(3),
416 /* 473 S> */ B(LdaSmi), I8(2), 478 B(LdaSmi), I8(2),
417 B(Star), R(0), 479 B(Star), R(0),
418 /* 482 S> */ B(LdaSmi), I8(2), 480 /* 275 S> */ B(LdaConstant), U8(0),
419 B(Star), R(0), 481 B(Star), R(3),
420 /* 491 S> */ B(LdaSmi), I8(2), 482 B(LdaSmi), I8(2),
421 B(Star), R(0), 483 B(Star), R(0),
422 /* 500 S> */ B(LdaSmi), I8(2), 484 /* 284 S> */ B(LdaConstant), U8(0),
423 B(Star), R(0), 485 B(Star), R(3),
424 /* 509 S> */ B(LdaSmi), I8(2), 486 B(LdaSmi), I8(2),
425 B(Star), R(0), 487 B(Star), R(0),
426 /* 518 S> */ B(LdaSmi), I8(2), 488 /* 293 S> */ B(LdaConstant), U8(0),
427 B(Star), R(0), 489 B(Star), R(3),
428 /* 527 S> */ B(LdaSmi), I8(2), 490 B(LdaSmi), I8(2),
429 B(Star), R(0), 491 B(Star), R(0),
430 /* 536 S> */ B(LdaSmi), I8(2), 492 /* 302 S> */ B(LdaConstant), U8(0),
431 B(Star), R(0), 493 B(Star), R(3),
432 /* 545 S> */ B(LdaSmi), I8(2), 494 B(LdaSmi), I8(2),
433 B(Star), R(0), 495 B(Star), R(0),
434 /* 554 S> */ B(LdaSmi), I8(2), 496 /* 311 S> */ B(LdaConstant), U8(0),
435 B(Star), R(0), 497 B(Star), R(3),
436 /* 563 S> */ B(LdaSmi), I8(2), 498 B(LdaSmi), I8(2),
437 B(Star), R(0), 499 B(Star), R(0),
438 /* 572 S> */ B(LdaSmi), I8(2), 500 /* 320 S> */ B(LdaConstant), U8(0),
439 B(Star), R(0), 501 B(Star), R(3),
440 /* 581 S> */ B(LdaSmi), I8(2), 502 B(LdaSmi), I8(2),
441 B(Star), R(0), 503 B(Star), R(0),
442 /* 590 S> */ B(LdaSmi), I8(2), 504 /* 329 S> */ B(LdaConstant), U8(0),
443 B(Star), R(0), 505 B(Star), R(3),
444 /* 599 S> */ B(LdaSmi), I8(2), 506 B(LdaSmi), I8(2),
445 B(Star), R(0), 507 B(Star), R(0),
446 /* 608 S> */ B(LdaSmi), I8(2), 508 /* 338 S> */ B(LdaConstant), U8(0),
447 B(Star), R(0), 509 B(Star), R(3),
448 /* 617 S> */ B(LdaSmi), I8(2), 510 B(LdaSmi), I8(2),
449 B(Star), R(0), 511 B(Star), R(0),
450 /* 626 S> */ B(LdaSmi), I8(2), 512 /* 347 S> */ B(LdaConstant), U8(0),
451 B(Star), R(0), 513 B(Star), R(3),
452 /* 635 S> */ B(LdaSmi), I8(2), 514 B(LdaSmi), I8(2),
453 B(Star), R(0), 515 B(Star), R(0),
454 /* 644 S> */ B(Jump), U8(8), 516 /* 356 S> */ B(LdaConstant), U8(0),
455 /* 662 S> */ B(LdaSmi), I8(3), 517 B(Star), R(3),
518 B(LdaSmi), I8(2),
519 B(Star), R(0),
520 /* 365 S> */ B(LdaConstant), U8(0),
521 B(Star), R(3),
522 B(LdaSmi), I8(2),
523 B(Star), R(0),
524 /* 374 S> */ B(LdaConstant), U8(0),
525 B(Star), R(3),
526 B(LdaSmi), I8(2),
527 B(Star), R(0),
528 /* 383 S> */ B(LdaConstant), U8(0),
529 B(Star), R(3),
530 B(LdaSmi), I8(2),
531 B(Star), R(0),
532 /* 392 S> */ B(LdaConstant), U8(0),
533 B(Star), R(3),
534 B(LdaSmi), I8(2),
535 B(Star), R(0),
536 /* 401 S> */ B(LdaConstant), U8(0),
537 B(Star), R(3),
538 B(LdaSmi), I8(2),
539 B(Star), R(0),
540 /* 410 S> */ B(LdaConstant), U8(0),
541 B(Star), R(3),
542 B(LdaSmi), I8(2),
543 B(Star), R(0),
544 /* 419 S> */ B(LdaConstant), U8(0),
545 B(Star), R(3),
546 B(LdaSmi), I8(2),
547 B(Star), R(0),
548 /* 428 S> */ B(LdaConstant), U8(0),
549 B(Star), R(3),
550 B(LdaSmi), I8(2),
551 B(Star), R(0),
552 /* 437 S> */ B(LdaConstant), U8(0),
553 B(Star), R(3),
554 B(LdaSmi), I8(2),
555 B(Star), R(0),
556 /* 446 S> */ B(LdaConstant), U8(0),
557 B(Star), R(3),
558 B(LdaSmi), I8(2),
559 B(Star), R(0),
560 /* 455 S> */ B(LdaConstant), U8(0),
561 B(Star), R(3),
562 B(LdaSmi), I8(2),
563 B(Star), R(0),
564 /* 464 S> */ B(LdaConstant), U8(0),
565 B(Star), R(3),
566 B(LdaSmi), I8(2),
567 B(Star), R(0),
568 /* 473 S> */ B(LdaConstant), U8(0),
569 B(Star), R(3),
570 B(LdaSmi), I8(2),
571 B(Star), R(0),
572 /* 482 S> */ B(LdaConstant), U8(0),
573 B(Star), R(3),
574 B(LdaSmi), I8(2),
575 B(Star), R(0),
576 /* 491 S> */ B(LdaConstant), U8(0),
577 B(Star), R(3),
578 B(LdaSmi), I8(2),
579 B(Star), R(0),
580 /* 500 S> */ B(LdaConstant), U8(0),
581 B(Star), R(3),
582 B(LdaSmi), I8(2),
583 B(Star), R(0),
584 /* 509 S> */ B(LdaConstant), U8(0),
585 B(Star), R(3),
586 B(LdaSmi), I8(2),
587 B(Star), R(0),
588 /* 518 S> */ B(LdaConstant), U8(0),
589 B(Star), R(3),
590 B(LdaSmi), I8(2),
591 B(Star), R(0),
592 /* 527 S> */ B(LdaConstant), U8(0),
593 B(Star), R(3),
594 B(LdaSmi), I8(2),
595 B(Star), R(0),
596 /* 536 S> */ B(LdaConstant), U8(0),
597 B(Star), R(3),
598 B(LdaSmi), I8(2),
599 B(Star), R(0),
600 /* 545 S> */ B(LdaConstant), U8(0),
601 B(Star), R(3),
602 B(LdaSmi), I8(2),
603 B(Star), R(0),
604 /* 554 S> */ B(LdaConstant), U8(0),
605 B(Star), R(3),
606 B(LdaSmi), I8(2),
607 B(Star), R(0),
608 /* 563 S> */ B(LdaConstant), U8(0),
609 B(Star), R(3),
610 B(LdaSmi), I8(2),
611 B(Star), R(0),
612 /* 572 S> */ B(LdaConstant), U8(0),
613 B(Star), R(3),
614 B(LdaSmi), I8(2),
615 B(Star), R(0),
616 /* 581 S> */ B(LdaConstant), U8(0),
617 B(Star), R(3),
618 B(LdaSmi), I8(2),
619 B(Star), R(0),
620 /* 590 S> */ B(LdaConstant), U8(0),
621 B(Star), R(3),
622 B(LdaSmi), I8(2),
623 B(Star), R(0),
624 /* 599 S> */ B(LdaConstant), U8(0),
625 B(Star), R(3),
626 B(LdaSmi), I8(2),
627 B(Star), R(0),
628 /* 608 S> */ B(LdaConstant), U8(0),
629 B(Star), R(3),
630 B(LdaSmi), I8(2),
631 B(Star), R(0),
632 /* 617 S> */ B(LdaConstant), U8(0),
633 B(Star), R(3),
634 B(LdaSmi), I8(2),
635 B(Star), R(0),
636 /* 626 S> */ B(LdaConstant), U8(0),
637 B(Star), R(3),
638 B(LdaSmi), I8(2),
639 B(Star), R(0),
640 /* 635 S> */ B(LdaConstant), U8(0),
641 B(Star), R(3),
642 B(LdaSmi), I8(2),
643 B(Star), R(0),
644 /* 644 S> */ B(Jump), U8(12),
645 /* 662 S> */ B(LdaConstant), U8(0),
646 B(Star), R(3),
647 B(LdaSmi), I8(3),
456 B(Star), R(0), 648 B(Star), R(0),
457 /* 671 S> */ B(Jump), U8(2), 649 /* 671 S> */ B(Jump), U8(2),
458 B(LdaUndefined), 650 B(LdaUndefined),
459 /* 680 S> */ B(Return), 651 /* 680 S> */ B(Return),
460 ] 652 ]
461 constant pool: [ 653 constant pool: [
462 Smi [262], 654 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
463 Smi [266], 655 ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"],
656 Smi [518],
657 Smi [526],
464 ] 658 ]
465 handlers: [ 659 handlers: [
466 ] 660 ]
467 661
468 --- 662 ---
469 snippet: " 663 snippet: "
470 var a = 1; 664 var a = 1;
471 switch(a) { 665 switch(a) {
472 case 1: 666 case 1:
473 switch(a + 1) { 667 switch(a + 1) {
474 case 2 : a = 1; break; 668 case 2 : a = 1; break;
475 default : a = 2; break; 669 default : a = 2; break;
476 } // fall-through 670 } // fall-through
477 case 2: a = 3; 671 case 2: a = 3;
478 } 672 }
479 " 673 "
480 frame size: 5 674 frame size: 6
481 parameter count: 1 675 parameter count: 1
482 bytecode array length: 62 676 bytecode array length: 87
483 bytecodes: [ 677 bytecodes: [
484 /* 30 E> */ B(StackCheck), 678 /* 30 E> */ B(StackCheck),
485 /* 42 S> */ B(LdaSmi), I8(1), 679 /* 42 S> */ B(LdaConstant), U8(0),
680 B(Star), R(3),
681 B(LdaSmi), I8(1),
486 B(Star), R(0), 682 B(Star), R(0),
487 B(Star), R(2), 683 B(LdaConstant), U8(1),
684 B(Star), R(3),
685 B(Mov), R(0), R(2),
488 /* 45 S> */ B(LdaSmi), I8(1), 686 /* 45 S> */ B(LdaSmi), I8(1),
489 B(TestEqualStrict), R(2), U8(5), 687 B(TestEqualStrict), R(2), U8(15),
490 B(Mov), R(0), R(3), 688 B(Mov), R(0), R(3),
491 B(JumpIfToBooleanTrue), U8(11), 689 B(JumpIfToBooleanTrue), U8(11),
492 B(LdaSmi), I8(2), 690 B(LdaSmi), I8(2),
493 B(TestEqualStrict), R(3), U8(6), 691 B(TestEqualStrict), R(3), U8(18),
494 B(JumpIfTrue), U8(34), 692 B(JumpIfTrue), U8(46),
495 B(Jump), U8(36), 693 B(Jump), U8(52),
496 /* 79 E> */ B(AddSmi), I8(1), R(0), U8(2), 694 B(LdaConstant), U8(1),
695 B(Star), R(4),
696 /* 79 E> */ B(AddSmi), I8(1), R(0), U8(6),
497 B(Star), R(1), 697 B(Star), R(1),
498 /* 70 S> */ B(LdaSmi), I8(2), 698 /* 70 S> */ B(LdaSmi), I8(2),
499 B(TestEqualStrict), R(1), U8(3), 699 B(TestEqualStrict), R(1), U8(11),
500 B(Mov), R(1), R(4), 700 B(Mov), R(1), R(4),
501 B(JumpIfToBooleanTrue), U8(4), 701 B(JumpIfToBooleanTrue), U8(4),
502 B(Jump), U8(8), 702 B(Jump), U8(12),
503 /* 101 S> */ B(LdaSmi), I8(1), 703 /* 101 S> */ B(LdaConstant), U8(0),
704 B(Star), R(5),
705 B(LdaSmi), I8(1),
504 B(Star), R(0), 706 B(Star), R(0),
505 /* 108 S> */ B(Jump), U8(8), 707 /* 108 S> */ B(Jump), U8(12),
506 /* 131 S> */ B(LdaSmi), I8(2), 708 /* 131 S> */ B(LdaConstant), U8(0),
709 B(Star), R(5),
710 B(LdaSmi), I8(2),
507 B(Star), R(0), 711 B(Star), R(0),
508 /* 138 S> */ B(Jump), U8(2), 712 /* 138 S> */ B(Jump), U8(2),
509 /* 176 S> */ B(LdaSmi), I8(3), 713 /* 176 S> */ B(LdaConstant), U8(0),
714 B(Star), R(4),
715 B(LdaSmi), I8(3),
510 B(Star), R(0), 716 B(Star), R(0),
511 B(LdaUndefined), 717 B(LdaUndefined),
512 /* 185 S> */ B(Return), 718 /* 185 S> */ B(Return),
513 ] 719 ]
514 constant pool: [ 720 constant pool: [
721 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
722 ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"],
515 ] 723 ]
516 handlers: [ 724 handlers: [
517 ] 725 ]
518 726
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698