OLD | NEW |
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...) Loading... |
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(2), U8(9), | 110 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(33), |
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(4), | 119 B(ForInNext), R(3), R(7), R(4), U8(4), |
120 B(JumpIfUndefined), U8(17), | 120 B(JumpIfUndefined), U8(17), |
(...skipping 24 matching lines...) Loading... |
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(2), 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(3), U8(9), | 155 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(33), |
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(14), | 164 B(ForInNext), R(1), R(5), R(2), U8(14), |
165 B(JumpIfUndefined), U8(41), | 165 B(JumpIfUndefined), U8(41), |
(...skipping 31 matching lines...) 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: 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(2), U8(9), | 207 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(33), |
208 B(Star), R(0), | 208 B(Star), R(0), |
209 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(9), | 209 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(33), |
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(10), | 218 B(ForInNext), R(1), R(5), R(2), U8(10), |
219 B(JumpIfUndefined), U8(20), | 219 B(JumpIfUndefined), U8(20), |
(...skipping 12 matching lines...) 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 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 |
OLD | NEW |