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