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

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

Issue 2272083003: Merge DeclarationScope::temps_ and Scope::ordered_variables_ into Scope::locals_ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixes + add cornercase test + still failing cornercase test Created 4 years, 3 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 ---
11 snippet: " 11 snippet: "
12 for (var p of [0, 1, 2]) {} 12 for (var p of [0, 1, 2]) {}
13 " 13 "
14 frame size: 15 14 frame size: 15
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 268 16 bytecode array length: 268
17 bytecodes: [ 17 bytecodes: [
18 /* 30 E> */ B(StackCheck), 18 /* 30 E> */ B(StackCheck),
19 B(LdaZero), 19 B(LdaZero),
20 B(Star), R(3), 20 B(Star), R(4),
21 B(Mov), R(context), R(11), 21 B(Mov), R(context), R(11),
22 B(Mov), R(context), R(12), 22 B(Mov), R(context), R(12),
23 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 23 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
24 B(Star), R(14), 24 B(Star), R(14),
25 B(LdaConstant), U8(1), 25 B(LdaConstant), U8(1),
26 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13), 26 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13),
27 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), 27 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1),
28 B(Star), R(1),
29 /* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14),
30 /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5),
31 B(Star), R(2), 28 B(Star), R(2),
32 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1), 29 /* 45 S> */ B(LdrNamedProperty), R(2), U8(2), U8(7), R(14),
30 /* 45 E> */ B(Call), R(14), R(2), U8(1), U8(5),
31 B(Star), R(3),
32 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1),
33 B(ToBooleanLogicalNot), 33 B(ToBooleanLogicalNot),
34 B(JumpIfFalse), U8(7), 34 B(JumpIfFalse), U8(7),
35 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (2), U8(1), 35 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1),
36 B(LdaNamedProperty), R(2), U8(3), U8(9), 36 B(LdaNamedProperty), R(3), U8(3), U8(9),
37 B(JumpIfToBooleanTrue), U8(23), 37 B(JumpIfToBooleanTrue), U8(23),
38 B(LdrNamedProperty), R(2), U8(4), U8(11), R(4), 38 B(LdrNamedProperty), R(3), U8(4), U8(11), R(5),
39 B(LdaSmi), U8(2), 39 B(LdaSmi), U8(2),
40 B(Star), R(3), 40 B(Star), R(4),
41 B(Mov), R(4), R(0), 41 B(Mov), R(5), R(0),
42 /* 34 E> */ B(StackCheck), 42 /* 34 E> */ B(StackCheck),
43 B(Mov), R(0), R(7), 43 B(Mov), R(0), R(1),
44 B(LdaZero), 44 B(LdaZero),
45 B(Star), R(3), 45 B(Star), R(4),
46 B(Jump), U8(-49), 46 B(Jump), U8(-49),
47 B(Jump), U8(34), 47 B(Jump), U8(34),
48 B(Star), R(13), 48 B(Star), R(13),
49 B(Ldar), R(closure), 49 B(Ldar), R(closure),
50 B(CreateCatchContext), R(13), U8(5), 50 B(CreateCatchContext), R(13), U8(5),
51 B(Star), R(12), 51 B(Star), R(12),
52 B(PushContext), R(8), 52 B(PushContext), R(8),
53 B(LdaSmi), U8(2), 53 B(LdaSmi), U8(2),
54 B(TestEqualStrict), R(3), 54 B(TestEqualStrict), R(4),
55 B(JumpIfFalse), U8(6), 55 B(JumpIfFalse), U8(6),
56 B(LdaSmi), U8(1), 56 B(LdaSmi), U8(1),
57 B(Star), R(3), 57 B(Star), R(4),
58 B(LdrContextSlot), R(context), U8(4), R(13), 58 B(LdrContextSlot), R(context), U8(4), R(13),
59 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), 59 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
60 B(PopContext), R(8), 60 B(PopContext), R(8),
61 B(LdaSmi), U8(-1), 61 B(LdaSmi), U8(-1),
62 B(Star), R(9), 62 B(Star), R(9),
63 B(Jump), U8(7), 63 B(Jump), U8(7),
64 B(Star), R(10), 64 B(Star), R(10),
65 B(LdaZero), 65 B(LdaZero),
66 B(Star), R(9), 66 B(Star), R(9),
67 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 67 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
68 B(Star), R(11), 68 B(Star), R(11),
69 B(LdaZero), 69 B(LdaZero),
70 B(TestEqualStrict), R(3), 70 B(TestEqualStrict), R(4),
71 B(JumpIfTrue), U8(116), 71 B(JumpIfTrue), U8(116),
72 B(LdaUndefined), 72 B(LdaUndefined),
73 B(TestEqualStrict), R(1), 73 B(TestEqualStrict), R(2),
74 B(JumpIfTrue), U8(111), 74 B(JumpIfTrue), U8(111),
75 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5), 75 B(LdrNamedProperty), R(2), U8(6), U8(13), R(6),
76 B(LdaNull), 76 B(LdaNull),
77 B(TestEqual), R(5), 77 B(TestEqual), R(6),
78 B(JumpIfFalse), U8(4), 78 B(JumpIfFalse), U8(4),
79 B(Jump), U8(99), 79 B(Jump), U8(99),
80 B(LdaSmi), U8(1), 80 B(LdaSmi), U8(1),
81 B(TestEqualStrict), R(3), 81 B(TestEqualStrict), R(4),
82 B(JumpIfFalse), U8(68), 82 B(JumpIfFalse), U8(68),
83 B(Ldar), R(5), 83 B(Ldar), R(6),
84 B(TypeOf), 84 B(TypeOf),
85 B(Star), R(12), 85 B(Star), R(12),
86 B(LdaConstant), U8(7), 86 B(LdaConstant), U8(7),
87 B(TestEqualStrict), R(12), 87 B(TestEqualStrict), R(12),
88 B(JumpIfFalse), U8(4), 88 B(JumpIfFalse), U8(4),
89 B(Jump), U8(18), 89 B(Jump), U8(18),
90 B(Wide), B(LdaSmi), U16(129), 90 B(Wide), B(LdaSmi), U16(129),
91 B(Star), R(12), 91 B(Star), R(12),
92 B(LdaConstant), U8(8), 92 B(LdaConstant), U8(8),
93 B(Star), R(13), 93 B(Star), R(13),
94 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), 94 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
95 B(Throw), 95 B(Throw),
96 B(Mov), R(context), R(12), 96 B(Mov), R(context), R(12),
97 B(Mov), R(5), R(13), 97 B(Mov), R(6), R(13),
98 B(Mov), R(1), R(14), 98 B(Mov), R(2), R(14),
99 B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2), 99 B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
100 B(Jump), U8(22), 100 B(Jump), U8(22),
101 B(Star), R(13), 101 B(Star), R(13),
102 B(Ldar), R(closure), 102 B(Ldar), R(closure),
103 B(CreateCatchContext), R(13), U8(5), 103 B(CreateCatchContext), R(13), U8(5),
104 B(Star), R(12), 104 B(Star), R(12),
105 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 105 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
106 B(Ldar), R(12), 106 B(Ldar), R(12),
107 B(PushContext), R(8), 107 B(PushContext), R(8),
108 B(PopContext), R(8), 108 B(PopContext), R(8),
109 B(Jump), U8(27), 109 B(Jump), U8(27),
110 B(Mov), R(5), R(12), 110 B(Mov), R(6), R(12),
111 B(Mov), R(1), R(13), 111 B(Mov), R(2), R(13),
112 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), 112 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
113 B(Star), R(6), 113 B(Star), R(7),
114 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1), 114 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(7), U8(1),
115 B(JumpIfToBooleanFalse), U8(4), 115 B(JumpIfToBooleanFalse), U8(4),
116 B(Jump), U8(7), 116 B(Jump), U8(7),
117 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (6), U8(1), 117 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (7), U8(1),
118 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 1), U8(1), 118 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 1), U8(1),
119 B(LdaZero), 119 B(LdaZero),
120 B(TestEqualStrict), R(9), 120 B(TestEqualStrict), R(9),
121 B(JumpIfTrue), U8(4), 121 B(JumpIfTrue), U8(4),
122 B(Jump), U8(5), 122 B(Jump), U8(5),
123 B(Ldar), R(10), 123 B(Ldar), R(10),
124 B(ReThrow), 124 B(ReThrow),
125 B(LdaUndefined), 125 B(LdaUndefined),
126 /* 62 S> */ B(Return), 126 /* 62 S> */ B(Return),
127 ] 127 ]
(...skipping 18 matching lines...) Expand all
146 snippet: " 146 snippet: "
147 var x = 'potatoes'; 147 var x = 'potatoes';
148 for (var p of x) { return p; } 148 for (var p of x) { return p; }
149 " 149 "
150 frame size: 16 150 frame size: 16
151 parameter count: 1 151 parameter count: 1
152 bytecode array length: 279 152 bytecode array length: 279
153 bytecodes: [ 153 bytecodes: [
154 /* 30 E> */ B(StackCheck), 154 /* 30 E> */ B(StackCheck),
155 /* 42 S> */ B(LdaConstant), U8(0), 155 /* 42 S> */ B(LdaConstant), U8(0),
156 B(Star), R(7), 156 B(Star), R(0),
157 B(LdaZero), 157 B(LdaZero),
158 B(Star), R(3), 158 B(Star), R(5),
159 B(Mov), R(context), R(12), 159 B(Mov), R(context), R(12),
160 B(Mov), R(context), R(13), 160 B(Mov), R(context), R(13),
161 /* 68 S> */ B(LdaConstant), U8(1), 161 /* 68 S> */ B(LdaConstant), U8(1),
162 /* 68 E> */ B(LdrKeyedProperty), R(7), U8(3), R(14), 162 /* 68 E> */ B(LdrKeyedProperty), R(0), U8(3), R(14),
163 /* 68 E> */ B(Call), R(14), R(7), U8(1), U8(1), 163 /* 68 E> */ B(Call), R(14), R(0), U8(1), U8(1),
164 B(Star), R(1), 164 B(Star), R(3),
165 /* 65 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(15), 165 /* 65 S> */ B(LdrNamedProperty), R(3), U8(2), U8(7), R(15),
166 /* 65 E> */ B(Call), R(15), R(1), U8(1), U8(5), 166 /* 65 E> */ B(Call), R(15), R(3), U8(1), U8(5),
167 B(Star), R(2), 167 B(Star), R(4),
168 /* 65 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1), 168 /* 65 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(4), U8(1),
169 B(ToBooleanLogicalNot), 169 B(ToBooleanLogicalNot),
170 B(JumpIfFalse), U8(7), 170 B(JumpIfFalse), U8(7),
171 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (2), U8(1), 171 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (4), U8(1),
172 B(LdaNamedProperty), R(2), U8(3), U8(9), 172 B(LdaNamedProperty), R(4), U8(3), U8(9),
173 B(JumpIfToBooleanTrue), U8(26), 173 B(JumpIfToBooleanTrue), U8(26),
174 B(LdrNamedProperty), R(2), U8(4), U8(11), R(4), 174 B(LdrNamedProperty), R(4), U8(4), U8(11), R(6),
175 B(LdaSmi), U8(2), 175 B(LdaSmi), U8(2),
176 B(Star), R(3), 176 B(Star), R(5),
177 B(Mov), R(4), R(0), 177 B(Mov), R(6), R(1),
178 /* 54 E> */ B(StackCheck), 178 /* 54 E> */ B(StackCheck),
179 B(Mov), R(0), R(8), 179 B(Mov), R(1), R(2),
180 /* 73 S> */ B(LdaZero), 180 /* 73 S> */ B(LdaZero),
181 B(Star), R(10), 181 B(Star), R(10),
182 B(Mov), R(0), R(11), 182 B(Mov), R(1), R(11),
183 B(Jump), U8(48), 183 B(Jump), U8(48),
184 B(Jump), U8(34), 184 B(Jump), U8(34),
185 B(Star), R(14), 185 B(Star), R(14),
186 B(Ldar), R(closure), 186 B(Ldar), R(closure),
187 B(CreateCatchContext), R(14), U8(5), 187 B(CreateCatchContext), R(14), U8(5),
188 B(Star), R(13), 188 B(Star), R(13),
189 B(PushContext), R(9), 189 B(PushContext), R(9),
190 B(LdaSmi), U8(2), 190 B(LdaSmi), U8(2),
191 B(TestEqualStrict), R(3), 191 B(TestEqualStrict), R(5),
192 B(JumpIfFalse), U8(6), 192 B(JumpIfFalse), U8(6),
193 B(LdaSmi), U8(1), 193 B(LdaSmi), U8(1),
194 B(Star), R(3), 194 B(Star), R(5),
195 B(LdrContextSlot), R(context), U8(4), R(14), 195 B(LdrContextSlot), R(context), U8(4), R(14),
196 B(CallRuntime), U16(Runtime::kReThrow), R(14), U8(1), 196 B(CallRuntime), U16(Runtime::kReThrow), R(14), U8(1),
197 B(PopContext), R(9), 197 B(PopContext), R(9),
198 B(LdaSmi), U8(-1), 198 B(LdaSmi), U8(-1),
199 B(Star), R(10), 199 B(Star), R(10),
200 B(Jump), U8(8), 200 B(Jump), U8(8),
201 B(Star), R(11), 201 B(Star), R(11),
202 B(LdaSmi), U8(1), 202 B(LdaSmi), U8(1),
203 B(Star), R(10), 203 B(Star), R(10),
204 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 204 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
205 B(Star), R(12), 205 B(Star), R(12),
206 B(LdaZero), 206 B(LdaZero),
207 B(TestEqualStrict), R(3), 207 B(TestEqualStrict), R(5),
208 B(JumpIfTrue), U8(116), 208 B(JumpIfTrue), U8(116),
209 B(LdaUndefined), 209 B(LdaUndefined),
210 B(TestEqualStrict), R(1), 210 B(TestEqualStrict), R(3),
211 B(JumpIfTrue), U8(111), 211 B(JumpIfTrue), U8(111),
212 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5), 212 B(LdrNamedProperty), R(3), U8(6), U8(13), R(7),
213 B(LdaNull), 213 B(LdaNull),
214 B(TestEqual), R(5), 214 B(TestEqual), R(7),
215 B(JumpIfFalse), U8(4), 215 B(JumpIfFalse), U8(4),
216 B(Jump), U8(99), 216 B(Jump), U8(99),
217 B(LdaSmi), U8(1), 217 B(LdaSmi), U8(1),
218 B(TestEqualStrict), R(3), 218 B(TestEqualStrict), R(5),
219 B(JumpIfFalse), U8(68), 219 B(JumpIfFalse), U8(68),
220 B(Ldar), R(5), 220 B(Ldar), R(7),
221 B(TypeOf), 221 B(TypeOf),
222 B(Star), R(13), 222 B(Star), R(13),
223 B(LdaConstant), U8(7), 223 B(LdaConstant), U8(7),
224 B(TestEqualStrict), R(13), 224 B(TestEqualStrict), R(13),
225 B(JumpIfFalse), U8(4), 225 B(JumpIfFalse), U8(4),
226 B(Jump), U8(18), 226 B(Jump), U8(18),
227 B(Wide), B(LdaSmi), U16(129), 227 B(Wide), B(LdaSmi), U16(129),
228 B(Star), R(13), 228 B(Star), R(13),
229 B(LdaConstant), U8(8), 229 B(LdaConstant), U8(8),
230 B(Star), R(14), 230 B(Star), R(14),
231 B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2), 231 B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
232 B(Throw), 232 B(Throw),
233 B(Mov), R(context), R(13), 233 B(Mov), R(context), R(13),
234 B(Mov), R(5), R(14), 234 B(Mov), R(7), R(14),
235 B(Mov), R(1), R(15), 235 B(Mov), R(3), R(15),
236 B(InvokeIntrinsic), U8(Runtime::k_Call), R(14), U8(2), 236 B(InvokeIntrinsic), U8(Runtime::k_Call), R(14), U8(2),
237 B(Jump), U8(22), 237 B(Jump), U8(22),
238 B(Star), R(14), 238 B(Star), R(14),
239 B(Ldar), R(closure), 239 B(Ldar), R(closure),
240 B(CreateCatchContext), R(14), U8(5), 240 B(CreateCatchContext), R(14), U8(5),
241 B(Star), R(13), 241 B(Star), R(13),
242 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 242 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
243 B(Ldar), R(13), 243 B(Ldar), R(13),
244 B(PushContext), R(9), 244 B(PushContext), R(9),
245 B(PopContext), R(9), 245 B(PopContext), R(9),
246 B(Jump), U8(27), 246 B(Jump), U8(27),
247 B(Mov), R(5), R(13), 247 B(Mov), R(7), R(13),
248 B(Mov), R(1), R(14), 248 B(Mov), R(3), R(14),
249 B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2), 249 B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
250 B(Star), R(6), 250 B(Star), R(8),
251 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1), 251 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(8), U8(1),
252 B(JumpIfToBooleanFalse), U8(4), 252 B(JumpIfToBooleanFalse), U8(4),
253 B(Jump), U8(7), 253 B(Jump), U8(7),
254 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (6), U8(1), 254 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (8), U8(1),
255 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 2), U8(1), 255 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 2), U8(1),
256 B(LdaZero), 256 B(LdaZero),
257 B(TestEqualStrict), R(10), 257 B(TestEqualStrict), R(10),
258 B(JumpIfTrue), U8(10), 258 B(JumpIfTrue), U8(10),
259 B(LdaSmi), U8(1), 259 B(LdaSmi), U8(1),
260 B(TestEqualStrict), R(10), 260 B(TestEqualStrict), R(10),
261 B(JumpIfTrue), U8(7), 261 B(JumpIfTrue), U8(7),
262 B(Jump), U8(8), 262 B(Jump), U8(8),
263 B(Ldar), R(11), 263 B(Ldar), R(11),
264 /* 85 S> */ B(Return), 264 /* 85 S> */ B(Return),
(...skipping 25 matching lines...) Expand all
290 if (x == 10) continue; 290 if (x == 10) continue;
291 if (x == 20) break; 291 if (x == 20) break;
292 } 292 }
293 " 293 "
294 frame size: 15 294 frame size: 15
295 parameter count: 1 295 parameter count: 1
296 bytecode array length: 284 296 bytecode array length: 284
297 bytecodes: [ 297 bytecodes: [
298 /* 30 E> */ B(StackCheck), 298 /* 30 E> */ B(StackCheck),
299 B(LdaZero), 299 B(LdaZero),
300 B(Star), R(3), 300 B(Star), R(4),
301 B(Mov), R(context), R(11), 301 B(Mov), R(context), R(11),
302 B(Mov), R(context), R(12), 302 B(Mov), R(context), R(12),
303 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 303 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
304 B(Star), R(14), 304 B(Star), R(14),
305 B(LdaConstant), U8(1), 305 B(LdaConstant), U8(1),
306 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13), 306 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13),
307 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), 307 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1),
308 B(Star), R(1),
309 /* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14),
310 /* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5),
311 B(Star), R(2), 308 B(Star), R(2),
312 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1), 309 /* 45 S> */ B(LdrNamedProperty), R(2), U8(2), U8(7), R(14),
310 /* 45 E> */ B(Call), R(14), R(2), U8(1), U8(5),
311 B(Star), R(3),
312 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1),
313 B(ToBooleanLogicalNot), 313 B(ToBooleanLogicalNot),
314 B(JumpIfFalse), U8(7), 314 B(JumpIfFalse), U8(7),
315 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (2), U8(1), 315 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1),
316 B(LdaNamedProperty), R(2), U8(3), U8(9), 316 B(LdaNamedProperty), R(3), U8(3), U8(9),
317 B(JumpIfToBooleanTrue), U8(39), 317 B(JumpIfToBooleanTrue), U8(39),
318 B(LdrNamedProperty), R(2), U8(4), U8(11), R(4), 318 B(LdrNamedProperty), R(3), U8(4), U8(11), R(5),
319 B(LdaSmi), U8(2), 319 B(LdaSmi), U8(2),
320 B(Star), R(3), 320 B(Star), R(4),
321 B(Mov), R(4), R(0), 321 B(Mov), R(5), R(0),
322 /* 34 E> */ B(StackCheck), 322 /* 34 E> */ B(StackCheck),
323 B(Mov), R(0), R(7), 323 B(Mov), R(0), R(1),
324 /* 66 S> */ B(LdaSmi), U8(10), 324 /* 66 S> */ B(LdaSmi), U8(10),
325 /* 72 E> */ B(TestEqual), R(7), 325 /* 72 E> */ B(TestEqual), R(1),
326 B(JumpIfFalse), U8(4), 326 B(JumpIfFalse), U8(4),
327 /* 79 S> */ B(Jump), U8(13), 327 /* 79 S> */ B(Jump), U8(13),
328 /* 91 S> */ B(LdaSmi), U8(20), 328 /* 91 S> */ B(LdaSmi), U8(20),
329 /* 97 E> */ B(TestEqual), R(7), 329 /* 97 E> */ B(TestEqual), R(1),
330 B(JumpIfFalse), U8(4), 330 B(JumpIfFalse), U8(4),
331 /* 104 S> */ B(Jump), U8(7), 331 /* 104 S> */ B(Jump), U8(7),
332 B(LdaZero), 332 B(LdaZero),
333 B(Star), R(3), 333 B(Star), R(4),
334 B(Jump), U8(-65), 334 B(Jump), U8(-65),
335 B(Jump), U8(34), 335 B(Jump), U8(34),
336 B(Star), R(13), 336 B(Star), R(13),
337 B(Ldar), R(closure), 337 B(Ldar), R(closure),
338 B(CreateCatchContext), R(13), U8(5), 338 B(CreateCatchContext), R(13), U8(5),
339 B(Star), R(12), 339 B(Star), R(12),
340 B(PushContext), R(8), 340 B(PushContext), R(8),
341 B(LdaSmi), U8(2), 341 B(LdaSmi), U8(2),
342 B(TestEqualStrict), R(3), 342 B(TestEqualStrict), R(4),
343 B(JumpIfFalse), U8(6), 343 B(JumpIfFalse), U8(6),
344 B(LdaSmi), U8(1), 344 B(LdaSmi), U8(1),
345 B(Star), R(3), 345 B(Star), R(4),
346 B(LdrContextSlot), R(context), U8(4), R(13), 346 B(LdrContextSlot), R(context), U8(4), R(13),
347 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), 347 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
348 B(PopContext), R(8), 348 B(PopContext), R(8),
349 B(LdaSmi), U8(-1), 349 B(LdaSmi), U8(-1),
350 B(Star), R(9), 350 B(Star), R(9),
351 B(Jump), U8(7), 351 B(Jump), U8(7),
352 B(Star), R(10), 352 B(Star), R(10),
353 B(LdaZero), 353 B(LdaZero),
354 B(Star), R(9), 354 B(Star), R(9),
355 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 355 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
356 B(Star), R(11), 356 B(Star), R(11),
357 B(LdaZero), 357 B(LdaZero),
358 B(TestEqualStrict), R(3), 358 B(TestEqualStrict), R(4),
359 B(JumpIfTrue), U8(116), 359 B(JumpIfTrue), U8(116),
360 B(LdaUndefined), 360 B(LdaUndefined),
361 B(TestEqualStrict), R(1), 361 B(TestEqualStrict), R(2),
362 B(JumpIfTrue), U8(111), 362 B(JumpIfTrue), U8(111),
363 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5), 363 B(LdrNamedProperty), R(2), U8(6), U8(13), R(6),
364 B(LdaNull), 364 B(LdaNull),
365 B(TestEqual), R(5), 365 B(TestEqual), R(6),
366 B(JumpIfFalse), U8(4), 366 B(JumpIfFalse), U8(4),
367 B(Jump), U8(99), 367 B(Jump), U8(99),
368 B(LdaSmi), U8(1), 368 B(LdaSmi), U8(1),
369 B(TestEqualStrict), R(3), 369 B(TestEqualStrict), R(4),
370 B(JumpIfFalse), U8(68), 370 B(JumpIfFalse), U8(68),
371 B(Ldar), R(5), 371 B(Ldar), R(6),
372 B(TypeOf), 372 B(TypeOf),
373 B(Star), R(12), 373 B(Star), R(12),
374 B(LdaConstant), U8(7), 374 B(LdaConstant), U8(7),
375 B(TestEqualStrict), R(12), 375 B(TestEqualStrict), R(12),
376 B(JumpIfFalse), U8(4), 376 B(JumpIfFalse), U8(4),
377 B(Jump), U8(18), 377 B(Jump), U8(18),
378 B(Wide), B(LdaSmi), U16(129), 378 B(Wide), B(LdaSmi), U16(129),
379 B(Star), R(12), 379 B(Star), R(12),
380 B(LdaConstant), U8(8), 380 B(LdaConstant), U8(8),
381 B(Star), R(13), 381 B(Star), R(13),
382 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), 382 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
383 B(Throw), 383 B(Throw),
384 B(Mov), R(context), R(12), 384 B(Mov), R(context), R(12),
385 B(Mov), R(5), R(13), 385 B(Mov), R(6), R(13),
386 B(Mov), R(1), R(14), 386 B(Mov), R(2), R(14),
387 B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2), 387 B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
388 B(Jump), U8(22), 388 B(Jump), U8(22),
389 B(Star), R(13), 389 B(Star), R(13),
390 B(Ldar), R(closure), 390 B(Ldar), R(closure),
391 B(CreateCatchContext), R(13), U8(5), 391 B(CreateCatchContext), R(13), U8(5),
392 B(Star), R(12), 392 B(Star), R(12),
393 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 393 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
394 B(Ldar), R(12), 394 B(Ldar), R(12),
395 B(PushContext), R(8), 395 B(PushContext), R(8),
396 B(PopContext), R(8), 396 B(PopContext), R(8),
397 B(Jump), U8(27), 397 B(Jump), U8(27),
398 B(Mov), R(5), R(12), 398 B(Mov), R(6), R(12),
399 B(Mov), R(1), R(13), 399 B(Mov), R(2), R(13),
400 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), 400 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
401 B(Star), R(6), 401 B(Star), R(7),
402 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1), 402 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(7), U8(1),
403 B(JumpIfToBooleanFalse), U8(4), 403 B(JumpIfToBooleanFalse), U8(4),
404 B(Jump), U8(7), 404 B(Jump), U8(7),
405 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (6), U8(1), 405 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (7), U8(1),
406 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 1), U8(1), 406 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 1), U8(1),
407 B(LdaZero), 407 B(LdaZero),
408 B(TestEqualStrict), R(9), 408 B(TestEqualStrict), R(9),
409 B(JumpIfTrue), U8(4), 409 B(JumpIfTrue), U8(4),
410 B(Jump), U8(5), 410 B(Jump), U8(5),
411 B(Ldar), R(10), 411 B(Ldar), R(10),
412 B(ReThrow), 412 B(ReThrow),
413 B(LdaUndefined), 413 B(LdaUndefined),
414 /* 113 S> */ B(Return), 414 /* 113 S> */ B(Return),
415 ] 415 ]
(...skipping 18 matching lines...) Expand all
434 snippet: " 434 snippet: "
435 var x = { 'a': 1, 'b': 2 }; 435 var x = { 'a': 1, 'b': 2 };
436 for (x['a'] of [1,2,3]) { return x['a']; } 436 for (x['a'] of [1,2,3]) { return x['a']; }
437 " 437 "
438 frame size: 14 438 frame size: 14
439 parameter count: 1 439 parameter count: 1
440 bytecode array length: 292 440 bytecode array length: 292
441 bytecodes: [ 441 bytecodes: [
442 /* 30 E> */ B(StackCheck), 442 /* 30 E> */ B(StackCheck),
443 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8), 443 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
444 B(Mov), R(8), R(6), 444 B(Mov), R(8), R(0),
445 B(LdaZero), 445 B(LdaZero),
446 B(Star), R(2), 446 B(Star), R(3),
447 B(Mov), R(context), R(10), 447 B(Mov), R(context), R(10),
448 B(Mov), R(context), R(11), 448 B(Mov), R(context), R(11),
449 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), 449 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
450 B(Star), R(13), 450 B(Star), R(13),
451 B(LdaConstant), U8(2), 451 B(LdaConstant), U8(2),
452 /* 77 E> */ B(LdrKeyedProperty), R(13), U8(3), R(12), 452 /* 77 E> */ B(LdrKeyedProperty), R(13), U8(3), R(12),
453 /* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1), 453 /* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1),
454 B(Star), R(0),
455 /* 74 S> */ B(LdrNamedProperty), R(0), U8(3), U8(7), R(13),
456 /* 74 E> */ B(Call), R(13), R(0), U8(1), U8(5),
457 B(Star), R(1), 454 B(Star), R(1),
458 /* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(1), U8(1), 455 /* 74 S> */ B(LdrNamedProperty), R(1), U8(3), U8(7), R(13),
456 /* 74 E> */ B(Call), R(13), R(1), U8(1), U8(5),
457 B(Star), R(2),
458 /* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1),
459 B(ToBooleanLogicalNot), 459 B(ToBooleanLogicalNot),
460 B(JumpIfFalse), U8(7), 460 B(JumpIfFalse), U8(7),
461 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (1), U8(1), 461 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (2), U8(1),
462 B(LdaNamedProperty), R(1), U8(4), U8(9), 462 B(LdaNamedProperty), R(2), U8(4), U8(9),
463 B(JumpIfToBooleanTrue), U8(29), 463 B(JumpIfToBooleanTrue), U8(29),
464 /* 67 E> */ B(LdrNamedProperty), R(1), U8(5), U8(11), R(3), 464 /* 67 E> */ B(LdrNamedProperty), R(2), U8(5), U8(11), R(4),
465 B(LdaSmi), U8(2), 465 B(LdaSmi), U8(2),
466 B(Star), R(2), 466 B(Star), R(3),
467 B(Ldar), R(3), 467 B(Ldar), R(4),
468 B(StaNamedPropertySloppy), R(6), U8(6), U8(13), 468 B(StaNamedPropertySloppy), R(0), U8(6), U8(13),
469 /* 62 E> */ B(StackCheck), 469 /* 62 E> */ B(StackCheck),
470 /* 88 S> */ B(Nop), 470 /* 88 S> */ B(Nop),
471 /* 96 E> */ B(LdrNamedProperty), R(6), U8(6), U8(15), R(9), 471 /* 96 E> */ B(LdrNamedProperty), R(0), U8(6), U8(15), R(9),
472 B(LdaZero), 472 B(LdaZero),
473 B(Star), R(8), 473 B(Star), R(8),
474 B(Jump), U8(48), 474 B(Jump), U8(48),
475 B(Jump), U8(34), 475 B(Jump), U8(34),
476 B(Star), R(12), 476 B(Star), R(12),
477 B(Ldar), R(closure), 477 B(Ldar), R(closure),
478 B(CreateCatchContext), R(12), U8(7), 478 B(CreateCatchContext), R(12), U8(7),
479 B(Star), R(11), 479 B(Star), R(11),
480 B(PushContext), R(7), 480 B(PushContext), R(7),
481 B(LdaSmi), U8(2), 481 B(LdaSmi), U8(2),
482 B(TestEqualStrict), R(2), 482 B(TestEqualStrict), R(3),
483 B(JumpIfFalse), U8(6), 483 B(JumpIfFalse), U8(6),
484 B(LdaSmi), U8(1), 484 B(LdaSmi), U8(1),
485 B(Star), R(2), 485 B(Star), R(3),
486 B(LdrContextSlot), R(context), U8(4), R(12), 486 B(LdrContextSlot), R(context), U8(4), R(12),
487 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), 487 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
488 B(PopContext), R(7), 488 B(PopContext), R(7),
489 B(LdaSmi), U8(-1), 489 B(LdaSmi), U8(-1),
490 B(Star), R(8), 490 B(Star), R(8),
491 B(Jump), U8(8), 491 B(Jump), U8(8),
492 B(Star), R(9), 492 B(Star), R(9),
493 B(LdaSmi), U8(1), 493 B(LdaSmi), U8(1),
494 B(Star), R(8), 494 B(Star), R(8),
495 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 495 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
496 B(Star), R(10), 496 B(Star), R(10),
497 B(LdaZero), 497 B(LdaZero),
498 B(TestEqualStrict), R(2), 498 B(TestEqualStrict), R(3),
499 B(JumpIfTrue), U8(116), 499 B(JumpIfTrue), U8(116),
500 B(LdaUndefined), 500 B(LdaUndefined),
501 B(TestEqualStrict), R(0), 501 B(TestEqualStrict), R(1),
502 B(JumpIfTrue), U8(111), 502 B(JumpIfTrue), U8(111),
503 B(LdrNamedProperty), R(0), U8(8), U8(17), R(4), 503 B(LdrNamedProperty), R(1), U8(8), U8(17), R(5),
504 B(LdaNull), 504 B(LdaNull),
505 B(TestEqual), R(4), 505 B(TestEqual), R(5),
506 B(JumpIfFalse), U8(4), 506 B(JumpIfFalse), U8(4),
507 B(Jump), U8(99), 507 B(Jump), U8(99),
508 B(LdaSmi), U8(1), 508 B(LdaSmi), U8(1),
509 B(TestEqualStrict), R(2), 509 B(TestEqualStrict), R(3),
510 B(JumpIfFalse), U8(68), 510 B(JumpIfFalse), U8(68),
511 B(Ldar), R(4), 511 B(Ldar), R(5),
512 B(TypeOf), 512 B(TypeOf),
513 B(Star), R(11), 513 B(Star), R(11),
514 B(LdaConstant), U8(9), 514 B(LdaConstant), U8(9),
515 B(TestEqualStrict), R(11), 515 B(TestEqualStrict), R(11),
516 B(JumpIfFalse), U8(4), 516 B(JumpIfFalse), U8(4),
517 B(Jump), U8(18), 517 B(Jump), U8(18),
518 B(Wide), B(LdaSmi), U16(129), 518 B(Wide), B(LdaSmi), U16(129),
519 B(Star), R(11), 519 B(Star), R(11),
520 B(LdaConstant), U8(10), 520 B(LdaConstant), U8(10),
521 B(Star), R(12), 521 B(Star), R(12),
522 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), 522 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
523 B(Throw), 523 B(Throw),
524 B(Mov), R(context), R(11), 524 B(Mov), R(context), R(11),
525 B(Mov), R(4), R(12), 525 B(Mov), R(5), R(12),
526 B(Mov), R(0), R(13), 526 B(Mov), R(1), R(13),
527 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), 527 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
528 B(Jump), U8(22), 528 B(Jump), U8(22),
529 B(Star), R(12), 529 B(Star), R(12),
530 B(Ldar), R(closure), 530 B(Ldar), R(closure),
531 B(CreateCatchContext), R(12), U8(7), 531 B(CreateCatchContext), R(12), U8(7),
532 B(Star), R(11), 532 B(Star), R(11),
533 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 533 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
534 B(Ldar), R(11), 534 B(Ldar), R(11),
535 B(PushContext), R(7), 535 B(PushContext), R(7),
536 B(PopContext), R(7), 536 B(PopContext), R(7),
537 B(Jump), U8(27), 537 B(Jump), U8(27),
538 B(Mov), R(4), R(11), 538 B(Mov), R(5), R(11),
539 B(Mov), R(0), R(12), 539 B(Mov), R(1), R(12),
540 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), 540 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
541 B(Star), R(5), 541 B(Star), R(6),
542 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(5), U8(1), 542 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1),
543 B(JumpIfToBooleanFalse), U8(4), 543 B(JumpIfToBooleanFalse), U8(4),
544 B(Jump), U8(7), 544 B(Jump), U8(7),
545 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (5), U8(1), 545 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (6), U8(1),
546 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 0), U8(1), 546 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 0), U8(1),
547 B(LdaZero), 547 B(LdaZero),
548 B(TestEqualStrict), R(8), 548 B(TestEqualStrict), R(8),
549 B(JumpIfTrue), U8(10), 549 B(JumpIfTrue), U8(10),
550 B(LdaSmi), U8(1), 550 B(LdaSmi), U8(1),
551 B(TestEqualStrict), R(8), 551 B(TestEqualStrict), R(8),
552 B(JumpIfTrue), U8(7), 552 B(JumpIfTrue), U8(7),
553 B(Jump), U8(8), 553 B(Jump), U8(8),
554 B(Ldar), R(9), 554 B(Ldar), R(9),
555 /* 105 S> */ B(Return), 555 /* 105 S> */ B(Return),
(...skipping 14 matching lines...) Expand all
570 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 570 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
571 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 571 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
572 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 572 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
573 ] 573 ]
574 handlers: [ 574 handlers: [
575 [15, 128, 134], 575 [15, 128, 134],
576 [18, 94, 96], 576 [18, 94, 96],
577 [207, 217, 219], 577 [207, 217, 219],
578 ] 578 ]
579 579
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698