OLD | NEW |
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 return 1 ? 2 : 3; | 10 return 1 ? 2 : 3; |
11 " | 11 " |
12 frame size: 0 | 12 frame size: 0 |
13 parameter count: 1 | 13 parameter count: 1 |
14 bytecode array length: 4 | 14 bytecode array length: 4 |
15 bytecodes: [ | 15 bytecodes: [ |
16 /* 30 E> */ B(StackCheck), | 16 /* 30 E> */ B(StackCheck), |
17 /* 34 S> */ B(LdaSmi), U8(2), | 17 /* 34 S> */ B(LdaSmi), I8(2), |
18 /* 52 S> */ B(Return), | 18 /* 52 S> */ B(Return), |
19 ] | 19 ] |
20 constant pool: [ | 20 constant pool: [ |
21 ] | 21 ] |
22 handlers: [ | 22 handlers: [ |
23 ] | 23 ] |
24 | 24 |
25 --- | 25 --- |
26 snippet: " | 26 snippet: " |
27 return 1 ? 2 ? 3 : 4 : 5; | 27 return 1 ? 2 ? 3 : 4 : 5; |
28 " | 28 " |
29 frame size: 0 | 29 frame size: 0 |
30 parameter count: 1 | 30 parameter count: 1 |
31 bytecode array length: 4 | 31 bytecode array length: 4 |
32 bytecodes: [ | 32 bytecodes: [ |
33 /* 30 E> */ B(StackCheck), | 33 /* 30 E> */ B(StackCheck), |
34 /* 34 S> */ B(LdaSmi), U8(3), | 34 /* 34 S> */ B(LdaSmi), I8(3), |
35 /* 60 S> */ B(Return), | 35 /* 60 S> */ B(Return), |
36 ] | 36 ] |
37 constant pool: [ | 37 constant pool: [ |
38 ] | 38 ] |
39 handlers: [ | 39 handlers: [ |
40 ] | 40 ] |
41 | 41 |
42 --- | 42 --- |
43 snippet: " | 43 snippet: " |
44 return 0 < 1 ? 2 : 3; | 44 return 0 < 1 ? 2 : 3; |
45 " | 45 " |
46 frame size: 1 | 46 frame size: 1 |
47 parameter count: 1 | 47 parameter count: 1 |
48 bytecode array length: 18 | 48 bytecode array length: 18 |
49 bytecodes: [ | 49 bytecodes: [ |
50 /* 30 E> */ B(StackCheck), | 50 /* 30 E> */ B(StackCheck), |
51 /* 34 S> */ B(LdaZero), | 51 /* 34 S> */ B(LdaZero), |
52 B(Star), R(0), | 52 B(Star), R(0), |
53 B(LdaSmi), U8(1), | 53 B(LdaSmi), I8(1), |
54 /* 43 E> */ B(TestLessThan), R(0), U8(2), | 54 /* 43 E> */ B(TestLessThan), R(0), U8(2), |
55 B(JumpIfFalse), U8(6), | 55 B(JumpIfFalse), U8(6), |
56 B(LdaSmi), U8(2), | 56 B(LdaSmi), I8(2), |
57 B(Jump), U8(4), | 57 B(Jump), U8(4), |
58 B(LdaSmi), U8(3), | 58 B(LdaSmi), I8(3), |
59 /* 56 S> */ B(Return), | 59 /* 56 S> */ B(Return), |
60 ] | 60 ] |
61 constant pool: [ | 61 constant pool: [ |
62 ] | 62 ] |
63 handlers: [ | 63 handlers: [ |
64 ] | 64 ] |
65 | 65 |
66 --- | 66 --- |
67 snippet: " | 67 snippet: " |
68 var x = 0; | 68 var x = 0; |
69 return x ? 2 : 3; | 69 return x ? 2 : 3; |
70 " | 70 " |
71 frame size: 1 | 71 frame size: 1 |
72 parameter count: 1 | 72 parameter count: 1 |
73 bytecode array length: 13 | 73 bytecode array length: 13 |
74 bytecodes: [ | 74 bytecodes: [ |
75 /* 30 E> */ B(StackCheck), | 75 /* 30 E> */ B(StackCheck), |
76 /* 42 S> */ B(LdaZero), | 76 /* 42 S> */ B(LdaZero), |
77 B(Star), R(0), | 77 B(Star), R(0), |
78 /* 45 S> */ B(JumpIfToBooleanFalse), U8(6), | 78 /* 45 S> */ B(JumpIfToBooleanFalse), U8(6), |
79 B(LdaSmi), U8(2), | 79 B(LdaSmi), I8(2), |
80 B(Jump), U8(4), | 80 B(Jump), U8(4), |
81 B(LdaSmi), U8(3), | 81 B(LdaSmi), I8(3), |
82 /* 63 S> */ B(Return), | 82 /* 63 S> */ B(Return), |
83 ] | 83 ] |
84 constant pool: [ | 84 constant pool: [ |
85 ] | 85 ] |
86 handlers: [ | 86 handlers: [ |
87 ] | 87 ] |
88 | 88 |
OLD | NEW |