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 try { return 1; } catch(e) { return 2; } |
| 13 " |
| 14 frame size: 5 |
| 15 parameter count: 1 |
| 16 bytecode array length: 40 |
| 17 bytecodes: [ |
| 18 B(StackCheck), |
| 19 B(Mov), R(context), R(1), |
| 20 B(LdaSmi8), U8(1), |
| 21 B(Return), |
| 22 B(Star), R(3), |
| 23 B(LdaConstant), U8(0), |
| 24 B(Star), R(2), |
| 25 B(Ldar), R(closure), |
| 26 B(Star), R(4), |
| 27 B(CallRuntime), U16(Runtime::kPushCatchContext), R(2), U8(3), |
| 28 B(Star), R(1), |
| 29 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 30 B(Ldar), R(1), |
| 31 B(PushContext), R(0), |
| 32 B(LdaSmi8), U8(2), |
| 33 B(PopContext), R(0), |
| 34 B(Return), |
| 35 B(LdaUndefined), |
| 36 B(Return), |
| 37 ] |
| 38 constant pool: [ |
| 39 "e", |
| 40 ] |
| 41 handlers: [ |
| 42 [4, 7, 7], |
| 43 ] |
| 44 |
| 45 --- |
| 46 snippet: " |
| 47 var a; |
| 48 try { a = 1 } catch(e1) {}; |
| 49 try { a = 2 } catch(e2) { a = 3 } |
| 50 " |
| 51 frame size: 6 |
| 52 parameter count: 1 |
| 53 bytecode array length: 81 |
| 54 bytecodes: [ |
| 55 B(StackCheck), |
| 56 B(Mov), R(context), R(2), |
| 57 B(LdaSmi8), U8(1), |
| 58 B(Star), R(0), |
| 59 B(Jump), U8(30), |
| 60 B(Star), R(4), |
| 61 B(LdaConstant), U8(0), |
| 62 B(Star), R(3), |
| 63 B(Ldar), R(closure), |
| 64 B(Star), R(5), |
| 65 B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3), |
| 66 B(Star), R(2), |
| 67 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 68 B(Ldar), R(2), |
| 69 B(PushContext), R(1), |
| 70 B(PopContext), R(1), |
| 71 B(Mov), R(context), R(2), |
| 72 B(LdaSmi8), U8(2), |
| 73 B(Star), R(0), |
| 74 B(Jump), U8(34), |
| 75 B(Star), R(4), |
| 76 B(LdaConstant), U8(1), |
| 77 B(Star), R(3), |
| 78 B(Ldar), R(closure), |
| 79 B(Star), R(5), |
| 80 B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3), |
| 81 B(Star), R(2), |
| 82 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 83 B(Ldar), R(2), |
| 84 B(PushContext), R(1), |
| 85 B(LdaSmi8), U8(3), |
| 86 B(Star), R(0), |
| 87 B(PopContext), R(1), |
| 88 B(LdaUndefined), |
| 89 B(Return), |
| 90 ] |
| 91 constant pool: [ |
| 92 "e1", |
| 93 "e2", |
| 94 ] |
| 95 handlers: [ |
| 96 [4, 8, 10], |
| 97 [41, 45, 47], |
| 98 ] |
| 99 |
OLD | NEW |