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