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

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

Issue 2038323002: [interpreter] Filter expression positions at source. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth-0060-source-position-testing
Patch Set: Rebase Created 4 years, 6 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: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 handlers: [ 98 handlers: [
99 ] 99 ]
100 100
101 --- 101 ---
102 snippet: " 102 snippet: "
103 var x = 0; 103 var x = 0;
104 for (var p in [1,2,3]) { x += p; } 104 for (var p in [1,2,3]) { x += p; }
105 " 105 "
106 frame size: 9 106 frame size: 9
107 parameter count: 1 107 parameter count: 1
108 bytecode array length: 55 108 bytecode array length: 54
109 bytecodes: [ 109 bytecodes: [
110 /* 30 E> */ B(StackCheck), 110 /* 30 E> */ B(StackCheck),
111 /* 42 S> */ B(LdaZero), 111 /* 42 S> */ B(LdaZero),
112 B(Star), R(1), 112 B(Star), R(1),
113 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 113 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
114 B(JumpIfUndefined), U8(45), 114 B(JumpIfUndefined), U8(44),
115 B(JumpIfNull), U8(43), 115 B(JumpIfNull), U8(42),
116 B(ToObject), 116 B(ToObject),
117 B(ForInPrepare), R(4), 117 B(ForInPrepare), R(4),
118 B(Star), R(3), 118 B(Star), R(3),
119 B(LdaZero), 119 B(LdaZero),
120 B(Star), R(7), 120 B(Star), R(7),
121 /* 54 S> */ B(ForInDone), R(7), R(6), 121 /* 54 S> */ B(ForInDone), R(7), R(6),
122 B(JumpIfTrue), U8(30), 122 B(JumpIfTrue), U8(29),
123 B(ForInNext), R(3), R(7), R(4), U8(1), 123 B(ForInNext), R(3), R(7), R(4), U8(1),
124 B(JumpIfUndefined), U8(17), 124 B(JumpIfUndefined), U8(16),
125 B(Star), R(0), 125 B(Star), R(0),
126 /* 45 E> */ B(StackCheck), 126 /* 45 E> */ B(StackCheck),
127 B(Star), R(2), 127 B(Star), R(2),
128 /* 70 S> */ B(Nop), 128 /* 70 S> */ B(Ldar), R(0),
129 /* 75 E> */ B(Ldar), R(0), 129 /* 75 E> */ B(Add), R(1),
130 B(Add), R(1),
131 B(Mov), R(1), R(8), 130 B(Mov), R(1), R(8),
132 /* 72 E> */ B(Star), R(1), 131 B(Star), R(1),
133 B(ForInStep), R(7), 132 /* 72 E> */ B(ForInStep), R(7),
134 B(Star), R(7), 133 B(Star), R(7),
135 B(Jump), U8(-31), 134 B(Jump), U8(-30),
136 B(LdaUndefined), 135 B(LdaUndefined),
137 /* 80 S> */ B(Return), 136 /* 80 S> */ B(Return),
138 ] 137 ]
139 constant pool: [ 138 constant pool: [
140 InstanceType::FIXED_ARRAY_TYPE, 139 InstanceType::FIXED_ARRAY_TYPE,
141 ] 140 ]
142 handlers: [ 141 handlers: [
143 ] 142 ]
144 143
145 --- 144 ---
146 snippet: " 145 snippet: "
147 var x = { 'a': 1, 'b': 2 }; 146 var x = { 'a': 1, 'b': 2 };
148 for (x['a'] in [10, 20, 30]) { 147 for (x['a'] in [10, 20, 30]) {
149 if (x['a'] == 10) continue; 148 if (x['a'] == 10) continue;
150 if (x['a'] == 20) break; 149 if (x['a'] == 20) break;
151 } 150 }
152 " 151 "
153 frame size: 8 152 frame size: 8
154 parameter count: 1 153 parameter count: 1
155 bytecode array length: 82 154 bytecode array length: 80
156 bytecodes: [ 155 bytecodes: [
157 /* 30 E> */ B(StackCheck), 156 /* 30 E> */ B(StackCheck),
158 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 157 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
159 B(Star), R(1), 158 B(Star), R(1),
160 B(Star), R(0), 159 B(Star), R(0),
161 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), 160 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
162 B(JumpIfUndefined), U8(67), 161 B(JumpIfUndefined), U8(65),
163 B(JumpIfNull), U8(65), 162 B(JumpIfNull), U8(63),
164 B(ToObject), 163 B(ToObject),
165 B(ForInPrepare), R(2), 164 B(ForInPrepare), R(2),
166 B(Star), R(1), 165 B(Star), R(1),
167 B(LdaZero), 166 B(LdaZero),
168 B(Star), R(5), 167 B(Star), R(5),
169 /* 68 S> */ B(ForInDone), R(5), R(4), 168 /* 68 S> */ B(ForInDone), R(5), R(4),
170 B(JumpIfTrue), U8(52), 169 B(JumpIfTrue), U8(50),
171 B(ForInNext), R(1), R(5), R(2), U8(9), 170 B(ForInNext), R(1), R(5), R(2), U8(9),
172 B(JumpIfUndefined), U8(39), 171 B(JumpIfUndefined), U8(37),
173 B(Star), R(6), 172 B(Star), R(6),
174 /* 67 E> */ B(Ldar), R(6), 173 /* 67 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(7),
175 B(StaNamedPropertySloppy), R(0), U8(2), U8(7),
176 /* 62 E> */ B(StackCheck), 174 /* 62 E> */ B(StackCheck),
177 /* 95 S> */ B(Nop), 175 /* 95 S> */ B(Nop),
178 /* 100 E> */ B(LdrNamedProperty), R(0), U8(2), U8(3), R(7), 176 /* 100 E> */ B(LdrNamedProperty), R(0), U8(2), U8(3), R(7),
179 B(LdaSmi), U8(10), 177 B(LdaSmi), U8(10),
180 /* 106 E> */ B(TestEqual), R(7), 178 /* 106 E> */ B(TestEqual), R(7),
181 B(JumpIfFalse), U8(4), 179 B(JumpIfFalse), U8(4),
182 /* 113 S> */ B(Jump), U8(16), 180 /* 113 S> */ B(Jump), U8(16),
183 /* 125 S> */ B(Nop), 181 /* 125 S> */ B(Nop),
184 /* 130 E> */ B(LdrNamedProperty), R(0), U8(2), U8(5), R(7), 182 /* 130 E> */ B(LdrNamedProperty), R(0), U8(2), U8(5), R(7),
185 B(LdaSmi), U8(20), 183 B(LdaSmi), U8(20),
186 /* 136 E> */ B(TestEqual), R(7), 184 /* 136 E> */ B(TestEqual), R(7),
187 B(JumpIfFalse), U8(4), 185 B(JumpIfFalse), U8(4),
188 /* 143 S> */ B(Jump), U8(8), 186 /* 143 S> */ B(Jump), U8(8),
189 B(ForInStep), R(5), 187 B(ForInStep), R(5),
190 B(Star), R(5), 188 B(Star), R(5),
191 B(Jump), U8(-53), 189 B(Jump), U8(-51),
192 B(LdaUndefined), 190 B(LdaUndefined),
193 /* 152 S> */ B(Return), 191 /* 152 S> */ B(Return),
194 ] 192 ]
195 constant pool: [ 193 constant pool: [
196 InstanceType::FIXED_ARRAY_TYPE, 194 InstanceType::FIXED_ARRAY_TYPE,
197 InstanceType::FIXED_ARRAY_TYPE, 195 InstanceType::FIXED_ARRAY_TYPE,
198 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 196 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
199 ] 197 ]
200 handlers: [ 198 handlers: [
201 ] 199 ]
202 200
203 --- 201 ---
204 snippet: " 202 snippet: "
205 var x = [ 10, 11, 12 ] ; 203 var x = [ 10, 11, 12 ] ;
206 for (x[0] in [1,2,3]) { return x[3]; } 204 for (x[0] in [1,2,3]) { return x[3]; }
207 " 205 "
208 frame size: 9 206 frame size: 9
209 parameter count: 1 207 parameter count: 1
210 bytecode array length: 62 208 bytecode array length: 61
211 bytecodes: [ 209 bytecodes: [
212 /* 30 E> */ B(StackCheck), 210 /* 30 E> */ B(StackCheck),
213 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 211 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
214 B(Star), R(0), 212 B(Star), R(0),
215 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), 213 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
216 B(JumpIfUndefined), U8(49), 214 B(JumpIfUndefined), U8(48),
217 B(JumpIfNull), U8(47), 215 B(JumpIfNull), U8(46),
218 B(ToObject), 216 B(ToObject),
219 B(ForInPrepare), R(2), 217 B(ForInPrepare), R(2),
220 B(Star), R(1), 218 B(Star), R(1),
221 B(LdaZero), 219 B(LdaZero),
222 B(Star), R(5), 220 B(Star), R(5),
223 /* 65 S> */ B(ForInDone), R(5), R(4), 221 /* 65 S> */ B(ForInDone), R(5), R(4),
224 B(JumpIfTrue), U8(34), 222 B(JumpIfTrue), U8(33),
225 B(ForInNext), R(1), R(5), R(2), U8(7), 223 B(ForInNext), R(1), R(5), R(2), U8(7),
226 B(JumpIfUndefined), U8(21), 224 B(JumpIfUndefined), U8(20),
227 B(Star), R(6), 225 B(Star), R(6),
228 /* 64 E> */ B(LdaZero), 226 B(LdaZero),
229 B(Star), R(8), 227 B(Star), R(8),
230 B(Ldar), R(6), 228 B(Ldar), R(6),
231 B(StaKeyedPropertySloppy), R(0), R(8), U8(5), 229 /* 64 E> */ B(StaKeyedPropertySloppy), R(0), R(8), U8(5),
232 /* 59 E> */ B(StackCheck), 230 /* 59 E> */ B(StackCheck),
233 /* 83 S> */ B(Nop), 231 /* 83 S> */ B(LdaSmi), U8(3),
234 /* 91 E> */ B(LdaSmi), U8(3), 232 /* 91 E> */ B(LdaKeyedProperty), R(0), U8(3),
235 B(LdaKeyedProperty), R(0), U8(3),
236 /* 98 S> */ B(Return), 233 /* 98 S> */ B(Return),
237 B(ForInStep), R(5), 234 B(ForInStep), R(5),
238 B(Star), R(5), 235 B(Star), R(5),
239 B(Jump), U8(-35), 236 B(Jump), U8(-34),
240 B(LdaUndefined), 237 B(LdaUndefined),
241 /* 98 S> */ B(Return), 238 /* 98 S> */ B(Return),
242 ] 239 ]
243 constant pool: [ 240 constant pool: [
244 InstanceType::FIXED_ARRAY_TYPE, 241 InstanceType::FIXED_ARRAY_TYPE,
245 InstanceType::FIXED_ARRAY_TYPE, 242 InstanceType::FIXED_ARRAY_TYPE,
246 ] 243 ]
247 handlers: [ 244 handlers: [
248 ] 245 ]
249 246
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698