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

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

Issue 2655853010: [TypeFeedbackVector] Combine the literals array and the feedback vector. (Closed)
Patch Set: gyp file Created 3 years, 10 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 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 var x = 0; 100 var x = 0;
101 for (var p in [1,2,3]) { x += p; } 101 for (var p in [1,2,3]) { x += p; }
102 " 102 "
103 frame size: 9 103 frame size: 9
104 parameter count: 1 104 parameter count: 1
105 bytecode array length: 56 105 bytecode array length: 56
106 bytecodes: [ 106 bytecodes: [
107 /* 30 E> */ B(StackCheck), 107 /* 30 E> */ B(StackCheck),
108 /* 42 S> */ B(LdaZero), 108 /* 42 S> */ B(LdaZero),
109 B(Star), R(0), 109 B(Star), R(0),
110 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 110 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(9),
111 B(JumpIfUndefined), U8(46), 111 B(JumpIfUndefined), U8(46),
112 B(JumpIfNull), U8(44), 112 B(JumpIfNull), U8(44),
113 B(ToObject), R(3), 113 B(ToObject), R(3),
114 B(ForInPrepare), R(3), R(4), 114 B(ForInPrepare), R(3), R(4),
115 B(LdaZero), 115 B(LdaZero),
116 B(Star), R(7), 116 B(Star), R(7),
117 /* 54 S> */ B(ForInContinue), R(7), R(6), 117 /* 54 S> */ B(ForInContinue), R(7), R(6),
118 B(JumpIfFalse), U8(31), 118 B(JumpIfFalse), U8(31),
119 B(ForInNext), R(3), R(7), R(4), U8(3), 119 B(ForInNext), R(3), R(7), R(4), U8(4),
120 B(JumpIfUndefined), U8(17), 120 B(JumpIfUndefined), U8(17),
121 B(Star), R(1), 121 B(Star), R(1),
122 /* 45 E> */ B(StackCheck), 122 /* 45 E> */ B(StackCheck),
123 B(Star), R(2), 123 B(Star), R(2),
124 /* 70 S> */ B(Ldar), R(1), 124 /* 70 S> */ B(Ldar), R(1),
125 /* 75 E> */ B(Add), R(0), U8(2), 125 /* 75 E> */ B(Add), R(0), U8(3),
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), I8(0), 130 B(JumpLoop), U8(31), I8(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 CONSTANT_ELEMENTS_PAIR_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;
146 } 146 }
147 " 147 "
148 frame size: 7 148 frame size: 7
149 parameter count: 1 149 parameter count: 1
150 bytecode array length: 85 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(2), 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(3), U8(9),
156 B(JumpIfUndefined), U8(70), 156 B(JumpIfUndefined), U8(70),
157 B(JumpIfNull), U8(68), 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(55), 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(14),
165 B(JumpIfUndefined), U8(41), 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(12),
168 /* 62 E> */ B(StackCheck), 168 /* 62 E> */ B(StackCheck),
169 /* 95 S> */ B(Nop), 169 /* 95 S> */ B(Nop),
170 /* 100 E> */ B(LdaNamedProperty), R(0), U8(2), U8(4), 170 /* 100 E> */ B(LdaNamedProperty), R(0), U8(2), U8(6),
171 B(Star), R(6), 171 B(Star), R(6),
172 B(LdaSmi), I8(10), 172 B(LdaSmi), I8(10),
173 /* 106 E> */ B(TestEqual), R(6), U8(6), 173 /* 106 E> */ B(TestEqual), R(6), U8(8),
174 B(JumpIfFalse), U8(4), 174 B(JumpIfFalse), U8(4),
175 /* 113 S> */ B(Jump), U8(18), 175 /* 113 S> */ B(Jump), U8(18),
176 /* 125 S> */ B(Nop), 176 /* 125 S> */ B(Nop),
177 /* 130 E> */ B(LdaNamedProperty), R(0), U8(2), U8(7), 177 /* 130 E> */ B(LdaNamedProperty), R(0), U8(2), U8(9),
178 B(Star), R(6), 178 B(Star), R(6),
179 B(LdaSmi), I8(20), 179 B(LdaSmi), I8(20),
180 /* 136 E> */ B(TestEqual), R(6), U8(9), 180 /* 136 E> */ B(TestEqual), R(6), U8(11),
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), I8(0), 185 B(JumpLoop), U8(55), I8(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 CONSTANT_ELEMENTS_PAIR_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 "
202 frame size: 9 202 frame size: 9
203 parameter count: 1 203 parameter count: 1
204 bytecode array length: 62 204 bytecode array length: 62
205 bytecodes: [ 205 bytecodes: [
206 /* 30 E> */ B(StackCheck), 206 /* 30 E> */ B(StackCheck),
207 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 207 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(9),
208 B(Star), R(0), 208 B(Star), R(0),
209 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9), 209 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(9),
210 B(JumpIfUndefined), U8(49), 210 B(JumpIfUndefined), U8(49),
211 B(JumpIfNull), U8(47), 211 B(JumpIfNull), U8(47),
212 B(ToObject), R(1), 212 B(ToObject), R(1),
213 B(ForInPrepare), R(1), R(2), 213 B(ForInPrepare), R(1), R(2),
214 B(LdaZero), 214 B(LdaZero),
215 B(Star), R(5), 215 B(Star), R(5),
216 /* 65 S> */ B(ForInContinue), R(5), R(4), 216 /* 65 S> */ B(ForInContinue), R(5), R(4),
217 B(JumpIfFalse), U8(34), 217 B(JumpIfFalse), U8(34),
218 B(ForInNext), R(1), R(5), R(2), U8(8), 218 B(ForInNext), R(1), R(5), R(2), U8(10),
219 B(JumpIfUndefined), U8(20), 219 B(JumpIfUndefined), U8(20),
220 B(Star), R(6), 220 B(Star), R(6),
221 B(LdaZero), 221 B(LdaZero),
222 B(Star), R(8), 222 B(Star), R(8),
223 B(Ldar), R(6), 223 B(Ldar), R(6),
224 /* 64 E> */ B(StaKeyedPropertySloppy), R(0), R(8), U8(6), 224 /* 64 E> */ B(StaKeyedPropertySloppy), R(0), R(8), U8(8),
225 /* 59 E> */ B(StackCheck), 225 /* 59 E> */ B(StackCheck),
226 /* 83 S> */ B(LdaSmi), I8(3), 226 /* 83 S> */ B(LdaSmi), I8(3),
227 /* 91 E> */ B(LdaKeyedProperty), R(0), U8(4), 227 /* 91 E> */ B(LdaKeyedProperty), R(0), U8(6),
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), I8(0), 231 B(JumpLoop), U8(34), I8(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 CONSTANT_ELEMENTS_PAIR_TYPE, 236 CONSTANT_ELEMENTS_PAIR_TYPE,
237 CONSTANT_ELEMENTS_PAIR_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