Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 1 | # |
| 2 | # Autogenerated by generate-bytecode-expectations. |
| 3 | # |
| 4 | |
| 5 | --- |
| 6 | pool type: mixed |
| 7 | execute: yes |
| 8 | wrap: yes |
| 9 | |
| 10 | --- |
| 11 | snippet: " |
| 12 | g = function(){}; eval(''); return g(); |
| 13 | " |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 14 | frame size: 10 |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 15 | parameter count: 1 |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 16 | bytecode array length: 89 |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 17 | bytecodes: [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 18 | B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 19 | B(PushContext), R(0), |
| 20 | B(Ldar), R(this), |
| 21 | B(StaContextSlot), R(context), U8(4), |
| 22 | B(CreateMappedArguments), |
| 23 | B(StaContextSlot), R(context), U8(5), |
| 24 | B(Ldar), R(new_target), |
| 25 | B(StaContextSlot), R(context), U8(6), |
| 26 | /* 30 E> */ B(StackCheck), |
| 27 | /* 34 S> */ B(CreateClosure), U8(0), U8(0), |
| 28 | /* 36 E> */ B(StaLookupSlotSloppy), U8(1), |
| 29 | /* 52 S> */ B(LdaConstant), U8(2), |
| 30 | B(Star), R(3), |
| 31 | B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1), |
| 32 | B(LdaConstant), U8(3), |
| 33 | B(Star), R(3), |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 34 | B(LdaZero), |
| 35 | B(Star), R(7), |
| 36 | B(LdaSmi), U8(30), |
| 37 | B(Star), R(8), |
| 38 | B(LdaSmi), U8(52), |
| 39 | B(Star), R(9), |
Ben Murdoch | 61f157c | 2016-09-16 13:49:30 +0100 | [diff] [blame] | 40 | B(Mov), R(1), R(4), |
| 41 | B(Mov), R(3), R(5), |
| 42 | B(Mov), R(closure), R(6), |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 43 | B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(6), |
| 44 | B(Star), R(1), |
| 45 | /* 52 E> */ B(Call), R(1), R(2), U8(2), U8(0), |
| 46 | /* 62 S> */ B(LdaConstant), U8(1), |
| 47 | B(Star), R(3), |
| 48 | B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1), |
| 49 | /* 69 E> */ B(Call), R(1), R(2), U8(1), U8(3), |
| 50 | /* 74 S> */ B(Return), |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 51 | ] |
| 52 | constant pool: [ |
| 53 | InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 54 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 55 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 56 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 57 | ] |
| 58 | handlers: [ |
| 59 | ] |
| 60 | |