| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 wrap: no | 6 wrap: no |
| 7 top level: yes | 7 top level: yes |
| 8 | 8 |
| 9 --- | 9 --- |
| 10 snippet: " | 10 snippet: " |
| 11 var a = { func: function() { } }; | 11 var a = { func: function() { } }; |
| 12 " | 12 " |
| 13 frame size: 4 | 13 frame size: 4 |
| 14 parameter count: 1 | 14 parameter count: 1 |
| 15 bytecode array length: 42 | 15 bytecode array length: 43 |
| 16 bytecodes: [ | 16 bytecodes: [ |
| 17 B(LdaConstant), U8(0), | 17 B(LdaConstant), U8(0), |
| 18 B(Star), R(1), | 18 B(Star), R(1), |
| 19 B(LdaZero), | 19 B(LdaZero), |
| 20 B(Star), R(2), | 20 B(Star), R(2), |
| 21 B(Mov), R(closure), R(3), | 21 B(Mov), R(closure), R(3), |
| 22 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1
), U8(3), | 22 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1
), U8(3), |
| 23 /* 0 E> */ B(StackCheck), | 23 /* 0 E> */ B(StackCheck), |
| 24 /* 8 S> */ B(LdaConstant), U8(1), | 24 /* 8 S> */ B(LdaConstant), U8(1), |
| 25 B(Star), R(1), | 25 B(Star), R(1), |
| 26 B(LdaZero), | 26 B(LdaZero), |
| 27 B(CreateObjectLiteral), U8(2), U8(0), U8(1), R(3), | 27 B(CreateObjectLiteral), U8(2), U8(0), U8(1), R(3), |
| 28 B(Star), R(2), | 28 B(Star), R(2), |
| 29 B(CreateClosure), U8(3), U8(0), | 29 B(CreateClosure), U8(3), U8(4), U8(0), |
| 30 B(StaNamedPropertySloppy), R(3), U8(4), U8(4), | 30 B(StaNamedPropertySloppy), R(3), U8(4), U8(5), |
| 31 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), | 31 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), |
| 32 B(LdaUndefined), | 32 B(LdaUndefined), |
| 33 /* 33 S> */ B(Return), | 33 /* 33 S> */ B(Return), |
| 34 ] | 34 ] |
| 35 constant pool: [ | 35 constant pool: [ |
| 36 FIXED_ARRAY_TYPE, | 36 FIXED_ARRAY_TYPE, |
| 37 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 37 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 38 FIXED_ARRAY_TYPE, | 38 FIXED_ARRAY_TYPE, |
| 39 SHARED_FUNCTION_INFO_TYPE, | 39 SHARED_FUNCTION_INFO_TYPE, |
| 40 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], | 40 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
| 41 ] | 41 ] |
| 42 handlers: [ | 42 handlers: [ |
| 43 ] | 43 ] |
| 44 | 44 |
| OLD | NEW |