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 a = 1; return ++a; | 10 var a = 1; return ++a; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 ] | 194 ] |
195 handlers: [ | 195 handlers: [ |
196 ] | 196 ] |
197 | 197 |
198 --- | 198 --- |
199 snippet: " | 199 snippet: " |
200 var a = 1; var b = function() { return a }; return ++a; | 200 var a = 1; var b = function() { return a }; return ++a; |
201 " | 201 " |
202 frame size: 2 | 202 frame size: 2 |
203 parameter count: 1 | 203 parameter count: 1 |
204 bytecode array length: 22 | 204 bytecode array length: 21 |
205 bytecodes: [ | 205 bytecodes: [ |
206 B(CreateFunctionContext), U8(1), | 206 B(CreateFunctionContext), U8(1), |
207 B(PushContext), R(1), | 207 B(PushContext), R(1), |
208 /* 30 E> */ B(StackCheck), | 208 /* 30 E> */ B(StackCheck), |
209 /* 42 S> */ B(LdaSmi), U8(1), | 209 /* 42 S> */ B(LdaSmi), U8(1), |
210 /* 42 E> */ B(StaCurrentContextSlot), U8(4), | 210 /* 42 E> */ B(StaCurrentContextSlot), U8(4), |
211 /* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 211 /* 53 S> */ B(CreateClosure), U8(0), U8(2), |
212 B(Star), R(0), | 212 B(Star), R(0), |
213 /* 78 S> */ B(LdaCurrentContextSlot), U8(4), | 213 /* 78 S> */ B(LdaCurrentContextSlot), U8(4), |
214 B(Inc), U8(3), | 214 B(Inc), U8(2), |
215 /* 87 E> */ B(StaCurrentContextSlot), U8(4), | 215 /* 87 E> */ B(StaCurrentContextSlot), U8(4), |
216 /* 90 S> */ B(Return), | 216 /* 90 S> */ B(Return), |
217 ] | 217 ] |
218 constant pool: [ | 218 constant pool: [ |
219 SHARED_FUNCTION_INFO_TYPE, | 219 SHARED_FUNCTION_INFO_TYPE, |
220 ] | 220 ] |
221 handlers: [ | 221 handlers: [ |
222 ] | 222 ] |
223 | 223 |
224 --- | 224 --- |
225 snippet: " | 225 snippet: " |
226 var a = 1; var b = function() { return a }; return a--; | 226 var a = 1; var b = function() { return a }; return a--; |
227 " | 227 " |
228 frame size: 3 | 228 frame size: 3 |
229 parameter count: 1 | 229 parameter count: 1 |
230 bytecode array length: 28 | 230 bytecode array length: 27 |
231 bytecodes: [ | 231 bytecodes: [ |
232 B(CreateFunctionContext), U8(1), | 232 B(CreateFunctionContext), U8(1), |
233 B(PushContext), R(1), | 233 B(PushContext), R(1), |
234 /* 30 E> */ B(StackCheck), | 234 /* 30 E> */ B(StackCheck), |
235 /* 42 S> */ B(LdaSmi), U8(1), | 235 /* 42 S> */ B(LdaSmi), U8(1), |
236 /* 42 E> */ B(StaCurrentContextSlot), U8(4), | 236 /* 42 E> */ B(StaCurrentContextSlot), U8(4), |
237 /* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 237 /* 53 S> */ B(CreateClosure), U8(0), U8(2), |
238 B(Star), R(0), | 238 B(Star), R(0), |
239 /* 78 S> */ B(LdaCurrentContextSlot), U8(4), | 239 /* 78 S> */ B(LdaCurrentContextSlot), U8(4), |
240 B(ToNumber), R(2), | 240 B(ToNumber), R(2), |
241 B(Ldar), R(2), | 241 B(Ldar), R(2), |
242 B(Dec), U8(3), | 242 B(Dec), U8(2), |
243 /* 86 E> */ B(StaCurrentContextSlot), U8(4), | 243 /* 86 E> */ B(StaCurrentContextSlot), U8(4), |
244 B(Ldar), R(2), | 244 B(Ldar), R(2), |
245 /* 90 S> */ B(Return), | 245 /* 90 S> */ B(Return), |
246 ] | 246 ] |
247 constant pool: [ | 247 constant pool: [ |
248 SHARED_FUNCTION_INFO_TYPE, | 248 SHARED_FUNCTION_INFO_TYPE, |
249 ] | 249 ] |
250 handlers: [ | 250 handlers: [ |
251 ] | 251 ] |
252 | 252 |
(...skipping 18 matching lines...) Expand all Loading... |
271 B(LdaSmi), U8(2), | 271 B(LdaSmi), U8(2), |
272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(3), | 272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(3), |
273 /* 84 S> */ B(Return), | 273 /* 84 S> */ B(Return), |
274 ] | 274 ] |
275 constant pool: [ | 275 constant pool: [ |
276 CONSTANT_ELEMENTS_PAIR_TYPE, | 276 CONSTANT_ELEMENTS_PAIR_TYPE, |
277 ] | 277 ] |
278 handlers: [ | 278 handlers: [ |
279 ] | 279 ] |
280 | 280 |
OLD | NEW |