| 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: 89 | 14 bytecode array length: 83 | 
| 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(StaContextSlot), R(context), U8(4), U8(0), | 19                 B(StaCurrentContextSlot), U8(4), | 
| 20                 B(CreateMappedArguments), | 20                 B(CreateMappedArguments), | 
| 21                 B(StaContextSlot), R(context), U8(6), U8(0), | 21                 B(StaCurrentContextSlot), U8(6), | 
| 22                 B(Ldar), R(new_target), | 22                 B(Ldar), R(new_target), | 
| 23                 B(StaContextSlot), R(context), U8(5), U8(0), | 23                 B(StaCurrentContextSlot), U8(5), | 
| 24   /*   30 E> */ B(StackCheck), | 24   /*   30 E> */ B(StackCheck), | 
| 25   /*   34 S> */ B(CreateClosure), U8(0), U8(2), | 25   /*   34 S> */ B(CreateClosure), U8(0), U8(2), | 
| 26   /*   36 E> */ B(StaLookupSlotSloppy), U8(1), | 26   /*   36 E> */ B(StaLookupSlotSloppy), U8(1), | 
| 27   /*   52 S> */ B(LdaConstant), U8(2), | 27   /*   52 S> */ B(LdaConstant), U8(2), | 
| 28                 B(Star), R(4), | 28                 B(Star), R(4), | 
| 29                 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
    ), U8(1), R(1), | 29                 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
    ), U8(1), R(1), | 
| 30                 B(LdaConstant), U8(3), | 30                 B(LdaConstant), U8(3), | 
| 31                 B(Star), R(3), | 31                 B(Star), R(3), | 
| 32                 B(LdaZero), | 32                 B(LdaZero), | 
| 33                 B(Star), R(7), | 33                 B(Star), R(7), | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 49 ] | 49 ] | 
| 50 constant pool: [ | 50 constant pool: [ | 
| 51   SHARED_FUNCTION_INFO_TYPE, | 51   SHARED_FUNCTION_INFO_TYPE, | 
| 52   ONE_BYTE_INTERNALIZED_STRING_TYPE ["g"], | 52   ONE_BYTE_INTERNALIZED_STRING_TYPE ["g"], | 
| 53   ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], | 53   ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], | 
| 54   ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 54   ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 
| 55 ] | 55 ] | 
| 56 handlers: [ | 56 handlers: [ | 
| 57 ] | 57 ] | 
| 58 | 58 | 
| OLD | NEW | 
|---|