OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: mixed | 6 pool type: mixed |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 ] | 210 ] |
211 handlers: [ | 211 handlers: [ |
212 ] | 212 ] |
213 | 213 |
214 --- | 214 --- |
215 snippet: " | 215 snippet: " |
216 var a = 1; var b = function() { return a }; return ++a; | 216 var a = 1; var b = function() { return a }; return ++a; |
217 " | 217 " |
218 frame size: 2 | 218 frame size: 2 |
219 parameter count: 1 | 219 parameter count: 1 |
220 bytecode array length: 27 | 220 bytecode array length: 29 |
221 bytecodes: [ | 221 bytecodes: [ |
222 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 222 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
223 B(PushContext), R(1), | 223 B(PushContext), R(1), |
224 B(StackCheck), | 224 B(StackCheck), |
225 B(LdaSmi8), U8(1), | 225 B(LdaSmi8), U8(1), |
226 B(StaContextSlot), R(context), U8(4), | 226 B(StaContextSlot), R(context), U8(4), |
227 B(CreateClosure), U8(0), U8(0), | 227 B(CreateClosure), U8(0), U8(0), |
228 B(Star), R(0), | 228 B(Star), R(0), |
229 B(LdaContextSlot), R(context), U8(4), | 229 B(LdaContextSlot), R(context), U8(4), |
230 B(ToNumber), | 230 B(ToNumber), |
231 B(Inc), | 231 B(Inc), |
232 B(StaContextSlot), R(context), U8(4), | 232 B(StaContextSlot), R(context), U8(4), |
| 233 B(PopContext), R(1), |
233 B(Return), | 234 B(Return), |
234 ] | 235 ] |
235 constant pool: [ | 236 constant pool: [ |
236 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 237 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
237 ] | 238 ] |
238 handlers: [ | 239 handlers: [ |
239 ] | 240 ] |
240 | 241 |
241 --- | 242 --- |
242 snippet: " | 243 snippet: " |
243 var a = 1; var b = function() { return a }; return a--; | 244 var a = 1; var b = function() { return a }; return a--; |
244 " | 245 " |
245 frame size: 3 | 246 frame size: 3 |
246 parameter count: 1 | 247 parameter count: 1 |
247 bytecode array length: 31 | 248 bytecode array length: 33 |
248 bytecodes: [ | 249 bytecodes: [ |
249 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 250 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
250 B(PushContext), R(1), | 251 B(PushContext), R(1), |
251 B(StackCheck), | 252 B(StackCheck), |
252 B(LdaSmi8), U8(1), | 253 B(LdaSmi8), U8(1), |
253 B(StaContextSlot), R(context), U8(4), | 254 B(StaContextSlot), R(context), U8(4), |
254 B(CreateClosure), U8(0), U8(0), | 255 B(CreateClosure), U8(0), U8(0), |
255 B(Star), R(0), | 256 B(Star), R(0), |
256 B(LdaContextSlot), R(context), U8(4), | 257 B(LdaContextSlot), R(context), U8(4), |
257 B(ToNumber), | 258 B(ToNumber), |
258 B(Star), R(2), | 259 B(Star), R(2), |
259 B(Dec), | 260 B(Dec), |
260 B(StaContextSlot), R(context), U8(4), | 261 B(StaContextSlot), R(context), U8(4), |
261 B(Ldar), R(2), | 262 B(Ldar), R(2), |
| 263 B(PopContext), R(1), |
262 B(Return), | 264 B(Return), |
263 ] | 265 ] |
264 constant pool: [ | 266 constant pool: [ |
265 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 267 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
266 ] | 268 ] |
267 handlers: [ | 269 handlers: [ |
268 ] | 270 ] |
269 | 271 |
270 --- | 272 --- |
271 snippet: " | 273 snippet: " |
(...skipping 17 matching lines...) Expand all Loading... |
289 B(LdaSmi8), U8(2), | 291 B(LdaSmi8), U8(2), |
290 B(KeyedStoreICSloppy), R(2), R(3), U8(1), | 292 B(KeyedStoreICSloppy), R(2), R(3), U8(1), |
291 B(Return), | 293 B(Return), |
292 ] | 294 ] |
293 constant pool: [ | 295 constant pool: [ |
294 InstanceType::FIXED_ARRAY_TYPE, | 296 InstanceType::FIXED_ARRAY_TYPE, |
295 ] | 297 ] |
296 handlers: [ | 298 handlers: [ |
297 ] | 299 ] |
298 | 300 |
OLD | NEW |