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 var x = 0; return x; | 10 var x = 0; return x; |
(...skipping 17 matching lines...) Expand all Loading... |
28 snippet: " | 28 snippet: " |
29 var x = 0; return x + 3; | 29 var x = 0; return x + 3; |
30 " | 30 " |
31 frame size: 1 | 31 frame size: 1 |
32 parameter count: 1 | 32 parameter count: 1 |
33 bytecode array length: 10 | 33 bytecode array length: 10 |
34 bytecodes: [ | 34 bytecodes: [ |
35 /* 30 E> */ B(StackCheck), | 35 /* 30 E> */ B(StackCheck), |
36 /* 42 S> */ B(LdaZero), | 36 /* 42 S> */ B(LdaZero), |
37 B(Star), R(0), | 37 B(Star), R(0), |
38 /* 45 S> */ B(LdaSmi), U8(3), | 38 /* 45 S> */ B(LdaSmi), I8(3), |
39 /* 54 E> */ B(Add), R(0), U8(2), | 39 /* 54 E> */ B(Add), R(0), U8(2), |
40 /* 59 S> */ B(Return), | 40 /* 59 S> */ B(Return), |
41 ] | 41 ] |
42 constant pool: [ | 42 constant pool: [ |
43 ] | 43 ] |
44 handlers: [ | 44 handlers: [ |
45 ] | 45 ] |
46 | 46 |
47 --- | 47 --- |
48 snippet: " | 48 snippet: " |
49 var x = 0; return x - 3; | 49 var x = 0; return x - 3; |
50 " | 50 " |
51 frame size: 1 | 51 frame size: 1 |
52 parameter count: 1 | 52 parameter count: 1 |
53 bytecode array length: 10 | 53 bytecode array length: 10 |
54 bytecodes: [ | 54 bytecodes: [ |
55 /* 30 E> */ B(StackCheck), | 55 /* 30 E> */ B(StackCheck), |
56 /* 42 S> */ B(LdaZero), | 56 /* 42 S> */ B(LdaZero), |
57 B(Star), R(0), | 57 B(Star), R(0), |
58 /* 45 S> */ B(LdaSmi), U8(3), | 58 /* 45 S> */ B(LdaSmi), I8(3), |
59 /* 54 E> */ B(Sub), R(0), U8(2), | 59 /* 54 E> */ B(Sub), R(0), U8(2), |
60 /* 59 S> */ B(Return), | 60 /* 59 S> */ B(Return), |
61 ] | 61 ] |
62 constant pool: [ | 62 constant pool: [ |
63 ] | 63 ] |
64 handlers: [ | 64 handlers: [ |
65 ] | 65 ] |
66 | 66 |
67 --- | 67 --- |
68 snippet: " | 68 snippet: " |
69 var x = 4; return x * 3; | 69 var x = 4; return x * 3; |
70 " | 70 " |
71 frame size: 1 | 71 frame size: 1 |
72 parameter count: 1 | 72 parameter count: 1 |
73 bytecode array length: 11 | 73 bytecode array length: 11 |
74 bytecodes: [ | 74 bytecodes: [ |
75 /* 30 E> */ B(StackCheck), | 75 /* 30 E> */ B(StackCheck), |
76 /* 42 S> */ B(LdaSmi), U8(4), | 76 /* 42 S> */ B(LdaSmi), I8(4), |
77 B(Star), R(0), | 77 B(Star), R(0), |
78 /* 45 S> */ B(LdaSmi), U8(3), | 78 /* 45 S> */ B(LdaSmi), I8(3), |
79 /* 54 E> */ B(Mul), R(0), U8(2), | 79 /* 54 E> */ B(Mul), R(0), U8(2), |
80 /* 59 S> */ B(Return), | 80 /* 59 S> */ B(Return), |
81 ] | 81 ] |
82 constant pool: [ | 82 constant pool: [ |
83 ] | 83 ] |
84 handlers: [ | 84 handlers: [ |
85 ] | 85 ] |
86 | 86 |
87 --- | 87 --- |
88 snippet: " | 88 snippet: " |
89 var x = 4; return x / 3; | 89 var x = 4; return x / 3; |
90 " | 90 " |
91 frame size: 1 | 91 frame size: 1 |
92 parameter count: 1 | 92 parameter count: 1 |
93 bytecode array length: 11 | 93 bytecode array length: 11 |
94 bytecodes: [ | 94 bytecodes: [ |
95 /* 30 E> */ B(StackCheck), | 95 /* 30 E> */ B(StackCheck), |
96 /* 42 S> */ B(LdaSmi), U8(4), | 96 /* 42 S> */ B(LdaSmi), I8(4), |
97 B(Star), R(0), | 97 B(Star), R(0), |
98 /* 45 S> */ B(LdaSmi), U8(3), | 98 /* 45 S> */ B(LdaSmi), I8(3), |
99 /* 54 E> */ B(Div), R(0), U8(2), | 99 /* 54 E> */ B(Div), R(0), U8(2), |
100 /* 59 S> */ B(Return), | 100 /* 59 S> */ B(Return), |
101 ] | 101 ] |
102 constant pool: [ | 102 constant pool: [ |
103 ] | 103 ] |
104 handlers: [ | 104 handlers: [ |
105 ] | 105 ] |
106 | 106 |
107 --- | 107 --- |
108 snippet: " | 108 snippet: " |
109 var x = 4; return x % 3; | 109 var x = 4; return x % 3; |
110 " | 110 " |
111 frame size: 1 | 111 frame size: 1 |
112 parameter count: 1 | 112 parameter count: 1 |
113 bytecode array length: 11 | 113 bytecode array length: 11 |
114 bytecodes: [ | 114 bytecodes: [ |
115 /* 30 E> */ B(StackCheck), | 115 /* 30 E> */ B(StackCheck), |
116 /* 42 S> */ B(LdaSmi), U8(4), | 116 /* 42 S> */ B(LdaSmi), I8(4), |
117 B(Star), R(0), | 117 B(Star), R(0), |
118 /* 45 S> */ B(LdaSmi), U8(3), | 118 /* 45 S> */ B(LdaSmi), I8(3), |
119 /* 54 E> */ B(Mod), R(0), U8(2), | 119 /* 54 E> */ B(Mod), R(0), U8(2), |
120 /* 59 S> */ B(Return), | 120 /* 59 S> */ B(Return), |
121 ] | 121 ] |
122 constant pool: [ | 122 constant pool: [ |
123 ] | 123 ] |
124 handlers: [ | 124 handlers: [ |
125 ] | 125 ] |
126 | 126 |
127 --- | 127 --- |
128 snippet: " | 128 snippet: " |
129 var x = 1; return x | 2; | 129 var x = 1; return x | 2; |
130 " | 130 " |
131 frame size: 1 | 131 frame size: 1 |
132 parameter count: 1 | 132 parameter count: 1 |
133 bytecode array length: 11 | 133 bytecode array length: 11 |
134 bytecodes: [ | 134 bytecodes: [ |
135 /* 30 E> */ B(StackCheck), | 135 /* 30 E> */ B(StackCheck), |
136 /* 42 S> */ B(LdaSmi), U8(1), | 136 /* 42 S> */ B(LdaSmi), I8(1), |
137 B(Star), R(0), | 137 B(Star), R(0), |
138 /* 45 S> */ B(LdaSmi), U8(2), | 138 /* 45 S> */ B(LdaSmi), I8(2), |
139 /* 54 E> */ B(BitwiseOr), R(0), U8(2), | 139 /* 54 E> */ B(BitwiseOr), R(0), U8(2), |
140 /* 59 S> */ B(Return), | 140 /* 59 S> */ B(Return), |
141 ] | 141 ] |
142 constant pool: [ | 142 constant pool: [ |
143 ] | 143 ] |
144 handlers: [ | 144 handlers: [ |
145 ] | 145 ] |
146 | 146 |
147 --- | 147 --- |
148 snippet: " | 148 snippet: " |
149 var x = 1; return x ^ 2; | 149 var x = 1; return x ^ 2; |
150 " | 150 " |
151 frame size: 1 | 151 frame size: 1 |
152 parameter count: 1 | 152 parameter count: 1 |
153 bytecode array length: 11 | 153 bytecode array length: 11 |
154 bytecodes: [ | 154 bytecodes: [ |
155 /* 30 E> */ B(StackCheck), | 155 /* 30 E> */ B(StackCheck), |
156 /* 42 S> */ B(LdaSmi), U8(1), | 156 /* 42 S> */ B(LdaSmi), I8(1), |
157 B(Star), R(0), | 157 B(Star), R(0), |
158 /* 45 S> */ B(LdaSmi), U8(2), | 158 /* 45 S> */ B(LdaSmi), I8(2), |
159 /* 54 E> */ B(BitwiseXor), R(0), U8(2), | 159 /* 54 E> */ B(BitwiseXor), R(0), U8(2), |
160 /* 59 S> */ B(Return), | 160 /* 59 S> */ B(Return), |
161 ] | 161 ] |
162 constant pool: [ | 162 constant pool: [ |
163 ] | 163 ] |
164 handlers: [ | 164 handlers: [ |
165 ] | 165 ] |
166 | 166 |
167 --- | 167 --- |
168 snippet: " | 168 snippet: " |
169 var x = 1; return x & 2; | 169 var x = 1; return x & 2; |
170 " | 170 " |
171 frame size: 1 | 171 frame size: 1 |
172 parameter count: 1 | 172 parameter count: 1 |
173 bytecode array length: 11 | 173 bytecode array length: 11 |
174 bytecodes: [ | 174 bytecodes: [ |
175 /* 30 E> */ B(StackCheck), | 175 /* 30 E> */ B(StackCheck), |
176 /* 42 S> */ B(LdaSmi), U8(1), | 176 /* 42 S> */ B(LdaSmi), I8(1), |
177 B(Star), R(0), | 177 B(Star), R(0), |
178 /* 45 S> */ B(LdaSmi), U8(2), | 178 /* 45 S> */ B(LdaSmi), I8(2), |
179 /* 54 E> */ B(BitwiseAnd), R(0), U8(2), | 179 /* 54 E> */ B(BitwiseAnd), R(0), U8(2), |
180 /* 59 S> */ B(Return), | 180 /* 59 S> */ B(Return), |
181 ] | 181 ] |
182 constant pool: [ | 182 constant pool: [ |
183 ] | 183 ] |
184 handlers: [ | 184 handlers: [ |
185 ] | 185 ] |
186 | 186 |
187 --- | 187 --- |
188 snippet: " | 188 snippet: " |
189 var x = 10; return x << 3; | 189 var x = 10; return x << 3; |
190 " | 190 " |
191 frame size: 1 | 191 frame size: 1 |
192 parameter count: 1 | 192 parameter count: 1 |
193 bytecode array length: 11 | 193 bytecode array length: 11 |
194 bytecodes: [ | 194 bytecodes: [ |
195 /* 30 E> */ B(StackCheck), | 195 /* 30 E> */ B(StackCheck), |
196 /* 42 S> */ B(LdaSmi), U8(10), | 196 /* 42 S> */ B(LdaSmi), I8(10), |
197 B(Star), R(0), | 197 B(Star), R(0), |
198 /* 46 S> */ B(LdaSmi), U8(3), | 198 /* 46 S> */ B(LdaSmi), I8(3), |
199 /* 55 E> */ B(ShiftLeft), R(0), U8(2), | 199 /* 55 E> */ B(ShiftLeft), R(0), U8(2), |
200 /* 61 S> */ B(Return), | 200 /* 61 S> */ B(Return), |
201 ] | 201 ] |
202 constant pool: [ | 202 constant pool: [ |
203 ] | 203 ] |
204 handlers: [ | 204 handlers: [ |
205 ] | 205 ] |
206 | 206 |
207 --- | 207 --- |
208 snippet: " | 208 snippet: " |
209 var x = 10; return x >> 3; | 209 var x = 10; return x >> 3; |
210 " | 210 " |
211 frame size: 1 | 211 frame size: 1 |
212 parameter count: 1 | 212 parameter count: 1 |
213 bytecode array length: 11 | 213 bytecode array length: 11 |
214 bytecodes: [ | 214 bytecodes: [ |
215 /* 30 E> */ B(StackCheck), | 215 /* 30 E> */ B(StackCheck), |
216 /* 42 S> */ B(LdaSmi), U8(10), | 216 /* 42 S> */ B(LdaSmi), I8(10), |
217 B(Star), R(0), | 217 B(Star), R(0), |
218 /* 46 S> */ B(LdaSmi), U8(3), | 218 /* 46 S> */ B(LdaSmi), I8(3), |
219 /* 55 E> */ B(ShiftRight), R(0), U8(2), | 219 /* 55 E> */ B(ShiftRight), R(0), U8(2), |
220 /* 61 S> */ B(Return), | 220 /* 61 S> */ B(Return), |
221 ] | 221 ] |
222 constant pool: [ | 222 constant pool: [ |
223 ] | 223 ] |
224 handlers: [ | 224 handlers: [ |
225 ] | 225 ] |
226 | 226 |
227 --- | 227 --- |
228 snippet: " | 228 snippet: " |
229 var x = 10; return x >>> 3; | 229 var x = 10; return x >>> 3; |
230 " | 230 " |
231 frame size: 1 | 231 frame size: 1 |
232 parameter count: 1 | 232 parameter count: 1 |
233 bytecode array length: 11 | 233 bytecode array length: 11 |
234 bytecodes: [ | 234 bytecodes: [ |
235 /* 30 E> */ B(StackCheck), | 235 /* 30 E> */ B(StackCheck), |
236 /* 42 S> */ B(LdaSmi), U8(10), | 236 /* 42 S> */ B(LdaSmi), I8(10), |
237 B(Star), R(0), | 237 B(Star), R(0), |
238 /* 46 S> */ B(LdaSmi), U8(3), | 238 /* 46 S> */ B(LdaSmi), I8(3), |
239 /* 55 E> */ B(ShiftRightLogical), R(0), U8(2), | 239 /* 55 E> */ B(ShiftRightLogical), R(0), U8(2), |
240 /* 62 S> */ B(Return), | 240 /* 62 S> */ B(Return), |
241 ] | 241 ] |
242 constant pool: [ | 242 constant pool: [ |
243 ] | 243 ] |
244 handlers: [ | 244 handlers: [ |
245 ] | 245 ] |
246 | 246 |
247 --- | 247 --- |
248 snippet: " | 248 snippet: " |
249 var x = 0; return (x, 3); | 249 var x = 0; return (x, 3); |
250 " | 250 " |
251 frame size: 1 | 251 frame size: 1 |
252 parameter count: 1 | 252 parameter count: 1 |
253 bytecode array length: 7 | 253 bytecode array length: 7 |
254 bytecodes: [ | 254 bytecodes: [ |
255 /* 30 E> */ B(StackCheck), | 255 /* 30 E> */ B(StackCheck), |
256 /* 42 S> */ B(LdaZero), | 256 /* 42 S> */ B(LdaZero), |
257 B(Star), R(0), | 257 B(Star), R(0), |
258 /* 45 S> */ B(LdaSmi), U8(3), | 258 /* 45 S> */ B(LdaSmi), I8(3), |
259 /* 60 S> */ B(Return), | 259 /* 60 S> */ B(Return), |
260 ] | 260 ] |
261 constant pool: [ | 261 constant pool: [ |
262 ] | 262 ] |
263 handlers: [ | 263 handlers: [ |
264 ] | 264 ] |
265 | 265 |
OLD | NEW |