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