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