| 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 g = function(){}; eval(''); return g(); | 10 g = function(){}; eval(''); return g(); |
| 11 " | 11 " |
| 12 frame size: 10 | 12 frame size: 10 |
| 13 parameter count: 1 | 13 parameter count: 1 |
| 14 bytecode array length: 81 | 14 bytecode array length: 82 |
| 15 bytecodes: [ | 15 bytecodes: [ |
| 16 B(CreateFunctionContext), U8(3), | 16 B(CreateFunctionContext), U8(3), |
| 17 B(PushContext), R(0), | 17 B(PushContext), R(0), |
| 18 B(Ldar), R(this), | 18 B(Ldar), R(this), |
| 19 B(StaCurrentContextSlot), U8(4), | 19 B(StaCurrentContextSlot), U8(4), |
| 20 B(CreateMappedArguments), | 20 B(CreateMappedArguments), |
| 21 B(StaCurrentContextSlot), U8(6), | 21 B(StaCurrentContextSlot), U8(6), |
| 22 B(Ldar), R(new_target), | 22 B(Ldar), R(new_target), |
| 23 B(StaCurrentContextSlot), U8(5), | 23 B(StaCurrentContextSlot), U8(5), |
| 24 /* 30 E> */ B(StackCheck), | 24 /* 30 E> */ B(StackCheck), |
| 25 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 25 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
| 26 /* 36 E> */ B(StaLookupSlotSloppy), U8(1), | 26 /* 36 E> */ B(StaLookupSlotSloppy), U8(1), |
| 27 /* 52 S> */ B(LdaUndefined), | 27 /* 52 S> */ B(LdaUndefined), |
| 28 B(Star), R(2), | 28 B(Star), R(2), |
| 29 /* 52 E> */ B(LdaLookupGlobalSlot), U8(2), U8(5), U8(1), | 29 /* 52 E> */ B(LdaLookupGlobalSlot), U8(2), U8(5), U8(1), |
| 30 B(Star), R(1), | 30 B(Star), R(1), |
| 31 B(LdaConstant), U8(3), | 31 B(LdaConstant), U8(3), |
| 32 B(Star), R(3), | 32 B(Star), R(3), |
| 33 B(LdaZero), | 33 B(LdaZero), |
| 34 B(Star), R(7), | 34 B(Star), R(7), |
| 35 B(LdaSmi), I8(30), | 35 B(LdaSmi), I8(30), |
| 36 B(Star), R(8), | 36 B(Star), R(8), |
| 37 B(LdaSmi), I8(52), | 37 B(LdaSmi), I8(52), |
| 38 B(Star), R(9), | 38 B(Star), R(9), |
| 39 B(Mov), R(1), R(4), | 39 B(Mov), R(1), R(4), |
| 40 B(Mov), R(3), R(5), | 40 B(Mov), R(3), R(5), |
| 41 B(Mov), R(closure), R(6), | 41 B(Mov), R(closure), R(6), |
| 42 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4),
U8(6), | 42 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4),
U8(6), |
| 43 B(Star), R(1), | 43 B(Star), R(1), |
| 44 /* 52 E> */ B(Call1), R(1), R(2), R(3), U8(3), | 44 /* 52 E> */ B(Call), R(1), R(2), U8(2), U8(3), |
| 45 /* 62 S> */ B(LdaUndefined), | 45 /* 62 S> */ B(LdaUndefined), |
| 46 B(Star), R(2), | 46 B(Star), R(2), |
| 47 /* 69 E> */ B(LdaLookupGlobalSlot), U8(1), U8(9), U8(1), | 47 /* 69 E> */ B(LdaLookupGlobalSlot), U8(1), U8(9), U8(1), |
| 48 B(Star), R(1), | 48 B(Star), R(1), |
| 49 /* 69 E> */ B(Call0), R(1), R(2), U8(7), | 49 /* 69 E> */ B(Call), R(1), R(2), U8(1), U8(7), |
| 50 /* 74 S> */ B(Return), | 50 /* 74 S> */ B(Return), |
| 51 ] | 51 ] |
| 52 constant pool: [ | 52 constant pool: [ |
| 53 SHARED_FUNCTION_INFO_TYPE, | 53 SHARED_FUNCTION_INFO_TYPE, |
| 54 ONE_BYTE_INTERNALIZED_STRING_TYPE ["g"], | 54 ONE_BYTE_INTERNALIZED_STRING_TYPE ["g"], |
| 55 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], | 55 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], |
| 56 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 56 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
| 57 ] | 57 ] |
| 58 handlers: [ | 58 handlers: [ |
| 59 ] | 59 ] |
| 60 | 60 |
| OLD | NEW |