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

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

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Re-cemment bytecode tests. Created 4 years 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 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 for (var p in null) {} 10 for (var p in null) {}
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 /* 75 E> */ B(Add), R(0), U8(2), 125 /* 75 E> */ B(Add), R(0), U8(2),
126 B(Mov), R(0), R(8), 126 B(Mov), R(0), R(8),
127 B(Star), R(0), 127 B(Star), R(0),
128 /* 72 E> */ B(ForInStep), R(7), 128 /* 72 E> */ B(ForInStep), R(7),
129 B(Star), R(7), 129 B(Star), R(7),
130 B(JumpLoop), U8(-31), U8(0), 130 B(JumpLoop), U8(-31), U8(0),
131 B(LdaUndefined), 131 B(LdaUndefined),
132 /* 80 S> */ B(Return), 132 /* 80 S> */ B(Return),
133 ] 133 ]
134 constant pool: [ 134 constant pool: [
135 FIXED_ARRAY_TYPE, 135 CONSTANT_ELEMENTS_PAIR_TYPE,
136 ] 136 ]
137 handlers: [ 137 handlers: [
138 ] 138 ]
139 139
140 --- 140 ---
141 snippet: " 141 snippet: "
142 var x = { 'a': 1, 'b': 2 }; 142 var x = { 'a': 1, 'b': 2 };
143 for (x['a'] in [10, 20, 30]) { 143 for (x['a'] in [10, 20, 30]) {
144 if (x['a'] == 10) continue; 144 if (x['a'] == 10) continue;
145 if (x['a'] == 20) break; 145 if (x['a'] == 20) break;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 B(JumpIfFalse), U8(4), 181 B(JumpIfFalse), U8(4),
182 /* 143 S> */ B(Jump), U8(9), 182 /* 143 S> */ B(Jump), U8(9),
183 B(ForInStep), R(5), 183 B(ForInStep), R(5),
184 B(Star), R(5), 184 B(Star), R(5),
185 B(JumpLoop), U8(-55), U8(0), 185 B(JumpLoop), U8(-55), U8(0),
186 B(LdaUndefined), 186 B(LdaUndefined),
187 /* 152 S> */ B(Return), 187 /* 152 S> */ B(Return),
188 ] 188 ]
189 constant pool: [ 189 constant pool: [
190 FIXED_ARRAY_TYPE, 190 FIXED_ARRAY_TYPE,
191 FIXED_ARRAY_TYPE, 191 CONSTANT_ELEMENTS_PAIR_TYPE,
192 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 192 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
193 ] 193 ]
194 handlers: [ 194 handlers: [
195 ] 195 ]
196 196
197 --- 197 ---
198 snippet: " 198 snippet: "
199 var x = [ 10, 11, 12 ] ; 199 var x = [ 10, 11, 12 ] ;
200 for (x[0] in [1,2,3]) { return x[3]; } 200 for (x[0] in [1,2,3]) { return x[3]; }
201 " 201 "
(...skipping 24 matching lines...) Expand all
226 /* 83 S> */ B(LdaSmi), U8(3), 226 /* 83 S> */ B(LdaSmi), U8(3),
227 /* 91 E> */ B(LdaKeyedProperty), R(0), U8(4), 227 /* 91 E> */ B(LdaKeyedProperty), R(0), U8(4),
228 /* 98 S> */ B(Return), 228 /* 98 S> */ B(Return),
229 B(ForInStep), R(5), 229 B(ForInStep), R(5),
230 B(Star), R(5), 230 B(Star), R(5),
231 B(JumpLoop), U8(-34), U8(0), 231 B(JumpLoop), U8(-34), U8(0),
232 B(LdaUndefined), 232 B(LdaUndefined),
233 /* 98 S> */ B(Return), 233 /* 98 S> */ B(Return),
234 ] 234 ]
235 constant pool: [ 235 constant pool: [
236 FIXED_ARRAY_TYPE, 236 CONSTANT_ELEMENTS_PAIR_TYPE,
237 FIXED_ARRAY_TYPE, 237 CONSTANT_ELEMENTS_PAIR_TYPE,
238 ] 238 ]
239 handlers: [ 239 handlers: [
240 ] 240 ]
241 241
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698