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

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

Issue 1985753002: [interpreter] Introduce fused bytecodes for common sequences. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 --- 146 ---
147 snippet: " 147 snippet: "
148 var x = { 'a': 1, 'b': 2 }; 148 var x = { 'a': 1, 'b': 2 };
149 for (x['a'] in [10, 20, 30]) { 149 for (x['a'] in [10, 20, 30]) {
150 if (x['a'] == 10) continue; 150 if (x['a'] == 10) continue;
151 if (x['a'] == 20) break; 151 if (x['a'] == 20) break;
152 } 152 }
153 " 153 "
154 frame size: 8 154 frame size: 8
155 parameter count: 1 155 parameter count: 1
156 bytecode array length: 94 156 bytecode array length: 92
157 bytecodes: [ 157 bytecodes: [
158 /* 30 E> */ B(StackCheck), 158 /* 30 E> */ B(StackCheck),
159 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 159 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
160 B(Star), R(1), 160 B(Star), R(1),
161 /* 42 E> */ B(Star), R(0), 161 /* 42 E> */ B(Star), R(0),
162 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), 162 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
163 B(JumpIfUndefined), U8(79), 163 B(JumpIfUndefined), U8(77),
164 B(JumpIfNull), U8(77), 164 B(JumpIfNull), U8(75),
165 B(ToObject), 165 B(ToObject),
166 B(Star), R(1), 166 B(Star), R(1),
167 B(ForInPrepare), R(2), 167 B(ForInPrepare), R(2),
168 B(LdaZero), 168 B(LdaZero),
169 B(Star), R(5), 169 B(Star), R(5),
170 /* 68 S> */ B(ForInDone), R(5), R(4), 170 /* 68 S> */ B(ForInDone), R(5), R(4),
171 B(JumpIfTrue), U8(64), 171 B(JumpIfTrue), U8(62),
172 B(ForInNext), R(1), R(5), R(2), U8(9), 172 B(ForInNext), R(1), R(5), R(2), U8(9),
173 B(JumpIfUndefined), U8(51), 173 B(JumpIfUndefined), U8(49),
174 B(Star), R(6), 174 B(Star), R(6),
175 /* 67 E> */ B(Ldar), R(0), 175 /* 67 E> */ B(Ldar), R(0),
176 B(Star), R(7), 176 B(Star), R(7),
177 B(Ldar), R(6), 177 B(Ldar), R(6),
178 B(StoreICSloppy), R(7), U8(2), U8(7), 178 B(StaNamedPropertySloppy), R(7), U8(2), U8(7),
179 /* 62 E> */ B(StackCheck), 179 /* 62 E> */ B(StackCheck),
180 /* 95 S> */ B(Ldar), R(0), 180 /* 95 S> */ B(Ldar), R(0),
181 B(Star), R(6), 181 B(Star), R(6),
182 /* 100 E> */ B(LoadIC), R(6), U8(2), U8(3), 182 /* 100 E> */ B(LdrNamedProperty), R(6), U8(2), U8(3), R(7),
183 B(Star), R(7),
184 B(LdaSmi), U8(10), 183 B(LdaSmi), U8(10),
185 /* 106 E> */ B(TestEqual), R(7), 184 /* 106 E> */ B(TestEqual), R(7),
186 B(JumpIfFalse), U8(4), 185 B(JumpIfFalse), U8(4),
187 /* 113 S> */ B(Jump), U8(20), 186 /* 113 S> */ B(Jump), U8(19),
188 /* 125 S> */ B(Ldar), R(0), 187 /* 125 S> */ B(Ldar), R(0),
189 B(Star), R(6), 188 B(Star), R(6),
190 /* 130 E> */ B(LoadIC), R(6), U8(2), U8(5), 189 /* 130 E> */ B(LdrNamedProperty), R(6), U8(2), U8(5), R(7),
191 B(Star), R(7),
192 B(LdaSmi), U8(20), 190 B(LdaSmi), U8(20),
193 /* 136 E> */ B(TestEqual), R(7), 191 /* 136 E> */ B(TestEqual), R(7),
194 B(JumpIfFalse), U8(4), 192 B(JumpIfFalse), U8(4),
195 /* 143 S> */ B(Jump), U8(8), 193 /* 143 S> */ B(Jump), U8(8),
196 B(ForInStep), R(5), 194 B(ForInStep), R(5),
197 B(Star), R(5), 195 B(Star), R(5),
198 B(Jump), U8(-65), 196 B(Jump), U8(-63),
199 B(LdaUndefined), 197 B(LdaUndefined),
200 /* 152 S> */ B(Return), 198 /* 152 S> */ B(Return),
201 ] 199 ]
202 constant pool: [ 200 constant pool: [
203 InstanceType::FIXED_ARRAY_TYPE, 201 InstanceType::FIXED_ARRAY_TYPE,
204 InstanceType::FIXED_ARRAY_TYPE, 202 InstanceType::FIXED_ARRAY_TYPE,
205 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 203 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
206 ] 204 ]
207 handlers: [ 205 handlers: [
208 ] 206 ]
(...skipping 21 matching lines...) Expand all
230 /* 65 S> */ B(ForInDone), R(5), R(4), 228 /* 65 S> */ B(ForInDone), R(5), R(4),
231 B(JumpIfTrue), U8(41), 229 B(JumpIfTrue), U8(41),
232 B(ForInNext), R(1), R(5), R(2), U8(7), 230 B(ForInNext), R(1), R(5), R(2), U8(7),
233 B(JumpIfUndefined), U8(28), 231 B(JumpIfUndefined), U8(28),
234 B(Star), R(6), 232 B(Star), R(6),
235 /* 64 E> */ B(Ldar), R(0), 233 /* 64 E> */ B(Ldar), R(0),
236 B(Star), R(7), 234 B(Star), R(7),
237 B(LdaZero), 235 B(LdaZero),
238 B(Star), R(8), 236 B(Star), R(8),
239 B(Ldar), R(6), 237 B(Ldar), R(6),
240 B(KeyedStoreICSloppy), R(7), R(8), U8(5), 238 B(StaKeyedPropertySloppy), R(7), R(8), U8(5),
241 /* 59 E> */ B(StackCheck), 239 /* 59 E> */ B(StackCheck),
242 /* 83 S> */ B(Ldar), R(0), 240 /* 83 S> */ B(Ldar), R(0),
243 B(Star), R(6), 241 B(Star), R(6),
244 /* 91 E> */ B(LdaSmi), U8(3), 242 /* 91 E> */ B(LdaSmi), U8(3),
245 B(KeyedLoadIC), R(6), U8(3), 243 B(LdaKeyedProperty), R(6), U8(3),
246 /* 98 S> */ B(Return), 244 /* 98 S> */ B(Return),
247 B(ForInStep), R(5), 245 B(ForInStep), R(5),
248 B(Star), R(5), 246 B(Star), R(5),
249 B(Jump), U8(-42), 247 B(Jump), U8(-42),
250 B(LdaUndefined), 248 B(LdaUndefined),
251 /* 98 S> */ B(Return), 249 /* 98 S> */ B(Return),
252 ] 250 ]
253 constant pool: [ 251 constant pool: [
254 InstanceType::FIXED_ARRAY_TYPE, 252 InstanceType::FIXED_ARRAY_TYPE,
255 InstanceType::FIXED_ARRAY_TYPE, 253 InstanceType::FIXED_ARRAY_TYPE,
256 ] 254 ]
257 handlers: [ 255 handlers: [
258 ] 256 ]
259 257
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698