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: string |
| 7 | execute: yes |
| 8 | wrap: yes |
| 9 | |
| 10 | --- |
| 11 | snippet: " |
| 12 | var a = 1; |
| 13 | try { a = 2; } finally { a = 3; } |
| 14 | " |
| 15 | frame size: 4 |
| 16 | parameter count: 1 |
| 17 | bytecode array length: 51 |
| 18 | bytecodes: [ |
| 19 | B(StackCheck), |
| 20 | B(LdaSmi), U8(1), |
| 21 | B(Star), R(0), |
| 22 | B(Mov), R(context), R(3), |
| 23 | B(LdaSmi), U8(2), |
| 24 | B(Star), R(0), |
| 25 | B(LdaSmi), U8(-1), |
| 26 | B(Star), R(1), |
| 27 | B(Jump), U8(7), |
| 28 | B(Star), R(2), |
| 29 | B(LdaZero), |
| 30 | B(Star), R(1), |
| 31 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 32 | B(Star), R(3), |
| 33 | B(LdaSmi), U8(3), |
| 34 | B(Star), R(0), |
| 35 | B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(3), U8(1), |
| 36 | B(LdaZero), |
| 37 | B(TestEqualStrict), R(1), |
| 38 | B(JumpIfTrue), U8(4), |
| 39 | B(Jump), U8(5), |
| 40 | B(Ldar), R(2), |
| 41 | B(ReThrow), |
| 42 | B(LdaUndefined), |
| 43 | B(Return), |
| 44 | ] |
| 45 | constant pool: [ |
| 46 | ] |
| 47 | handlers: [ |
| 48 | [8, 12, 18], |
| 49 | ] |
| 50 | |
| 51 | --- |
| 52 | snippet: " |
| 53 | var a = 1; |
| 54 | try { a = 2; } catch(e) { a = 20 } finally { a = 3; } |
| 55 | " |
| 56 | frame size: 9 |
| 57 | parameter count: 1 |
| 58 | bytecode array length: 88 |
| 59 | bytecodes: [ |
| 60 | B(StackCheck), |
| 61 | B(LdaSmi), U8(1), |
| 62 | B(Star), R(0), |
| 63 | B(Mov), R(context), R(4), |
| 64 | B(Mov), R(context), R(5), |
| 65 | B(LdaSmi), U8(2), |
| 66 | B(Star), R(0), |
| 67 | B(Jump), U8(34), |
| 68 | B(Star), R(7), |
| 69 | B(LdaConstant), U8(0), |
| 70 | B(Star), R(6), |
| 71 | B(Ldar), R(closure), |
| 72 | B(Star), R(8), |
| 73 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(6), U8(3), |
| 74 | B(Star), R(5), |
| 75 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 76 | B(Ldar), R(5), |
| 77 | B(PushContext), R(1), |
| 78 | B(LdaSmi), U8(20), |
| 79 | B(Star), R(0), |
| 80 | B(PopContext), R(1), |
| 81 | B(LdaSmi), U8(-1), |
| 82 | B(Star), R(2), |
| 83 | B(Jump), U8(7), |
| 84 | B(Star), R(3), |
| 85 | B(LdaZero), |
| 86 | B(Star), R(2), |
| 87 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 88 | B(Star), R(4), |
| 89 | B(LdaSmi), U8(3), |
| 90 | B(Star), R(0), |
| 91 | B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(4), U8(1), |
| 92 | B(LdaZero), |
| 93 | B(TestEqualStrict), R(2), |
| 94 | B(JumpIfTrue), U8(4), |
| 95 | B(Jump), U8(5), |
| 96 | B(Ldar), R(3), |
| 97 | B(ReThrow), |
| 98 | B(LdaUndefined), |
| 99 | B(Return), |
| 100 | ] |
| 101 | constant pool: [ |
| 102 | "e", |
| 103 | ] |
| 104 | handlers: [ |
| 105 | [8, 49, 55], |
| 106 | [11, 15, 17], |
| 107 | ] |
| 108 | |
| 109 | --- |
| 110 | snippet: " |
| 111 | var a; try { |
| 112 | try { a = 1 } catch(e) { a = 2 } |
| 113 | } catch(e) { a = 20 } finally { a = 3; } |
| 114 | " |
| 115 | frame size: 10 |
| 116 | parameter count: 1 |
| 117 | bytecode array length: 121 |
| 118 | bytecodes: [ |
| 119 | B(StackCheck), |
| 120 | B(Mov), R(context), R(4), |
| 121 | B(Mov), R(context), R(5), |
| 122 | B(Mov), R(context), R(6), |
| 123 | B(LdaSmi), U8(1), |
| 124 | B(Star), R(0), |
| 125 | B(Jump), U8(34), |
| 126 | B(Star), R(8), |
| 127 | B(LdaConstant), U8(0), |
| 128 | B(Star), R(7), |
| 129 | B(Ldar), R(closure), |
| 130 | B(Star), R(9), |
| 131 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(7), U8(3), |
| 132 | B(Star), R(6), |
| 133 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 134 | B(Ldar), R(6), |
| 135 | B(PushContext), R(1), |
| 136 | B(LdaSmi), U8(2), |
| 137 | B(Star), R(0), |
| 138 | B(PopContext), R(1), |
| 139 | B(Jump), U8(34), |
| 140 | B(Star), R(7), |
| 141 | B(LdaConstant), U8(0), |
| 142 | B(Star), R(6), |
| 143 | B(Ldar), R(closure), |
| 144 | B(Star), R(8), |
| 145 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(6), U8(3), |
| 146 | B(Star), R(5), |
| 147 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 148 | B(Ldar), R(5), |
| 149 | B(PushContext), R(1), |
| 150 | B(LdaSmi), U8(20), |
| 151 | B(Star), R(0), |
| 152 | B(PopContext), R(1), |
| 153 | B(LdaSmi), U8(-1), |
| 154 | B(Star), R(2), |
| 155 | B(Jump), U8(7), |
| 156 | B(Star), R(3), |
| 157 | B(LdaZero), |
| 158 | B(Star), R(2), |
| 159 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 160 | B(Star), R(4), |
| 161 | B(LdaSmi), U8(3), |
| 162 | B(Star), R(0), |
| 163 | B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(4), U8(1), |
| 164 | B(LdaZero), |
| 165 | B(TestEqualStrict), R(2), |
| 166 | B(JumpIfTrue), U8(4), |
| 167 | B(Jump), U8(5), |
| 168 | B(Ldar), R(3), |
| 169 | B(ReThrow), |
| 170 | B(LdaUndefined), |
| 171 | B(Return), |
| 172 | ] |
| 173 | constant pool: [ |
| 174 | "e", |
| 175 | ] |
| 176 | handlers: [ |
| 177 | [4, 82, 88], |
| 178 | [7, 48, 50], |
| 179 | [10, 14, 16], |
| 180 | ] |
| 181 | |