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

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

Issue 2485383002: [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. (Closed)
Patch Set: Created 4 years, 1 month 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
146 } 146 }
147 " 147 "
148 frame size: 7 148 frame size: 7
149 parameter count: 1 149 parameter count: 1
150 bytecode array length: 83 150 bytecode array length: 85
151 bytecodes: [ 151 bytecodes: [
152 /* 30 E> */ B(StackCheck), 152 /* 30 E> */ B(StackCheck),
153 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), 153 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1),
154 B(Mov), R(1), R(0), 154 B(Mov), R(1), R(0),
155 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9), 155 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9),
156 B(JumpIfUndefined), U8(68), 156 B(JumpIfUndefined), U8(70),
157 B(JumpIfNull), U8(66), 157 B(JumpIfNull), U8(68),
158 B(ToObject), R(1), 158 B(ToObject), R(1),
159 B(ForInPrepare), R(1), R(2), 159 B(ForInPrepare), R(1), R(2),
160 B(LdaZero), 160 B(LdaZero),
161 B(Star), R(5), 161 B(Star), R(5),
162 /* 68 S> */ B(ForInContinue), R(5), R(4), 162 /* 68 S> */ B(ForInContinue), R(5), R(4),
163 B(JumpIfFalse), U8(53), 163 B(JumpIfFalse), U8(55),
164 B(ForInNext), R(1), R(5), R(2), U8(12), 164 B(ForInNext), R(1), R(5), R(2), U8(12),
165 B(JumpIfUndefined), U8(39), 165 B(JumpIfUndefined), U8(41),
166 B(Star), R(6), 166 B(Star), R(6),
167 /* 67 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(10), 167 /* 67 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(10),
168 /* 62 E> */ B(StackCheck), 168 /* 62 E> */ B(StackCheck),
169 /* 95 S> */ B(Nop), 169 /* 95 S> */ B(Nop),
170 /* 100 E> */ B(LdrNamedProperty), R(0), U8(2), U8(4), R(6), 170 /* 100 E> */ B(LdaNamedProperty), R(0), U8(2), U8(4),
171 B(Star), R(6),
171 B(LdaSmi), U8(10), 172 B(LdaSmi), U8(10),
172 /* 106 E> */ B(TestEqual), R(6), U8(6), 173 /* 106 E> */ B(TestEqual), R(6), U8(6),
173 B(JumpIfFalse), U8(4), 174 B(JumpIfFalse), U8(4),
174 /* 113 S> */ B(Jump), U8(17), 175 /* 113 S> */ B(Jump), U8(18),
175 /* 125 S> */ B(Nop), 176 /* 125 S> */ B(Nop),
176 /* 130 E> */ B(LdrNamedProperty), R(0), U8(2), U8(7), R(6), 177 /* 130 E> */ B(LdaNamedProperty), R(0), U8(2), U8(7),
178 B(Star), R(6),
177 B(LdaSmi), U8(20), 179 B(LdaSmi), U8(20),
178 /* 136 E> */ B(TestEqual), R(6), U8(9), 180 /* 136 E> */ B(TestEqual), R(6), U8(9),
179 B(JumpIfFalse), U8(4), 181 B(JumpIfFalse), U8(4),
180 /* 143 S> */ B(Jump), U8(9), 182 /* 143 S> */ B(Jump), U8(9),
181 B(ForInStep), R(5), 183 B(ForInStep), R(5),
182 B(Star), R(5), 184 B(Star), R(5),
183 B(JumpLoop), U8(-53), U8(0), 185 B(JumpLoop), U8(-55), U8(0),
184 B(LdaUndefined), 186 B(LdaUndefined),
185 /* 152 S> */ B(Return), 187 /* 152 S> */ B(Return),
186 ] 188 ]
187 constant pool: [ 189 constant pool: [
188 FIXED_ARRAY_TYPE, 190 FIXED_ARRAY_TYPE,
189 FIXED_ARRAY_TYPE, 191 FIXED_ARRAY_TYPE,
190 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 192 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
191 ] 193 ]
192 handlers: [ 194 handlers: [
193 ] 195 ]
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 B(LdaUndefined), 232 B(LdaUndefined),
231 /* 98 S> */ B(Return), 233 /* 98 S> */ B(Return),
232 ] 234 ]
233 constant pool: [ 235 constant pool: [
234 FIXED_ARRAY_TYPE, 236 FIXED_ARRAY_TYPE,
235 FIXED_ARRAY_TYPE, 237 FIXED_ARRAY_TYPE,
236 ] 238 ]
237 handlers: [ 239 handlers: [
238 ] 240 ]
239 241
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698