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