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...) Expand 10 before | Expand all | Expand 10 after 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(17), |
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...) Expand all 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: 87 | 150 bytecode array length: 87 |
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(17), |
156 B(JumpIfUndefined), U8(72), | 156 B(JumpIfUndefined), U8(72), |
157 B(JumpIfNull), U8(70), | 157 B(JumpIfNull), U8(70), |
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(57), | 163 B(JumpIfFalse), U8(57), |
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(43), | 165 B(JumpIfUndefined), U8(43), |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 --- | 198 --- |
199 snippet: " | 199 snippet: " |
200 var x = [ 10, 11, 12 ] ; | 200 var x = [ 10, 11, 12 ] ; |
201 for (x[0] in [1,2,3]) { return x[3]; } | 201 for (x[0] in [1,2,3]) { return x[3]; } |
202 " | 202 " |
203 frame size: 9 | 203 frame size: 9 |
204 parameter count: 1 | 204 parameter count: 1 |
205 bytecode array length: 62 | 205 bytecode array length: 62 |
206 bytecodes: [ | 206 bytecodes: [ |
207 /* 30 E> */ B(StackCheck), | 207 /* 30 E> */ B(StackCheck), |
208 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(9), | 208 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(17), |
209 B(Star), R(0), | 209 B(Star), R(0), |
210 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(9), | 210 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(17), |
211 B(JumpIfUndefined), U8(49), | 211 B(JumpIfUndefined), U8(49), |
212 B(JumpIfNull), U8(47), | 212 B(JumpIfNull), U8(47), |
213 B(ToObject), R(1), | 213 B(ToObject), R(1), |
214 B(ForInPrepare), R(1), R(2), | 214 B(ForInPrepare), R(1), R(2), |
215 B(LdaZero), | 215 B(LdaZero), |
216 B(Star), R(5), | 216 B(Star), R(5), |
217 /* 65 S> */ B(ForInContinue), R(5), R(4), | 217 /* 65 S> */ B(ForInContinue), R(5), R(4), |
218 B(JumpIfFalse), U8(34), | 218 B(JumpIfFalse), U8(34), |
219 B(ForInNext), R(1), R(5), R(2), U8(10), | 219 B(ForInNext), R(1), R(5), R(2), U8(10), |
220 B(JumpIfUndefined), U8(20), | 220 B(JumpIfUndefined), U8(20), |
(...skipping 12 matching lines...) Expand all Loading... |
233 B(LdaUndefined), | 233 B(LdaUndefined), |
234 /* 98 S> */ B(Return), | 234 /* 98 S> */ B(Return), |
235 ] | 235 ] |
236 constant pool: [ | 236 constant pool: [ |
237 TUPLE2_TYPE, | 237 TUPLE2_TYPE, |
238 TUPLE2_TYPE, | 238 TUPLE2_TYPE, |
239 ] | 239 ] |
240 handlers: [ | 240 handlers: [ |
241 ] | 241 ] |
242 | 242 |
OLD | NEW |