OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 var x = 0; | 102 var x = 0; |
103 for (var p in [1,2,3]) { x += p; } | 103 for (var p in [1,2,3]) { x += p; } |
104 " | 104 " |
105 frame size: 9 | 105 frame size: 9 |
106 parameter count: 1 | 106 parameter count: 1 |
107 bytecode array length: 55 | 107 bytecode array length: 55 |
108 bytecodes: [ | 108 bytecodes: [ |
109 /* 30 E> */ B(StackCheck), | 109 /* 30 E> */ B(StackCheck), |
110 /* 42 S> */ B(LdaZero), | 110 /* 42 S> */ B(LdaZero), |
111 B(Star), R(0), | 111 B(Star), R(0), |
112 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), | 112 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1), |
113 B(JumpIfUndefined), U8(45), | 113 B(JumpIfUndefined), U8(45), |
114 B(JumpIfNull), U8(43), | 114 B(JumpIfNull), U8(43), |
115 B(ToObject), R(3), | 115 B(ToObject), R(3), |
116 B(ForInPrepare), R(3), R(4), | 116 B(ForInPrepare), R(3), R(4), |
117 B(LdaZero), | 117 B(LdaZero), |
118 B(Star), R(7), | 118 B(Star), R(7), |
119 /* 54 S> */ B(ForInContinue), R(7), R(6), | 119 /* 54 S> */ B(ForInContinue), R(7), R(6), |
120 B(JumpIfFalse), U8(30), | 120 B(JumpIfFalse), U8(30), |
121 B(ForInNext), R(3), R(7), R(4), U8(2), | 121 B(ForInNext), R(3), R(7), R(4), U8(2), |
122 B(JumpIfUndefined), U8(17), | 122 B(JumpIfUndefined), U8(17), |
(...skipping 24 matching lines...) Expand all Loading... |
147 if (x['a'] == 20) break; | 147 if (x['a'] == 20) break; |
148 } | 148 } |
149 " | 149 " |
150 frame size: 8 | 150 frame size: 8 |
151 parameter count: 1 | 151 parameter count: 1 |
152 bytecode array length: 82 | 152 bytecode array length: 82 |
153 bytecodes: [ | 153 bytecodes: [ |
154 /* 30 E> */ B(StackCheck), | 154 /* 30 E> */ B(StackCheck), |
155 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 155 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
156 B(Mov), R(1), R(0), | 156 B(Mov), R(1), R(0), |
157 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), | 157 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(1), |
158 B(JumpIfUndefined), U8(67), | 158 B(JumpIfUndefined), U8(67), |
159 B(JumpIfNull), U8(65), | 159 B(JumpIfNull), U8(65), |
160 B(ToObject), R(1), | 160 B(ToObject), R(1), |
161 B(ForInPrepare), R(1), R(2), | 161 B(ForInPrepare), R(1), R(2), |
162 B(LdaZero), | 162 B(LdaZero), |
163 B(Star), R(5), | 163 B(Star), R(5), |
164 /* 68 S> */ B(ForInContinue), R(5), R(4), | 164 /* 68 S> */ B(ForInContinue), R(5), R(4), |
165 B(JumpIfFalse), U8(52), | 165 B(JumpIfFalse), U8(52), |
166 B(ForInNext), R(1), R(5), R(2), U8(11), | 166 B(ForInNext), R(1), R(5), R(2), U8(11), |
167 B(JumpIfUndefined), U8(39), | 167 B(JumpIfUndefined), U8(39), |
(...skipping 29 matching lines...) Expand all Loading... |
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: 61 | 204 bytecode array length: 61 |
205 bytecodes: [ | 205 bytecodes: [ |
206 /* 30 E> */ B(StackCheck), | 206 /* 30 E> */ B(StackCheck), |
207 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), | 207 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1), |
208 B(Star), R(0), | 208 B(Star), R(0), |
209 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), | 209 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(1), |
210 B(JumpIfUndefined), U8(48), | 210 B(JumpIfUndefined), U8(48), |
211 B(JumpIfNull), U8(46), | 211 B(JumpIfNull), U8(46), |
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(33), | 217 B(JumpIfFalse), U8(33), |
218 B(ForInNext), R(1), R(5), R(2), U8(7), | 218 B(ForInNext), R(1), R(5), R(2), U8(7), |
219 B(JumpIfUndefined), U8(20), | 219 B(JumpIfUndefined), U8(20), |
(...skipping 12 matching lines...) Expand all Loading... |
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 InstanceType::FIXED_ARRAY_TYPE, | 236 InstanceType::FIXED_ARRAY_TYPE, |
237 InstanceType::FIXED_ARRAY_TYPE, | 237 InstanceType::FIXED_ARRAY_TYPE, |
238 ] | 238 ] |
239 handlers: [ | 239 handlers: [ |
240 ] | 240 ] |
241 | 241 |
OLD | NEW |