Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/TryFinally.golden

Issue 2260473003: [interpreter] Add CreateCatchContext bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: group context bytecodes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 ---
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ] 46 ]
47 handlers: [ 47 handlers: [
48 [8, 12, 18], 48 [8, 12, 18],
49 ] 49 ]
50 50
51 --- 51 ---
52 snippet: " 52 snippet: "
53 var a = 1; 53 var a = 1;
54 try { a = 2; } catch(e) { a = 20 } finally { a = 3; } 54 try { a = 2; } catch(e) { a = 20 } finally { a = 3; }
55 " 55 "
56 frame size: 9 56 frame size: 7
57 parameter count: 1 57 parameter count: 1
58 bytecode array length: 87 58 bytecode array length: 80
59 bytecodes: [ 59 bytecodes: [
60 /* 30 E> */ B(StackCheck), 60 /* 30 E> */ B(StackCheck),
61 /* 42 S> */ B(LdaSmi), U8(1), 61 /* 42 S> */ B(LdaSmi), U8(1),
62 B(Star), R(0), 62 B(Star), R(0),
63 B(Mov), R(context), R(4), 63 B(Mov), R(context), R(4),
64 B(Mov), R(context), R(5), 64 B(Mov), R(context), R(5),
65 /* 51 S> */ B(LdaSmi), U8(2), 65 /* 51 S> */ B(LdaSmi), U8(2),
66 B(Star), R(0), 66 B(Star), R(0),
67 B(Jump), U8(33), 67 B(Jump), U8(26),
68 B(Star), R(7),
69 B(LdaConstant), U8(0),
70 B(Star), R(6), 68 B(Star), R(6),
71 B(Mov), R(closure), R(8), 69 B(Ldar), R(closure),
72 /* 53 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(6), U8(3), 70 /* 53 E> */ B(CreateCatchContext), R(6), U8(0),
73 B(Star), R(5), 71 B(Star), R(5),
74 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 72 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
75 B(Ldar), R(5), 73 B(Ldar), R(5),
76 B(PushContext), R(1), 74 B(PushContext), R(1),
77 /* 71 S> */ B(LdaSmi), U8(20), 75 /* 71 S> */ B(LdaSmi), U8(20),
78 B(Star), R(0), 76 B(Star), R(0),
79 B(PopContext), R(1), 77 B(PopContext), R(1),
80 B(LdaSmi), U8(-1), 78 B(LdaSmi), U8(-1),
81 B(Star), R(2), 79 B(Star), R(2),
82 B(Jump), U8(7), 80 B(Jump), U8(7),
(...skipping 11 matching lines...) Expand all
94 B(Jump), U8(5), 92 B(Jump), U8(5),
95 B(Ldar), R(3), 93 B(Ldar), R(3),
96 B(ReThrow), 94 B(ReThrow),
97 B(LdaUndefined), 95 B(LdaUndefined),
98 /* 99 S> */ B(Return), 96 /* 99 S> */ B(Return),
99 ] 97 ]
100 constant pool: [ 98 constant pool: [
101 "e", 99 "e",
102 ] 100 ]
103 handlers: [ 101 handlers: [
104 [8, 48, 54], 102 [8, 41, 47],
105 [11, 15, 17], 103 [11, 15, 17],
106 ] 104 ]
107 105
108 --- 106 ---
109 snippet: " 107 snippet: "
110 var a; try { 108 var a; try {
111 try { a = 1 } catch(e) { a = 2 } 109 try { a = 1 } catch(e) { a = 2 }
112 } catch(e) { a = 20 } finally { a = 3; } 110 } catch(e) { a = 20 } finally { a = 3; }
113 " 111 "
114 frame size: 10 112 frame size: 8
115 parameter count: 1 113 parameter count: 1
116 bytecode array length: 119 114 bytecode array length: 105
117 bytecodes: [ 115 bytecodes: [
118 /* 30 E> */ B(StackCheck), 116 /* 30 E> */ B(StackCheck),
119 B(Mov), R(context), R(4), 117 B(Mov), R(context), R(4),
120 B(Mov), R(context), R(5), 118 B(Mov), R(context), R(5),
121 B(Mov), R(context), R(6), 119 B(Mov), R(context), R(6),
122 /* 55 S> */ B(LdaSmi), U8(1), 120 /* 55 S> */ B(LdaSmi), U8(1),
123 B(Star), R(0), 121 B(Star), R(0),
124 B(Jump), U8(33), 122 B(Jump), U8(26),
125 B(Star), R(8),
126 B(LdaConstant), U8(0),
127 B(Star), R(7), 123 B(Star), R(7),
128 B(Mov), R(closure), R(9), 124 B(Ldar), R(closure),
129 /* 57 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(7), U8(3), 125 /* 57 E> */ B(CreateCatchContext), R(7), U8(0),
130 B(Star), R(6), 126 B(Star), R(6),
131 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 127 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
132 B(Ldar), R(6), 128 B(Ldar), R(6),
133 B(PushContext), R(1), 129 B(PushContext), R(1),
134 /* 74 S> */ B(LdaSmi), U8(2), 130 /* 74 S> */ B(LdaSmi), U8(2),
135 B(Star), R(0), 131 B(Star), R(0),
136 B(PopContext), R(1), 132 B(PopContext), R(1),
137 B(Jump), U8(33), 133 B(Jump), U8(26),
138 B(Star), R(7),
139 B(LdaConstant), U8(0),
140 B(Star), R(6), 134 B(Star), R(6),
141 B(Mov), R(closure), R(8), 135 B(Ldar), R(closure),
142 /* 76 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(6), U8(3), 136 /* 76 E> */ B(CreateCatchContext), R(6), U8(0),
143 B(Star), R(5), 137 B(Star), R(5),
144 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 138 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
145 B(Ldar), R(5), 139 B(Ldar), R(5),
146 B(PushContext), R(1), 140 B(PushContext), R(1),
147 /* 95 S> */ B(LdaSmi), U8(20), 141 /* 95 S> */ B(LdaSmi), U8(20),
148 B(Star), R(0), 142 B(Star), R(0),
149 B(PopContext), R(1), 143 B(PopContext), R(1),
150 B(LdaSmi), U8(-1), 144 B(LdaSmi), U8(-1),
151 B(Star), R(2), 145 B(Star), R(2),
152 B(Jump), U8(7), 146 B(Jump), U8(7),
(...skipping 11 matching lines...) Expand all
164 B(Jump), U8(5), 158 B(Jump), U8(5),
165 B(Ldar), R(3), 159 B(Ldar), R(3),
166 B(ReThrow), 160 B(ReThrow),
167 B(LdaUndefined), 161 B(LdaUndefined),
168 /* 123 S> */ B(Return), 162 /* 123 S> */ B(Return),
169 ] 163 ]
170 constant pool: [ 164 constant pool: [
171 "e", 165 "e",
172 ] 166 ]
173 handlers: [ 167 handlers: [
174 [4, 80, 86], 168 [4, 66, 72],
175 [7, 47, 49], 169 [7, 40, 42],
176 [10, 14, 16], 170 [10, 14, 16],
177 ] 171 ]
178 172
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698