OLD | NEW |
(Empty) | |
| 1 # |
| 2 # Autogenerated by generate-bytecode-expectations |
| 3 # |
| 4 |
| 5 --- |
| 6 pool type: string |
| 7 execute: yes |
| 8 wrap: yes |
| 9 |
| 10 --- |
| 11 snippet: " |
| 12 eval('var x = 10;'); return x; |
| 13 " |
| 14 frame size: 9 |
| 15 parameter count: 1 |
| 16 bytecode array length: 67 |
| 17 bytecodes: [ |
| 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 B(StackCheck), |
| 27 B(LdaConstant), U8(0), |
| 28 B(Star), R(3), |
| 29 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, |
| 30 B(LdaConstant), U8(1), |
| 31 B(Star), R(3), |
| 32 B(Mov), R(1), R(4), |
| 33 B(Mov), R(3), R(5), |
| 34 B(Mov), R(closure), R(6), |
| 35 B(LdaZero), |
| 36 B(Star), R(7), |
| 37 B(LdaSmi8), U8(30), |
| 38 B(Star), R(8), |
| 39 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), |
| 40 B(Star), R(1), |
| 41 B(Call), R(1), R(2), U8(2), U8(0), |
| 42 B(LdaLookupSlot), U8(2), |
| 43 B(Return), |
| 44 ] |
| 45 constant pool: [ |
| 46 "eval", |
| 47 "var x = 10;", |
| 48 "x", |
| 49 ] |
| 50 handlers: [ |
| 51 ] |
| 52 |
| 53 --- |
| 54 snippet: " |
| 55 eval('var x = 10;'); return typeof x; |
| 56 " |
| 57 frame size: 9 |
| 58 parameter count: 1 |
| 59 bytecode array length: 68 |
| 60 bytecodes: [ |
| 61 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 62 B(PushContext), R(0), |
| 63 B(Ldar), R(this), |
| 64 B(StaContextSlot), R(context), U8(4), |
| 65 B(CreateMappedArguments), |
| 66 B(StaContextSlot), R(context), U8(5), |
| 67 B(Ldar), R(new_target), |
| 68 B(StaContextSlot), R(context), U8(6), |
| 69 B(StackCheck), |
| 70 B(LdaConstant), U8(0), |
| 71 B(Star), R(3), |
| 72 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, |
| 73 B(LdaConstant), U8(1), |
| 74 B(Star), R(3), |
| 75 B(Mov), R(1), R(4), |
| 76 B(Mov), R(3), R(5), |
| 77 B(Mov), R(closure), R(6), |
| 78 B(LdaZero), |
| 79 B(Star), R(7), |
| 80 B(LdaSmi8), U8(30), |
| 81 B(Star), R(8), |
| 82 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), |
| 83 B(Star), R(1), |
| 84 B(Call), R(1), R(2), U8(2), U8(0), |
| 85 B(LdaLookupSlotInsideTypeof), U8(2), |
| 86 B(TypeOf), |
| 87 B(Return), |
| 88 ] |
| 89 constant pool: [ |
| 90 "eval", |
| 91 "var x = 10;", |
| 92 "x", |
| 93 ] |
| 94 handlers: [ |
| 95 ] |
| 96 |
| 97 --- |
| 98 snippet: " |
| 99 x = 20; return eval(''); |
| 100 " |
| 101 frame size: 9 |
| 102 parameter count: 1 |
| 103 bytecode array length: 69 |
| 104 bytecodes: [ |
| 105 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 106 B(PushContext), R(0), |
| 107 B(Ldar), R(this), |
| 108 B(StaContextSlot), R(context), U8(4), |
| 109 B(CreateMappedArguments), |
| 110 B(StaContextSlot), R(context), U8(5), |
| 111 B(Ldar), R(new_target), |
| 112 B(StaContextSlot), R(context), U8(6), |
| 113 B(StackCheck), |
| 114 B(LdaSmi8), U8(20), |
| 115 B(StaLookupSlotSloppy), U8(0), |
| 116 B(LdaConstant), U8(1), |
| 117 B(Star), R(3), |
| 118 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, |
| 119 B(LdaConstant), U8(2), |
| 120 B(Star), R(3), |
| 121 B(Mov), R(1), R(4), |
| 122 B(Mov), R(3), R(5), |
| 123 B(Mov), R(closure), R(6), |
| 124 B(LdaZero), |
| 125 B(Star), R(7), |
| 126 B(LdaSmi8), U8(30), |
| 127 B(Star), R(8), |
| 128 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), |
| 129 B(Star), R(1), |
| 130 B(Call), R(1), R(2), U8(2), U8(0), |
| 131 B(Return), |
| 132 ] |
| 133 constant pool: [ |
| 134 "x", |
| 135 "eval", |
| 136 "", |
| 137 ] |
| 138 handlers: [ |
| 139 ] |
| 140 |
OLD | NEW |