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 { }; | 10 return { }; |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 constant pool: [ | 278 constant pool: [ |
279 FIXED_ARRAY_TYPE, | 279 FIXED_ARRAY_TYPE, |
280 ] | 280 ] |
281 handlers: [ | 281 handlers: [ |
282 ] | 282 ] |
283 | 283 |
284 --- | 284 --- |
285 snippet: " | 285 snippet: " |
286 var a = 'test'; return { [a]: 1 }; | 286 var a = 'test'; return { [a]: 1 }; |
287 " | 287 " |
288 frame size: 5 | 288 frame size: 4 |
289 parameter count: 1 | 289 parameter count: 1 |
290 bytecode array length: 28 | 290 bytecode array length: 24 |
291 bytecodes: [ | 291 bytecodes: [ |
292 /* 30 E> */ B(StackCheck), | 292 /* 30 E> */ B(StackCheck), |
293 /* 42 S> */ B(LdaConstant), U8(0), | 293 /* 42 S> */ B(LdaConstant), U8(0), |
294 B(Star), R(0), | 294 B(Star), R(0), |
295 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), | 295 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), |
296 /* 60 E> */ B(ToName), R(2), | 296 /* 60 E> */ B(ToName), R(2), |
297 B(LdaSmi), U8(1), | 297 B(LdaSmi), U8(1), |
298 B(Star), R(3), | 298 B(Star), R(3), |
299 B(LdaZero), | 299 B(StaDataPropertyInLiteral), R(1), R(2), R(3), U8(0), |
300 B(Star), R(4), | |
301 B(LdaZero), | |
302 B(StaDataPropertyInLiteral), R(1), R(2), R(3), R(4), | |
303 B(Ldar), R(1), | 300 B(Ldar), R(1), |
304 /* 69 S> */ B(Return), | 301 /* 69 S> */ B(Return), |
305 ] | 302 ] |
306 constant pool: [ | 303 constant pool: [ |
307 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], | 304 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], |
308 FIXED_ARRAY_TYPE, | 305 FIXED_ARRAY_TYPE, |
309 ] | 306 ] |
310 handlers: [ | 307 handlers: [ |
311 ] | 308 ] |
312 | 309 |
313 --- | 310 --- |
314 snippet: " | 311 snippet: " |
315 var a = 'test'; return { val: a, [a]: 1 }; | 312 var a = 'test'; return { val: a, [a]: 1 }; |
316 " | 313 " |
317 frame size: 5 | 314 frame size: 4 |
318 parameter count: 1 | 315 parameter count: 1 |
319 bytecode array length: 32 | 316 bytecode array length: 28 |
320 bytecodes: [ | 317 bytecodes: [ |
321 /* 30 E> */ B(StackCheck), | 318 /* 30 E> */ B(StackCheck), |
322 /* 42 S> */ B(LdaConstant), U8(0), | 319 /* 42 S> */ B(LdaConstant), U8(0), |
323 B(Star), R(0), | 320 B(Star), R(0), |
324 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(1), | 321 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(1), |
325 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(2), | 322 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(2), |
326 /* 68 E> */ B(ToName), R(2), | 323 /* 68 E> */ B(ToName), R(2), |
327 B(LdaSmi), U8(1), | 324 B(LdaSmi), U8(1), |
328 B(Star), R(3), | 325 B(Star), R(3), |
329 B(LdaZero), | 326 B(StaDataPropertyInLiteral), R(1), R(2), R(3), U8(0), |
330 B(Star), R(4), | |
331 B(LdaZero), | |
332 B(StaDataPropertyInLiteral), R(1), R(2), R(3), R(4), | |
333 B(Ldar), R(1), | 327 B(Ldar), R(1), |
334 /* 77 S> */ B(Return), | 328 /* 77 S> */ B(Return), |
335 ] | 329 ] |
336 constant pool: [ | 330 constant pool: [ |
337 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], | 331 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], |
338 FIXED_ARRAY_TYPE, | 332 FIXED_ARRAY_TYPE, |
339 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 333 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
340 ] | 334 ] |
341 handlers: [ | 335 handlers: [ |
342 ] | 336 ] |
343 | 337 |
344 --- | 338 --- |
345 snippet: " | 339 snippet: " |
346 var a = 'test'; return { [a]: 1, __proto__: {} }; | 340 var a = 'test'; return { [a]: 1, __proto__: {} }; |
347 " | 341 " |
348 frame size: 5 | 342 frame size: 5 |
349 parameter count: 1 | 343 parameter count: 1 |
350 bytecode array length: 44 | 344 bytecode array length: 40 |
351 bytecodes: [ | 345 bytecodes: [ |
352 /* 30 E> */ B(StackCheck), | 346 /* 30 E> */ B(StackCheck), |
353 /* 42 S> */ B(LdaConstant), U8(0), | 347 /* 42 S> */ B(LdaConstant), U8(0), |
354 B(Star), R(0), | 348 B(Star), R(0), |
355 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), R(1), | 349 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), R(1), |
356 /* 60 E> */ B(ToName), R(2), | 350 /* 60 E> */ B(ToName), R(2), |
357 B(LdaSmi), U8(1), | 351 B(LdaSmi), U8(1), |
358 B(Star), R(3), | 352 B(Star), R(3), |
359 B(LdaZero), | 353 B(StaDataPropertyInLiteral), R(1), R(2), R(3), U8(0), |
360 B(Star), R(4), | |
361 B(LdaZero), | |
362 B(StaDataPropertyInLiteral), R(1), R(2), R(3), R(4), | |
363 B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(4), | 354 B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(4), |
364 B(Mov), R(1), R(2), | 355 B(Mov), R(1), R(2), |
365 B(Mov), R(4), R(3), | 356 B(Mov), R(4), R(3), |
366 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2)
, | 357 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2)
, |
367 B(Ldar), R(2), | 358 B(Ldar), R(2), |
368 /* 84 S> */ B(Return), | 359 /* 84 S> */ B(Return), |
369 ] | 360 ] |
370 constant pool: [ | 361 constant pool: [ |
371 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], | 362 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], |
372 FIXED_ARRAY_TYPE, | 363 FIXED_ARRAY_TYPE, |
373 ] | 364 ] |
374 handlers: [ | 365 handlers: [ |
375 ] | 366 ] |
376 | 367 |
377 --- | 368 --- |
378 snippet: " | 369 snippet: " |
379 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} }; | 370 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} }; |
380 " | 371 " |
381 frame size: 6 | 372 frame size: 6 |
382 parameter count: 1 | 373 parameter count: 1 |
383 bytecode array length: 65 | 374 bytecode array length: 61 |
384 bytecodes: [ | 375 bytecodes: [ |
385 /* 30 E> */ B(StackCheck), | 376 /* 30 E> */ B(StackCheck), |
386 /* 42 S> */ B(LdaConstant), U8(0), | 377 /* 42 S> */ B(LdaConstant), U8(0), |
387 B(Star), R(0), | 378 B(Star), R(0), |
388 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), | 379 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), |
389 /* 60 E> */ B(ToName), R(2), | 380 /* 60 E> */ B(ToName), R(2), |
390 B(LdaConstant), U8(2), | 381 B(LdaConstant), U8(2), |
391 B(Star), R(3), | 382 B(Star), R(3), |
392 B(LdaZero), | 383 B(StaDataPropertyInLiteral), R(1), R(2), R(3), U8(0), |
393 B(Star), R(4), | |
394 B(LdaZero), | |
395 B(StaDataPropertyInLiteral), R(1), R(2), R(3), R(4), | |
396 B(LdaConstant), U8(3), | 384 B(LdaConstant), U8(3), |
397 B(ToName), R(3), | 385 B(ToName), R(3), |
398 B(CreateClosure), U8(4), U8(2), | 386 B(CreateClosure), U8(4), U8(2), |
399 B(Star), R(4), | 387 B(Star), R(4), |
400 B(LdaZero), | 388 B(LdaZero), |
401 B(Star), R(5), | 389 B(Star), R(5), |
402 B(Mov), R(1), R(2), | 390 B(Mov), R(1), R(2), |
403 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R(
2), U8(4), | 391 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R(
2), U8(4), |
404 B(LdaConstant), U8(3), | 392 B(LdaConstant), U8(3), |
405 B(ToName), R(3), | 393 B(ToName), R(3), |
406 B(CreateClosure), U8(5), U8(2), | 394 B(CreateClosure), U8(5), U8(2), |
407 B(Star), R(4), | 395 B(Star), R(4), |
408 B(LdaZero), | 396 B(LdaZero), |
409 B(Star), R(5), | 397 B(Star), R(5), |
410 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R(
2), U8(4), | 398 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R(
2), U8(4), |
411 B(Ldar), R(2), | 399 B(Ldar), R(2), |
412 /* 99 S> */ B(Return), | 400 /* 99 S> */ B(Return), |
413 ] | 401 ] |
414 constant pool: [ | 402 constant pool: [ |
415 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
416 FIXED_ARRAY_TYPE, | 404 FIXED_ARRAY_TYPE, |
417 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
418 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
419 SHARED_FUNCTION_INFO_TYPE, | 407 SHARED_FUNCTION_INFO_TYPE, |
420 SHARED_FUNCTION_INFO_TYPE, | 408 SHARED_FUNCTION_INFO_TYPE, |
421 ] | 409 ] |
422 handlers: [ | 410 handlers: [ |
423 ] | 411 ] |
424 | 412 |
OLD | NEW |