OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 execute: yes | 6 execute: yes |
7 wrap: yes | 7 wrap: yes |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 handlers: [ | 57 handlers: [ |
58 ] | 58 ] |
59 | 59 |
60 --- | 60 --- |
61 snippet: " | 61 snippet: " |
62 var x = 'potatoes'; | 62 var x = 'potatoes'; |
63 for (var p in x) { return p; } | 63 for (var p in x) { return p; } |
64 " | 64 " |
65 frame size: 8 | 65 frame size: 8 |
66 parameter count: 1 | 66 parameter count: 1 |
67 bytecode array length: 44 | 67 bytecode array length: 45 |
68 bytecodes: [ | 68 bytecodes: [ |
69 /* 30 E> */ B(StackCheck), | 69 /* 30 E> */ B(StackCheck), |
70 /* 42 S> */ B(LdaConstant), U8(0), | 70 /* 42 S> */ B(LdaConstant), U8(0), |
71 B(Star), R(0), | 71 B(Star), R(0), |
72 /* 68 S> */ B(JumpIfUndefined), U8(37), | 72 /* 68 S> */ B(JumpIfUndefined), U8(38), |
73 B(JumpIfNull), U8(35), | 73 B(JumpIfNull), U8(36), |
74 B(ToObject), R(3), | 74 B(ToObject), R(3), |
75 B(ForInPrepare), R(3), R(4), | 75 B(ForInPrepare), R(3), R(4), |
76 B(LdaZero), | 76 B(LdaZero), |
77 B(Star), R(7), | 77 B(Star), R(7), |
78 /* 63 S> */ B(ForInContinue), R(7), R(6), | 78 /* 63 S> */ B(ForInContinue), R(7), R(6), |
79 B(JumpIfFalse), U8(22), | 79 B(JumpIfFalse), U8(23), |
80 B(ForInNext), R(3), R(7), R(4), U8(1), | 80 B(ForInNext), R(3), R(7), R(4), U8(1), |
81 B(JumpIfUndefined), U8(9), | 81 B(JumpIfUndefined), U8(9), |
82 B(Star), R(1), | 82 B(Star), R(1), |
83 /* 54 E> */ B(StackCheck), | 83 /* 54 E> */ B(StackCheck), |
84 B(Star), R(2), | 84 B(Star), R(2), |
85 /* 73 S> */ B(Nop), | 85 /* 73 S> */ B(Nop), |
86 /* 85 S> */ B(Return), | 86 /* 85 S> */ B(Return), |
87 B(ForInStep), R(7), | 87 B(ForInStep), R(7), |
88 B(Star), R(7), | 88 B(Star), R(7), |
89 B(Jump), U8(-23), | 89 B(JumpLoop), U8(-23), U8(0), |
90 B(LdaUndefined), | 90 B(LdaUndefined), |
91 /* 85 S> */ B(Return), | 91 /* 85 S> */ B(Return), |
92 ] | 92 ] |
93 constant pool: [ | 93 constant pool: [ |
94 ONE_BYTE_INTERNALIZED_STRING_TYPE ["potatoes"], | 94 ONE_BYTE_INTERNALIZED_STRING_TYPE ["potatoes"], |
95 ] | 95 ] |
96 handlers: [ | 96 handlers: [ |
97 ] | 97 ] |
98 | 98 |
99 --- | 99 --- |
100 snippet: " | 100 snippet: " |
101 var x = 0; | 101 var x = 0; |
102 for (var p in [1,2,3]) { x += p; } | 102 for (var p in [1,2,3]) { x += p; } |
103 " | 103 " |
104 frame size: 9 | 104 frame size: 9 |
105 parameter count: 1 | 105 parameter count: 1 |
106 bytecode array length: 55 | 106 bytecode array length: 56 |
107 bytecodes: [ | 107 bytecodes: [ |
108 /* 30 E> */ B(StackCheck), | 108 /* 30 E> */ B(StackCheck), |
109 /* 42 S> */ B(LdaZero), | 109 /* 42 S> */ B(LdaZero), |
110 B(Star), R(0), | 110 B(Star), R(0), |
111 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1), | 111 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1), |
112 B(JumpIfUndefined), U8(45), | 112 B(JumpIfUndefined), U8(46), |
113 B(JumpIfNull), U8(43), | 113 B(JumpIfNull), U8(44), |
114 B(ToObject), R(3), | 114 B(ToObject), R(3), |
115 B(ForInPrepare), R(3), R(4), | 115 B(ForInPrepare), R(3), R(4), |
116 B(LdaZero), | 116 B(LdaZero), |
117 B(Star), R(7), | 117 B(Star), R(7), |
118 /* 54 S> */ B(ForInContinue), R(7), R(6), | 118 /* 54 S> */ B(ForInContinue), R(7), R(6), |
119 B(JumpIfFalse), U8(30), | 119 B(JumpIfFalse), U8(31), |
120 B(ForInNext), R(3), R(7), R(4), U8(2), | 120 B(ForInNext), R(3), R(7), R(4), U8(2), |
121 B(JumpIfUndefined), U8(17), | 121 B(JumpIfUndefined), U8(17), |
122 B(Star), R(1), | 122 B(Star), R(1), |
123 /* 45 E> */ B(StackCheck), | 123 /* 45 E> */ B(StackCheck), |
124 B(Star), R(2), | 124 B(Star), R(2), |
125 /* 70 S> */ B(Ldar), R(1), | 125 /* 70 S> */ B(Ldar), R(1), |
126 /* 75 E> */ B(Add), R(0), U8(1), | 126 /* 75 E> */ B(Add), R(0), U8(1), |
127 B(Mov), R(0), R(8), | 127 B(Mov), R(0), R(8), |
128 B(Star), R(0), | 128 B(Star), R(0), |
129 /* 72 E> */ B(ForInStep), R(7), | 129 /* 72 E> */ B(ForInStep), R(7), |
130 B(Star), R(7), | 130 B(Star), R(7), |
131 B(Jump), U8(-31), | 131 B(JumpLoop), U8(-31), U8(0), |
132 B(LdaUndefined), | 132 B(LdaUndefined), |
133 /* 80 S> */ B(Return), | 133 /* 80 S> */ B(Return), |
134 ] | 134 ] |
135 constant pool: [ | 135 constant pool: [ |
136 FIXED_ARRAY_TYPE, | 136 FIXED_ARRAY_TYPE, |
137 ] | 137 ] |
138 handlers: [ | 138 handlers: [ |
139 ] | 139 ] |
140 | 140 |
141 --- | 141 --- |
142 snippet: " | 142 snippet: " |
143 var x = { 'a': 1, 'b': 2 }; | 143 var x = { 'a': 1, 'b': 2 }; |
144 for (x['a'] in [10, 20, 30]) { | 144 for (x['a'] in [10, 20, 30]) { |
145 if (x['a'] == 10) continue; | 145 if (x['a'] == 10) continue; |
146 if (x['a'] == 20) break; | 146 if (x['a'] == 20) break; |
147 } | 147 } |
148 " | 148 " |
149 frame size: 8 | 149 frame size: 8 |
150 parameter count: 1 | 150 parameter count: 1 |
151 bytecode array length: 82 | 151 bytecode array length: 83 |
152 bytecodes: [ | 152 bytecodes: [ |
153 /* 30 E> */ B(StackCheck), | 153 /* 30 E> */ B(StackCheck), |
154 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 154 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
155 B(Mov), R(1), R(0), | 155 B(Mov), R(1), R(0), |
156 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(1), | 156 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(1), |
157 B(JumpIfUndefined), U8(67), | 157 B(JumpIfUndefined), U8(68), |
158 B(JumpIfNull), U8(65), | 158 B(JumpIfNull), U8(66), |
159 B(ToObject), R(1), | 159 B(ToObject), R(1), |
160 B(ForInPrepare), R(1), R(2), | 160 B(ForInPrepare), R(1), R(2), |
161 B(LdaZero), | 161 B(LdaZero), |
162 B(Star), R(5), | 162 B(Star), R(5), |
163 /* 68 S> */ B(ForInContinue), R(5), R(4), | 163 /* 68 S> */ B(ForInContinue), R(5), R(4), |
164 B(JumpIfFalse), U8(52), | 164 B(JumpIfFalse), U8(53), |
165 B(ForInNext), R(1), R(5), R(2), U8(11), | 165 B(ForInNext), R(1), R(5), R(2), U8(11), |
166 B(JumpIfUndefined), U8(39), | 166 B(JumpIfUndefined), U8(39), |
167 B(Star), R(6), | 167 B(Star), R(6), |
168 /* 67 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(9), | 168 /* 67 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(9), |
169 /* 62 E> */ B(StackCheck), | 169 /* 62 E> */ B(StackCheck), |
170 /* 95 S> */ B(Nop), | 170 /* 95 S> */ B(Nop), |
171 /* 100 E> */ B(LdrNamedProperty), R(0), U8(2), U8(3), R(7), | 171 /* 100 E> */ B(LdrNamedProperty), R(0), U8(2), U8(3), R(7), |
172 B(LdaSmi), U8(10), | 172 B(LdaSmi), U8(10), |
173 /* 106 E> */ B(TestEqual), R(7), U8(5), | 173 /* 106 E> */ B(TestEqual), R(7), U8(5), |
174 B(JumpIfFalse), U8(4), | 174 B(JumpIfFalse), U8(4), |
175 /* 113 S> */ B(Jump), U8(17), | 175 /* 113 S> */ B(Jump), U8(17), |
176 /* 125 S> */ B(Nop), | 176 /* 125 S> */ B(Nop), |
177 /* 130 E> */ B(LdrNamedProperty), R(0), U8(2), U8(6), R(7), | 177 /* 130 E> */ B(LdrNamedProperty), R(0), U8(2), U8(6), R(7), |
178 B(LdaSmi), U8(20), | 178 B(LdaSmi), U8(20), |
179 /* 136 E> */ B(TestEqual), R(7), U8(8), | 179 /* 136 E> */ B(TestEqual), R(7), U8(8), |
180 B(JumpIfFalse), U8(4), | 180 B(JumpIfFalse), U8(4), |
181 /* 143 S> */ B(Jump), U8(8), | 181 /* 143 S> */ B(Jump), U8(9), |
182 B(ForInStep), R(5), | 182 B(ForInStep), R(5), |
183 B(Star), R(5), | 183 B(Star), R(5), |
184 B(Jump), U8(-53), | 184 B(JumpLoop), U8(-53), U8(0), |
185 B(LdaUndefined), | 185 B(LdaUndefined), |
186 /* 152 S> */ B(Return), | 186 /* 152 S> */ B(Return), |
187 ] | 187 ] |
188 constant pool: [ | 188 constant pool: [ |
189 FIXED_ARRAY_TYPE, | 189 FIXED_ARRAY_TYPE, |
190 FIXED_ARRAY_TYPE, | 190 FIXED_ARRAY_TYPE, |
191 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 191 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
192 ] | 192 ] |
193 handlers: [ | 193 handlers: [ |
194 ] | 194 ] |
195 | 195 |
196 --- | 196 --- |
197 snippet: " | 197 snippet: " |
198 var x = [ 10, 11, 12 ] ; | 198 var x = [ 10, 11, 12 ] ; |
199 for (x[0] in [1,2,3]) { return x[3]; } | 199 for (x[0] in [1,2,3]) { return x[3]; } |
200 " | 200 " |
201 frame size: 9 | 201 frame size: 9 |
202 parameter count: 1 | 202 parameter count: 1 |
203 bytecode array length: 61 | 203 bytecode array length: 62 |
204 bytecodes: [ | 204 bytecodes: [ |
205 /* 30 E> */ B(StackCheck), | 205 /* 30 E> */ B(StackCheck), |
206 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1), | 206 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1), |
207 B(Star), R(0), | 207 B(Star), R(0), |
208 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(1), | 208 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(1), |
209 B(JumpIfUndefined), U8(48), | 209 B(JumpIfUndefined), U8(49), |
210 B(JumpIfNull), U8(46), | 210 B(JumpIfNull), U8(47), |
211 B(ToObject), R(1), | 211 B(ToObject), R(1), |
212 B(ForInPrepare), R(1), R(2), | 212 B(ForInPrepare), R(1), R(2), |
213 B(LdaZero), | 213 B(LdaZero), |
214 B(Star), R(5), | 214 B(Star), R(5), |
215 /* 65 S> */ B(ForInContinue), R(5), R(4), | 215 /* 65 S> */ B(ForInContinue), R(5), R(4), |
216 B(JumpIfFalse), U8(33), | 216 B(JumpIfFalse), U8(34), |
217 B(ForInNext), R(1), R(5), R(2), U8(7), | 217 B(ForInNext), R(1), R(5), R(2), U8(7), |
218 B(JumpIfUndefined), U8(20), | 218 B(JumpIfUndefined), U8(20), |
219 B(Star), R(6), | 219 B(Star), R(6), |
220 B(LdaZero), | 220 B(LdaZero), |
221 B(Star), R(8), | 221 B(Star), R(8), |
222 B(Ldar), R(6), | 222 B(Ldar), R(6), |
223 /* 64 E> */ B(StaKeyedPropertySloppy), R(0), R(8), U8(5), | 223 /* 64 E> */ B(StaKeyedPropertySloppy), R(0), R(8), U8(5), |
224 /* 59 E> */ B(StackCheck), | 224 /* 59 E> */ B(StackCheck), |
225 /* 83 S> */ B(LdaSmi), U8(3), | 225 /* 83 S> */ B(LdaSmi), U8(3), |
226 /* 91 E> */ B(LdaKeyedProperty), R(0), U8(3), | 226 /* 91 E> */ B(LdaKeyedProperty), R(0), U8(3), |
227 /* 98 S> */ B(Return), | 227 /* 98 S> */ B(Return), |
228 B(ForInStep), R(5), | 228 B(ForInStep), R(5), |
229 B(Star), R(5), | 229 B(Star), R(5), |
230 B(Jump), U8(-34), | 230 B(JumpLoop), U8(-34), U8(0), |
231 B(LdaUndefined), | 231 B(LdaUndefined), |
232 /* 98 S> */ B(Return), | 232 /* 98 S> */ B(Return), |
233 ] | 233 ] |
234 constant pool: [ | 234 constant pool: [ |
235 FIXED_ARRAY_TYPE, | 235 FIXED_ARRAY_TYPE, |
236 FIXED_ARRAY_TYPE, | 236 FIXED_ARRAY_TYPE, |
237 ] | 237 ] |
238 handlers: [ | 238 handlers: [ |
239 ] | 239 ] |
240 | 240 |
OLD | NEW |