| 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 legacy const: yes | 9 legacy const: yes |
| 10 | 10 |
| 11 --- | 11 --- |
| 12 snippet: " | 12 snippet: " |
| 13 const a = 1; { var a = 2; } | 13 const a = 1; { var a = 2; } |
| 14 " | 14 " |
| 15 frame size: 3 | 15 frame size: 3 |
| 16 parameter count: 1 | 16 parameter count: 1 |
| 17 bytecode array length: 14 | 17 bytecode array length: 16 |
| 18 bytecodes: [ | 18 bytecodes: [ |
| 19 B(Wide), B(LdaSmi), U16(150), |
| 20 B(Star), R(1), |
| 19 B(LdaConstant), U8(0), | 21 B(LdaConstant), U8(0), |
| 20 B(Star), R(1), | |
| 21 B(LdaConstant), U8(1), | |
| 22 B(Star), R(2), | 22 B(Star), R(2), |
| 23 B(CallRuntime), U16(Runtime::kNewSyntaxError), R(1), U8(2), | 23 B(CallRuntime), U16(Runtime::kNewSyntaxError), R(1), U8(2), |
| 24 B(Throw), | 24 B(Throw), |
| 25 ] | 25 ] |
| 26 constant pool: [ | 26 constant pool: [ |
| 27 kInstanceTypeDontCare, | |
| 28 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 27 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 29 ] | 28 ] |
| 30 handlers: [ | 29 handlers: [ |
| 31 ] | 30 ] |
| 32 | 31 |
| OLD | NEW |