• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: mixed
7execute: yes
8wrap: no
9test function name: f
10
11---
12snippet: "
13  function f() {
14    if (0) {
15      return 1;
16    } else {
17      return -1;
18    }
19  };
20  f();
21"
22frame size: 0
23parameter count: 1
24bytecode array length: 4
25bytecodes: [
26  /*   10 E> */ B(StackCheck),
27  /*   55 S> */ B(LdaSmi), U8(-1),
28  /*   70 S> */ B(Return),
29]
30constant pool: [
31]
32handlers: [
33]
34
35---
36snippet: "
37  function f() {
38    if ('lucky') {
39      return 1;
40    } else {
41      return -1;
42    }
43  };
44  f();
45"
46frame size: 0
47parameter count: 1
48bytecode array length: 4
49bytecodes: [
50  /*   10 E> */ B(StackCheck),
51  /*   36 S> */ B(LdaSmi), U8(1),
52  /*   76 S> */ B(Return),
53]
54constant pool: [
55]
56handlers: [
57]
58
59---
60snippet: "
61  function f() {
62    if (false) {
63      return 1;
64    } else {
65      return -1;
66    }
67  };
68  f();
69"
70frame size: 0
71parameter count: 1
72bytecode array length: 4
73bytecodes: [
74  /*   10 E> */ B(StackCheck),
75  /*   59 S> */ B(LdaSmi), U8(-1),
76  /*   74 S> */ B(Return),
77]
78constant pool: [
79]
80handlers: [
81]
82
83---
84snippet: "
85  function f() {
86    if (false) {
87      return 1;
88    }
89  };
90  f();
91"
92frame size: 0
93parameter count: 1
94bytecode array length: 3
95bytecodes: [
96  /*   10 E> */ B(StackCheck),
97  /*   17 S> */ B(LdaUndefined),
98  /*   48 S> */ B(Return),
99]
100constant pool: [
101]
102handlers: [
103]
104
105---
106snippet: "
107  function f() {
108    var a = 1;
109    if (a) {
110      a += 1;
111    } else {
112      return 2;
113    }
114  };
115  f();
116"
117frame size: 2
118parameter count: 1
119bytecode array length: 23
120bytecodes: [
121  /*   10 E> */ B(StackCheck),
122  /*   25 S> */ B(LdaSmi), U8(1),
123                B(Star), R(0),
124  /*   30 S> */ B(JumpIfToBooleanFalse), U8(13),
125  /*   43 S> */ B(LdaSmi), U8(1),
126                B(Add), R(0),
127                B(Mov), R(0), R(1),
128                B(Star), R(0),
129                B(Jump), U8(5),
130  /*   66 S> */ B(LdaSmi), U8(2),
131  /*   80 S> */ B(Return),
132                B(LdaUndefined),
133  /*   80 S> */ B(Return),
134]
135constant pool: [
136]
137handlers: [
138]
139
140---
141snippet: "
142  function f(a) {
143    if (a <= 0) {
144      return 200;
145    } else {
146      return -200;
147    }
148  };
149  f(99);
150"
151frame size: 0
152parameter count: 2
153bytecode array length: 18
154bytecodes: [
155  /*   10 E> */ B(StackCheck),
156  /*   18 S> */ B(LdaZero),
157  /*   24 E> */ B(TestLessThanOrEqual), R(arg0),
158                B(JumpIfFalse), U8(7),
159  /*   36 S> */ B(Wide), B(LdaSmi), U16(200),
160  /*   80 S> */ B(Return),
161  /*   63 S> */ B(Wide), B(LdaSmi), U16(-200),
162  /*   80 S> */ B(Return),
163                B(LdaUndefined),
164  /*   80 S> */ B(Return),
165]
166constant pool: [
167]
168handlers: [
169]
170
171---
172snippet: "
173  function f(a, b) { if (a in b) { return 200; } }f('prop', { prop: 'yes'});
174"
175frame size: 0
176parameter count: 3
177bytecode array length: 14
178bytecodes: [
179  /*   10 E> */ B(StackCheck),
180  /*   19 S> */ B(Ldar), R(arg1),
181  /*   25 E> */ B(TestIn), R(arg0),
182                B(JumpIfFalse), U8(7),
183  /*   33 S> */ B(Wide), B(LdaSmi), U16(200),
184  /*   47 S> */ B(Return),
185                B(LdaUndefined),
186  /*   47 S> */ B(Return),
187]
188constant pool: [
189]
190handlers: [
191]
192
193---
194snippet: "
195  function f(z) { var a = 0; var b = 0; if (a === 0.01) {
196    b = a; a = b;
197    b = a; a = b;
198    b = a; a = b;
199    b = a; a = b;
200    b = a; a = b;
201    b = a; a = b;
202    b = a; a = b;
203    b = a; a = b;
204    b = a; a = b;
205    b = a; a = b;
206    b = a; a = b;
207    b = a; a = b;
208    b = a; a = b;
209    b = a; a = b;
210    b = a; a = b;
211    b = a; a = b;
212    b = a; a = b;
213    b = a; a = b;
214    b = a; a = b;
215    b = a; a = b;
216    b = a; a = b;
217    b = a; a = b;
218    b = a; a = b;
219    b = a; a = b;
220    b = a; a = b;
221    b = a; a = b;
222    b = a; a = b;
223    b = a; a = b;
224    b = a; a = b;
225    b = a; a = b;
226    b = a; a = b;
227    b = a; a = b;
228    b = a; a = b;
229    b = a; a = b;
230    b = a; a = b;
231    b = a; a = b;
232    b = a; a = b;
233    b = a; a = b;
234    b = a; a = b;
235    b = a; a = b;
236    b = a; a = b;
237    b = a; a = b;
238    b = a; a = b;
239    b = a; a = b;
240    b = a; a = b;
241    b = a; a = b;
242    b = a; a = b;
243    b = a; a = b;
244    b = a; a = b;
245    b = a; a = b;
246    b = a; a = b;
247    b = a; a = b;
248    b = a; a = b;
249    b = a; a = b;
250    b = a; a = b;
251    b = a; a = b;
252    b = a; a = b;
253    b = a; a = b;
254    b = a; a = b;
255    b = a; a = b;
256    b = a; a = b;
257    b = a; a = b;
258    b = a; a = b;
259    b = a; a = b;
260   return 200; } else { return -200; } } f(0.001);
261"
262frame size: 2
263parameter count: 2
264bytecode array length: 409
265bytecodes: [
266  /*   10 E> */ B(StackCheck),
267  /*   24 S> */ B(LdaZero),
268                B(Star), R(0),
269  /*   35 S> */ B(LdaZero),
270                B(Star), R(1),
271  /*   38 S> */ B(LdaConstant), U8(0),
272  /*   44 E> */ B(TestEqualStrict), R(0),
273                B(JumpIfFalseConstant), U8(1),
274  /*   58 S> */ B(Mov), R(0), R(1),
275  /*   65 S> */ B(Mov), R(1), R(0),
276  /*   74 S> */ B(Mov), R(0), R(1),
277  /*   81 S> */ B(Mov), R(1), R(0),
278  /*   90 S> */ B(Mov), R(0), R(1),
279  /*   97 S> */ B(Mov), R(1), R(0),
280  /*  106 S> */ B(Mov), R(0), R(1),
281  /*  113 S> */ B(Mov), R(1), R(0),
282  /*  122 S> */ B(Mov), R(0), R(1),
283  /*  129 S> */ B(Mov), R(1), R(0),
284  /*  138 S> */ B(Mov), R(0), R(1),
285  /*  145 S> */ B(Mov), R(1), R(0),
286  /*  154 S> */ B(Mov), R(0), R(1),
287  /*  161 S> */ B(Mov), R(1), R(0),
288  /*  170 S> */ B(Mov), R(0), R(1),
289  /*  177 S> */ B(Mov), R(1), R(0),
290  /*  186 S> */ B(Mov), R(0), R(1),
291  /*  193 S> */ B(Mov), R(1), R(0),
292  /*  202 S> */ B(Mov), R(0), R(1),
293  /*  209 S> */ B(Mov), R(1), R(0),
294  /*  218 S> */ B(Mov), R(0), R(1),
295  /*  225 S> */ B(Mov), R(1), R(0),
296  /*  234 S> */ B(Mov), R(0), R(1),
297  /*  241 S> */ B(Mov), R(1), R(0),
298  /*  250 S> */ B(Mov), R(0), R(1),
299  /*  257 S> */ B(Mov), R(1), R(0),
300  /*  266 S> */ B(Mov), R(0), R(1),
301  /*  273 S> */ B(Mov), R(1), R(0),
302  /*  282 S> */ B(Mov), R(0), R(1),
303  /*  289 S> */ B(Mov), R(1), R(0),
304  /*  298 S> */ B(Mov), R(0), R(1),
305  /*  305 S> */ B(Mov), R(1), R(0),
306  /*  314 S> */ B(Mov), R(0), R(1),
307  /*  321 S> */ B(Mov), R(1), R(0),
308  /*  330 S> */ B(Mov), R(0), R(1),
309  /*  337 S> */ B(Mov), R(1), R(0),
310  /*  346 S> */ B(Mov), R(0), R(1),
311  /*  353 S> */ B(Mov), R(1), R(0),
312  /*  362 S> */ B(Mov), R(0), R(1),
313  /*  369 S> */ B(Mov), R(1), R(0),
314  /*  378 S> */ B(Mov), R(0), R(1),
315  /*  385 S> */ B(Mov), R(1), R(0),
316  /*  394 S> */ B(Mov), R(0), R(1),
317  /*  401 S> */ B(Mov), R(1), R(0),
318  /*  410 S> */ B(Mov), R(0), R(1),
319  /*  417 S> */ B(Mov), R(1), R(0),
320  /*  426 S> */ B(Mov), R(0), R(1),
321  /*  433 S> */ B(Mov), R(1), R(0),
322  /*  442 S> */ B(Mov), R(0), R(1),
323  /*  449 S> */ B(Mov), R(1), R(0),
324  /*  458 S> */ B(Mov), R(0), R(1),
325  /*  465 S> */ B(Mov), R(1), R(0),
326  /*  474 S> */ B(Mov), R(0), R(1),
327  /*  481 S> */ B(Mov), R(1), R(0),
328  /*  490 S> */ B(Mov), R(0), R(1),
329  /*  497 S> */ B(Mov), R(1), R(0),
330  /*  506 S> */ B(Mov), R(0), R(1),
331  /*  513 S> */ B(Mov), R(1), R(0),
332  /*  522 S> */ B(Mov), R(0), R(1),
333  /*  529 S> */ B(Mov), R(1), R(0),
334  /*  538 S> */ B(Mov), R(0), R(1),
335  /*  545 S> */ B(Mov), R(1), R(0),
336  /*  554 S> */ B(Mov), R(0), R(1),
337  /*  561 S> */ B(Mov), R(1), R(0),
338  /*  570 S> */ B(Mov), R(0), R(1),
339  /*  577 S> */ B(Mov), R(1), R(0),
340  /*  586 S> */ B(Mov), R(0), R(1),
341  /*  593 S> */ B(Mov), R(1), R(0),
342  /*  602 S> */ B(Mov), R(0), R(1),
343  /*  609 S> */ B(Mov), R(1), R(0),
344  /*  618 S> */ B(Mov), R(0), R(1),
345  /*  625 S> */ B(Mov), R(1), R(0),
346  /*  634 S> */ B(Mov), R(0), R(1),
347  /*  641 S> */ B(Mov), R(1), R(0),
348  /*  650 S> */ B(Mov), R(0), R(1),
349  /*  657 S> */ B(Mov), R(1), R(0),
350  /*  666 S> */ B(Mov), R(0), R(1),
351  /*  673 S> */ B(Mov), R(1), R(0),
352  /*  682 S> */ B(Mov), R(0), R(1),
353  /*  689 S> */ B(Mov), R(1), R(0),
354  /*  698 S> */ B(Mov), R(0), R(1),
355  /*  705 S> */ B(Mov), R(1), R(0),
356  /*  714 S> */ B(Mov), R(0), R(1),
357  /*  721 S> */ B(Mov), R(1), R(0),
358  /*  730 S> */ B(Mov), R(0), R(1),
359  /*  737 S> */ B(Mov), R(1), R(0),
360  /*  746 S> */ B(Mov), R(0), R(1),
361  /*  753 S> */ B(Mov), R(1), R(0),
362  /*  762 S> */ B(Mov), R(0), R(1),
363  /*  769 S> */ B(Mov), R(1), R(0),
364  /*  778 S> */ B(Mov), R(0), R(1),
365  /*  785 S> */ B(Mov), R(1), R(0),
366  /*  794 S> */ B(Mov), R(0), R(1),
367  /*  801 S> */ B(Mov), R(1), R(0),
368  /*  810 S> */ B(Mov), R(0), R(1),
369  /*  817 S> */ B(Mov), R(1), R(0),
370  /*  826 S> */ B(Mov), R(0), R(1),
371  /*  833 S> */ B(Mov), R(1), R(0),
372  /*  842 S> */ B(Mov), R(0), R(1),
373  /*  849 S> */ B(Mov), R(1), R(0),
374  /*  858 S> */ B(Mov), R(0), R(1),
375  /*  865 S> */ B(Mov), R(1), R(0),
376  /*  874 S> */ B(Mov), R(0), R(1),
377  /*  881 S> */ B(Mov), R(1), R(0),
378  /*  890 S> */ B(Mov), R(0), R(1),
379  /*  897 S> */ B(Mov), R(1), R(0),
380  /*  906 S> */ B(Mov), R(0), R(1),
381  /*  913 S> */ B(Mov), R(1), R(0),
382  /*  922 S> */ B(Mov), R(0), R(1),
383  /*  929 S> */ B(Mov), R(1), R(0),
384  /*  938 S> */ B(Mov), R(0), R(1),
385  /*  945 S> */ B(Mov), R(1), R(0),
386  /*  954 S> */ B(Mov), R(0), R(1),
387  /*  961 S> */ B(Mov), R(1), R(0),
388  /*  970 S> */ B(Mov), R(0), R(1),
389  /*  977 S> */ B(Mov), R(1), R(0),
390  /*  986 S> */ B(Mov), R(0), R(1),
391  /*  993 S> */ B(Mov), R(1), R(0),
392  /* 1002 S> */ B(Mov), R(0), R(1),
393  /* 1009 S> */ B(Mov), R(1), R(0),
394  /* 1018 S> */ B(Mov), R(0), R(1),
395  /* 1025 S> */ B(Mov), R(1), R(0),
396  /* 1034 S> */ B(Mov), R(0), R(1),
397  /* 1041 S> */ B(Mov), R(1), R(0),
398  /* 1050 S> */ B(Mov), R(0), R(1),
399  /* 1057 S> */ B(Mov), R(1), R(0),
400  /* 1066 S> */ B(Mov), R(0), R(1),
401  /* 1073 S> */ B(Mov), R(1), R(0),
402  /* 1081 S> */ B(Wide), B(LdaSmi), U16(200),
403  /* 1117 S> */ B(Return),
404  /* 1102 S> */ B(Wide), B(LdaSmi), U16(-200),
405  /* 1117 S> */ B(Return),
406                B(LdaUndefined),
407  /* 1117 S> */ B(Return),
408]
409constant pool: [
410  InstanceType::HEAP_NUMBER_TYPE,
411  kInstanceTypeDontCare,
412]
413handlers: [
414]
415
416---
417snippet: "
418  function f() {
419    var a = 0; var b = 0;
420    if (a) {
421    b = a; a = b;
422    b = a; a = b;
423    b = a; a = b;
424    b = a; a = b;
425    b = a; a = b;
426    b = a; a = b;
427    b = a; a = b;
428    b = a; a = b;
429    b = a; a = b;
430    b = a; a = b;
431    b = a; a = b;
432    b = a; a = b;
433    b = a; a = b;
434    b = a; a = b;
435    b = a; a = b;
436    b = a; a = b;
437    b = a; a = b;
438    b = a; a = b;
439    b = a; a = b;
440    b = a; a = b;
441    b = a; a = b;
442    b = a; a = b;
443    b = a; a = b;
444    b = a; a = b;
445    b = a; a = b;
446    b = a; a = b;
447    b = a; a = b;
448    b = a; a = b;
449    b = a; a = b;
450    b = a; a = b;
451    b = a; a = b;
452    b = a; a = b;
453    b = a; a = b;
454    b = a; a = b;
455    b = a; a = b;
456    b = a; a = b;
457    b = a; a = b;
458    b = a; a = b;
459    b = a; a = b;
460    b = a; a = b;
461    b = a; a = b;
462    b = a; a = b;
463    b = a; a = b;
464    b = a; a = b;
465    b = a; a = b;
466    b = a; a = b;
467    b = a; a = b;
468    b = a; a = b;
469    b = a; a = b;
470    b = a; a = b;
471    b = a; a = b;
472    b = a; a = b;
473    b = a; a = b;
474    b = a; a = b;
475    b = a; a = b;
476    b = a; a = b;
477    b = a; a = b;
478    b = a; a = b;
479    b = a; a = b;
480    b = a; a = b;
481    b = a; a = b;
482    b = a; a = b;
483    b = a; a = b;
484    b = a; a = b;
485    return 200; } else { return -200; }
486  };
487  f();
488"
489frame size: 2
490parameter count: 1
491bytecode array length: 407
492bytecodes: [
493  /*   10 E> */ B(StackCheck),
494  /*   25 S> */ B(LdaZero),
495                B(Star), R(0),
496  /*   36 S> */ B(LdaZero),
497                B(Star), R(1),
498  /*   41 S> */ B(Ldar), R(0),
499                B(JumpIfToBooleanFalseConstant), U8(0),
500  /*   52 S> */ B(Mov), R(0), R(1),
501  /*   59 S> */ B(Mov), R(1), R(0),
502  /*   68 S> */ B(Mov), R(0), R(1),
503  /*   75 S> */ B(Mov), R(1), R(0),
504  /*   84 S> */ B(Mov), R(0), R(1),
505  /*   91 S> */ B(Mov), R(1), R(0),
506  /*  100 S> */ B(Mov), R(0), R(1),
507  /*  107 S> */ B(Mov), R(1), R(0),
508  /*  116 S> */ B(Mov), R(0), R(1),
509  /*  123 S> */ B(Mov), R(1), R(0),
510  /*  132 S> */ B(Mov), R(0), R(1),
511  /*  139 S> */ B(Mov), R(1), R(0),
512  /*  148 S> */ B(Mov), R(0), R(1),
513  /*  155 S> */ B(Mov), R(1), R(0),
514  /*  164 S> */ B(Mov), R(0), R(1),
515  /*  171 S> */ B(Mov), R(1), R(0),
516  /*  180 S> */ B(Mov), R(0), R(1),
517  /*  187 S> */ B(Mov), R(1), R(0),
518  /*  196 S> */ B(Mov), R(0), R(1),
519  /*  203 S> */ B(Mov), R(1), R(0),
520  /*  212 S> */ B(Mov), R(0), R(1),
521  /*  219 S> */ B(Mov), R(1), R(0),
522  /*  228 S> */ B(Mov), R(0), R(1),
523  /*  235 S> */ B(Mov), R(1), R(0),
524  /*  244 S> */ B(Mov), R(0), R(1),
525  /*  251 S> */ B(Mov), R(1), R(0),
526  /*  260 S> */ B(Mov), R(0), R(1),
527  /*  267 S> */ B(Mov), R(1), R(0),
528  /*  276 S> */ B(Mov), R(0), R(1),
529  /*  283 S> */ B(Mov), R(1), R(0),
530  /*  292 S> */ B(Mov), R(0), R(1),
531  /*  299 S> */ B(Mov), R(1), R(0),
532  /*  308 S> */ B(Mov), R(0), R(1),
533  /*  315 S> */ B(Mov), R(1), R(0),
534  /*  324 S> */ B(Mov), R(0), R(1),
535  /*  331 S> */ B(Mov), R(1), R(0),
536  /*  340 S> */ B(Mov), R(0), R(1),
537  /*  347 S> */ B(Mov), R(1), R(0),
538  /*  356 S> */ B(Mov), R(0), R(1),
539  /*  363 S> */ B(Mov), R(1), R(0),
540  /*  372 S> */ B(Mov), R(0), R(1),
541  /*  379 S> */ B(Mov), R(1), R(0),
542  /*  388 S> */ B(Mov), R(0), R(1),
543  /*  395 S> */ B(Mov), R(1), R(0),
544  /*  404 S> */ B(Mov), R(0), R(1),
545  /*  411 S> */ B(Mov), R(1), R(0),
546  /*  420 S> */ B(Mov), R(0), R(1),
547  /*  427 S> */ B(Mov), R(1), R(0),
548  /*  436 S> */ B(Mov), R(0), R(1),
549  /*  443 S> */ B(Mov), R(1), R(0),
550  /*  452 S> */ B(Mov), R(0), R(1),
551  /*  459 S> */ B(Mov), R(1), R(0),
552  /*  468 S> */ B(Mov), R(0), R(1),
553  /*  475 S> */ B(Mov), R(1), R(0),
554  /*  484 S> */ B(Mov), R(0), R(1),
555  /*  491 S> */ B(Mov), R(1), R(0),
556  /*  500 S> */ B(Mov), R(0), R(1),
557  /*  507 S> */ B(Mov), R(1), R(0),
558  /*  516 S> */ B(Mov), R(0), R(1),
559  /*  523 S> */ B(Mov), R(1), R(0),
560  /*  532 S> */ B(Mov), R(0), R(1),
561  /*  539 S> */ B(Mov), R(1), R(0),
562  /*  548 S> */ B(Mov), R(0), R(1),
563  /*  555 S> */ B(Mov), R(1), R(0),
564  /*  564 S> */ B(Mov), R(0), R(1),
565  /*  571 S> */ B(Mov), R(1), R(0),
566  /*  580 S> */ B(Mov), R(0), R(1),
567  /*  587 S> */ B(Mov), R(1), R(0),
568  /*  596 S> */ B(Mov), R(0), R(1),
569  /*  603 S> */ B(Mov), R(1), R(0),
570  /*  612 S> */ B(Mov), R(0), R(1),
571  /*  619 S> */ B(Mov), R(1), R(0),
572  /*  628 S> */ B(Mov), R(0), R(1),
573  /*  635 S> */ B(Mov), R(1), R(0),
574  /*  644 S> */ B(Mov), R(0), R(1),
575  /*  651 S> */ B(Mov), R(1), R(0),
576  /*  660 S> */ B(Mov), R(0), R(1),
577  /*  667 S> */ B(Mov), R(1), R(0),
578  /*  676 S> */ B(Mov), R(0), R(1),
579  /*  683 S> */ B(Mov), R(1), R(0),
580  /*  692 S> */ B(Mov), R(0), R(1),
581  /*  699 S> */ B(Mov), R(1), R(0),
582  /*  708 S> */ B(Mov), R(0), R(1),
583  /*  715 S> */ B(Mov), R(1), R(0),
584  /*  724 S> */ B(Mov), R(0), R(1),
585  /*  731 S> */ B(Mov), R(1), R(0),
586  /*  740 S> */ B(Mov), R(0), R(1),
587  /*  747 S> */ B(Mov), R(1), R(0),
588  /*  756 S> */ B(Mov), R(0), R(1),
589  /*  763 S> */ B(Mov), R(1), R(0),
590  /*  772 S> */ B(Mov), R(0), R(1),
591  /*  779 S> */ B(Mov), R(1), R(0),
592  /*  788 S> */ B(Mov), R(0), R(1),
593  /*  795 S> */ B(Mov), R(1), R(0),
594  /*  804 S> */ B(Mov), R(0), R(1),
595  /*  811 S> */ B(Mov), R(1), R(0),
596  /*  820 S> */ B(Mov), R(0), R(1),
597  /*  827 S> */ B(Mov), R(1), R(0),
598  /*  836 S> */ B(Mov), R(0), R(1),
599  /*  843 S> */ B(Mov), R(1), R(0),
600  /*  852 S> */ B(Mov), R(0), R(1),
601  /*  859 S> */ B(Mov), R(1), R(0),
602  /*  868 S> */ B(Mov), R(0), R(1),
603  /*  875 S> */ B(Mov), R(1), R(0),
604  /*  884 S> */ B(Mov), R(0), R(1),
605  /*  891 S> */ B(Mov), R(1), R(0),
606  /*  900 S> */ B(Mov), R(0), R(1),
607  /*  907 S> */ B(Mov), R(1), R(0),
608  /*  916 S> */ B(Mov), R(0), R(1),
609  /*  923 S> */ B(Mov), R(1), R(0),
610  /*  932 S> */ B(Mov), R(0), R(1),
611  /*  939 S> */ B(Mov), R(1), R(0),
612  /*  948 S> */ B(Mov), R(0), R(1),
613  /*  955 S> */ B(Mov), R(1), R(0),
614  /*  964 S> */ B(Mov), R(0), R(1),
615  /*  971 S> */ B(Mov), R(1), R(0),
616  /*  980 S> */ B(Mov), R(0), R(1),
617  /*  987 S> */ B(Mov), R(1), R(0),
618  /*  996 S> */ B(Mov), R(0), R(1),
619  /* 1003 S> */ B(Mov), R(1), R(0),
620  /* 1012 S> */ B(Mov), R(0), R(1),
621  /* 1019 S> */ B(Mov), R(1), R(0),
622  /* 1028 S> */ B(Mov), R(0), R(1),
623  /* 1035 S> */ B(Mov), R(1), R(0),
624  /* 1044 S> */ B(Mov), R(0), R(1),
625  /* 1051 S> */ B(Mov), R(1), R(0),
626  /* 1060 S> */ B(Mov), R(0), R(1),
627  /* 1067 S> */ B(Mov), R(1), R(0),
628  /* 1076 S> */ B(Wide), B(LdaSmi), U16(200),
629  /* 1112 S> */ B(Return),
630  /* 1097 S> */ B(Wide), B(LdaSmi), U16(-200),
631  /* 1112 S> */ B(Return),
632                B(LdaUndefined),
633  /* 1112 S> */ B(Return),
634]
635constant pool: [
636  kInstanceTypeDontCare,
637]
638handlers: [
639]
640
641---
642snippet: "
643  function f(a, b) {
644    if (a == b) { return 1; }
645    if (a === b) { return 1; }
646    if (a < b) { return 1; }
647    if (a > b) { return 1; }
648    if (a <= b) { return 1; }
649    if (a >= b) { return 1; }
650    if (a in b) { return 1; }
651    if (a instanceof b) { return 1; }
652    return 0;
653  }
654  f(1, 1);
655"
656frame size: 0
657parameter count: 3
658bytecode array length: 75
659bytecodes: [
660  /*   10 E> */ B(StackCheck),
661  /*   21 S> */ B(Ldar), R(arg1),
662  /*   27 E> */ B(TestEqual), R(arg0),
663                B(JumpIfFalse), U8(5),
664  /*   35 S> */ B(LdaSmi), U8(1),
665  /*  262 S> */ B(Return),
666  /*   49 S> */ B(Ldar), R(arg1),
667  /*   55 E> */ B(TestEqualStrict), R(arg0),
668                B(JumpIfFalse), U8(5),
669  /*   64 S> */ B(LdaSmi), U8(1),
670  /*  262 S> */ B(Return),
671  /*   78 S> */ B(Ldar), R(arg1),
672  /*   84 E> */ B(TestLessThan), R(arg0),
673                B(JumpIfFalse), U8(5),
674  /*   91 S> */ B(LdaSmi), U8(1),
675  /*  262 S> */ B(Return),
676  /*  105 S> */ B(Ldar), R(arg1),
677  /*  111 E> */ B(TestGreaterThan), R(arg0),
678                B(JumpIfFalse), U8(5),
679  /*  118 S> */ B(LdaSmi), U8(1),
680  /*  262 S> */ B(Return),
681  /*  132 S> */ B(Ldar), R(arg1),
682  /*  138 E> */ B(TestLessThanOrEqual), R(arg0),
683                B(JumpIfFalse), U8(5),
684  /*  146 S> */ B(LdaSmi), U8(1),
685  /*  262 S> */ B(Return),
686  /*  160 S> */ B(Ldar), R(arg1),
687  /*  166 E> */ B(TestGreaterThanOrEqual), R(arg0),
688                B(JumpIfFalse), U8(5),
689  /*  174 S> */ B(LdaSmi), U8(1),
690  /*  262 S> */ B(Return),
691  /*  188 S> */ B(Ldar), R(arg1),
692  /*  194 E> */ B(TestIn), R(arg0),
693                B(JumpIfFalse), U8(5),
694  /*  202 S> */ B(LdaSmi), U8(1),
695  /*  262 S> */ B(Return),
696  /*  216 S> */ B(Ldar), R(arg1),
697  /*  222 E> */ B(TestInstanceOf), R(arg0),
698                B(JumpIfFalse), U8(5),
699  /*  238 S> */ B(LdaSmi), U8(1),
700  /*  262 S> */ B(Return),
701  /*  252 S> */ B(LdaZero),
702  /*  262 S> */ B(Return),
703]
704constant pool: [
705]
706handlers: [
707]
708
709---
710snippet: "
711  function f() {
712    var a = 0;
713    if (a) {
714      return 20;
715    } else {
716      return -20;
717    }
718  };
719  f();
720"
721frame size: 1
722parameter count: 1
723bytecode array length: 14
724bytecodes: [
725  /*   10 E> */ B(StackCheck),
726  /*   25 S> */ B(LdaZero),
727                B(Star), R(0),
728  /*   30 S> */ B(JumpIfToBooleanFalse), U8(5),
729  /*   43 S> */ B(LdaSmi), U8(20),
730  /*   85 S> */ B(Return),
731  /*   69 S> */ B(LdaSmi), U8(-20),
732  /*   85 S> */ B(Return),
733                B(LdaUndefined),
734  /*   85 S> */ B(Return),
735]
736constant pool: [
737]
738handlers: [
739]
740
741