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: string | 6 pool type: string |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
11 snippet: " | 11 snippet: " |
12 var x = 0, y = 1; | 12 var x = 0, y = 1; |
13 return (x = 2, y = 3, x = 4, y = 5); | 13 return (x = 2, y = 3, x = 4, y = 5); |
14 " | 14 " |
15 frame size: 2 | 15 frame size: 2 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 25 | 17 bytecode array length: 25 |
18 bytecodes: [ | 18 bytecodes: [ |
19 B(StackCheck), | 19 /* 30 E> */ B(StackCheck), |
20 B(LdaZero), | 20 /* 42 S> */ B(LdaZero), |
21 B(Star), R(0), | 21 /* 42 E> */ B(Star), R(0), |
22 B(LdaSmi), U8(1), | 22 /* 49 S> */ B(LdaSmi), U8(1), |
23 B(Star), R(1), | 23 /* 49 E> */ B(Star), R(1), |
24 B(LdaSmi), U8(2), | 24 /* 52 S> */ B(LdaSmi), U8(2), |
25 B(Star), R(0), | 25 /* 62 E> */ B(Star), R(0), |
26 B(LdaSmi), U8(3), | 26 B(LdaSmi), U8(3), |
27 B(Star), R(1), | 27 /* 69 E> */ B(Star), R(1), |
28 B(LdaSmi), U8(4), | 28 B(LdaSmi), U8(4), |
29 B(Star), R(0), | 29 /* 76 E> */ B(Star), R(0), |
30 B(LdaSmi), U8(5), | 30 B(LdaSmi), U8(5), |
31 B(Star), R(1), | 31 /* 83 E> */ B(Star), R(1), |
32 B(Return), | 32 /* 89 S> */ B(Return), |
33 ] | 33 ] |
34 constant pool: [ | 34 constant pool: [ |
35 ] | 35 ] |
36 handlers: [ | 36 handlers: [ |
37 ] | 37 ] |
38 | 38 |
39 --- | 39 --- |
40 snippet: " | 40 snippet: " |
41 var x = 55; | 41 var x = 55; |
42 var y = (x = 100); | 42 var y = (x = 100); |
43 return y; | 43 return y; |
44 " | 44 " |
45 frame size: 2 | 45 frame size: 2 |
46 parameter count: 1 | 46 parameter count: 1 |
47 bytecode array length: 12 | 47 bytecode array length: 12 |
48 bytecodes: [ | 48 bytecodes: [ |
49 B(StackCheck), | 49 /* 30 E> */ B(StackCheck), |
50 B(LdaSmi), U8(55), | 50 /* 42 S> */ B(LdaSmi), U8(55), |
51 B(Star), R(0), | 51 /* 42 E> */ B(Star), R(0), |
52 B(LdaSmi), U8(100), | 52 /* 57 S> */ B(LdaSmi), U8(100), |
53 B(Star), R(0), | 53 /* 57 E> */ B(Star), R(0), |
54 B(Star), R(1), | 54 /* 57 E> */ B(Star), R(1), |
55 B(Return), | 55 /* 75 S> */ B(Return), |
56 ] | 56 ] |
57 constant pool: [ | 57 constant pool: [ |
58 ] | 58 ] |
59 handlers: [ | 59 handlers: [ |
60 ] | 60 ] |
61 | 61 |
62 --- | 62 --- |
63 snippet: " | 63 snippet: " |
64 var x = 55; | 64 var x = 55; |
65 x = x + (x = 100) + (x = 101); | 65 x = x + (x = 100) + (x = 101); |
66 return x; | 66 return x; |
67 " | 67 " |
68 frame size: 3 | 68 frame size: 3 |
69 parameter count: 1 | 69 parameter count: 1 |
70 bytecode array length: 24 | 70 bytecode array length: 24 |
71 bytecodes: [ | 71 bytecodes: [ |
72 B(StackCheck), | 72 /* 30 E> */ B(StackCheck), |
73 B(LdaSmi), U8(55), | 73 /* 42 S> */ B(LdaSmi), U8(55), |
74 B(Star), R(0), | 74 /* 42 E> */ B(Star), R(0), |
75 B(Star), R(1), | 75 /* 46 S> */ B(Star), R(1), |
76 B(LdaSmi), U8(100), | 76 B(LdaSmi), U8(100), |
77 B(Star), R(0), | 77 /* 57 E> */ B(Star), R(0), |
78 B(Add), R(1), | 78 B(Add), R(1), |
79 B(Star), R(2), | 79 B(Star), R(2), |
80 B(LdaSmi), U8(101), | 80 B(LdaSmi), U8(101), |
81 B(Star), R(0), | 81 /* 69 E> */ B(Star), R(0), |
82 B(Add), R(2), | 82 B(Add), R(2), |
83 B(Star), R(0), | 83 /* 48 E> */ B(Star), R(0), |
84 B(Return), | 84 /* 87 S> */ B(Return), |
85 ] | 85 ] |
86 constant pool: [ | 86 constant pool: [ |
87 ] | 87 ] |
88 handlers: [ | 88 handlers: [ |
89 ] | 89 ] |
90 | 90 |
91 --- | 91 --- |
92 snippet: " | 92 snippet: " |
93 var x = 55; | 93 var x = 55; |
94 x = (x = 56) - x + (x = 57); | 94 x = (x = 56) - x + (x = 57); |
95 x++; | 95 x++; |
96 return x; | 96 return x; |
97 " | 97 " |
98 frame size: 3 | 98 frame size: 3 |
99 parameter count: 1 | 99 parameter count: 1 |
100 bytecode array length: 32 | 100 bytecode array length: 32 |
101 bytecodes: [ | 101 bytecodes: [ |
102 B(StackCheck), | 102 /* 30 E> */ B(StackCheck), |
103 B(LdaSmi), U8(55), | 103 /* 42 S> */ B(LdaSmi), U8(55), |
104 B(Star), R(0), | 104 /* 42 E> */ B(Star), R(0), |
105 B(LdaSmi), U8(56), | 105 /* 46 S> */ B(LdaSmi), U8(56), |
106 B(Star), R(0), | 106 /* 53 E> */ B(Star), R(0), |
107 B(Star), R(1), | 107 B(Star), R(1), |
108 B(Ldar), R(0), | 108 /* 61 E> */ B(Ldar), R(0), |
109 B(Sub), R(1), | 109 B(Sub), R(1), |
110 B(Star), R(2), | 110 B(Star), R(2), |
111 B(LdaSmi), U8(57), | 111 B(LdaSmi), U8(57), |
112 B(Star), R(0), | 112 /* 68 E> */ B(Star), R(0), |
113 B(Add), R(2), | 113 B(Add), R(2), |
114 B(Star), R(0), | 114 /* 48 E> */ B(Star), R(0), |
115 B(ToNumber), | 115 /* 75 S> */ B(ToNumber), |
116 B(Star), R(1), | 116 B(Star), R(1), |
117 B(Inc), | 117 B(Inc), |
118 B(Star), R(0), | 118 /* 76 E> */ B(Star), R(0), |
119 B(Return), | 119 /* 90 S> */ B(Return), |
120 ] | 120 ] |
121 constant pool: [ | 121 constant pool: [ |
122 ] | 122 ] |
123 handlers: [ | 123 handlers: [ |
124 ] | 124 ] |
125 | 125 |
126 --- | 126 --- |
127 snippet: " | 127 snippet: " |
128 var x = 55; | 128 var x = 55; |
129 var y = x + (x = 1) + (x = 2) + (x = 3); | 129 var y = x + (x = 1) + (x = 2) + (x = 3); |
130 return y; | 130 return y; |
131 " | 131 " |
132 frame size: 4 | 132 frame size: 4 |
133 parameter count: 1 | 133 parameter count: 1 |
134 bytecode array length: 32 | 134 bytecode array length: 32 |
135 bytecodes: [ | 135 bytecodes: [ |
136 B(StackCheck), | 136 /* 30 E> */ B(StackCheck), |
137 B(LdaSmi), U8(55), | 137 /* 42 S> */ B(LdaSmi), U8(55), |
138 B(Star), R(0), | 138 /* 42 E> */ B(Star), R(0), |
139 B(Star), R(2), | 139 /* 76 S> */ B(Star), R(2), |
140 B(LdaSmi), U8(1), | 140 B(LdaSmi), U8(1), |
141 B(Star), R(0), | 141 /* 61 E> */ B(Star), R(0), |
142 B(Add), R(2), | 142 B(Add), R(2), |
143 B(Star), R(3), | 143 B(Star), R(3), |
144 B(LdaSmi), U8(2), | 144 B(LdaSmi), U8(2), |
145 B(Star), R(0), | 145 /* 71 E> */ B(Star), R(0), |
146 B(Add), R(3), | 146 B(Add), R(3), |
147 B(Star), R(2), | 147 B(Star), R(2), |
148 B(LdaSmi), U8(3), | 148 B(LdaSmi), U8(3), |
149 B(Star), R(0), | 149 /* 81 E> */ B(Star), R(0), |
150 B(Add), R(2), | 150 B(Add), R(2), |
151 B(Star), R(1), | 151 /* 76 E> */ B(Star), R(1), |
152 B(Return), | 152 /* 97 S> */ B(Return), |
153 ] | 153 ] |
154 constant pool: [ | 154 constant pool: [ |
155 ] | 155 ] |
156 handlers: [ | 156 handlers: [ |
157 ] | 157 ] |
158 | 158 |
159 --- | 159 --- |
160 snippet: " | 160 snippet: " |
161 var x = 55; | 161 var x = 55; |
162 var x = x + (x = 1) + (x = 2) + (x = 3); | 162 var x = x + (x = 1) + (x = 2) + (x = 3); |
163 return x; | 163 return x; |
164 " | 164 " |
165 frame size: 3 | 165 frame size: 3 |
166 parameter count: 1 | 166 parameter count: 1 |
167 bytecode array length: 32 | 167 bytecode array length: 32 |
168 bytecodes: [ | 168 bytecodes: [ |
169 B(StackCheck), | 169 /* 30 E> */ B(StackCheck), |
170 B(LdaSmi), U8(55), | 170 /* 42 S> */ B(LdaSmi), U8(55), |
171 B(Star), R(0), | 171 /* 42 E> */ B(Star), R(0), |
172 B(Star), R(1), | 172 /* 76 S> */ B(Star), R(1), |
173 B(LdaSmi), U8(1), | 173 B(LdaSmi), U8(1), |
174 B(Star), R(0), | 174 /* 61 E> */ B(Star), R(0), |
175 B(Add), R(1), | 175 B(Add), R(1), |
176 B(Star), R(2), | 176 B(Star), R(2), |
177 B(LdaSmi), U8(2), | 177 B(LdaSmi), U8(2), |
178 B(Star), R(0), | 178 /* 71 E> */ B(Star), R(0), |
179 B(Add), R(2), | 179 B(Add), R(2), |
180 B(Star), R(1), | 180 B(Star), R(1), |
181 B(LdaSmi), U8(3), | 181 B(LdaSmi), U8(3), |
182 B(Star), R(0), | 182 /* 81 E> */ B(Star), R(0), |
183 B(Add), R(1), | 183 B(Add), R(1), |
184 B(Star), R(0), | 184 /* 76 E> */ B(Star), R(0), |
185 B(Return), | 185 /* 97 S> */ B(Return), |
186 ] | 186 ] |
187 constant pool: [ | 187 constant pool: [ |
188 ] | 188 ] |
189 handlers: [ | 189 handlers: [ |
190 ] | 190 ] |
191 | 191 |
192 --- | 192 --- |
193 snippet: " | 193 snippet: " |
194 var x = 10, y = 20; | 194 var x = 10, y = 20; |
195 return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y; | 195 return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y; |
196 " | 196 " |
197 frame size: 5 | 197 frame size: 5 |
198 parameter count: 1 | 198 parameter count: 1 |
199 bytecode array length: 70 | 199 bytecode array length: 70 |
200 bytecodes: [ | 200 bytecodes: [ |
201 B(StackCheck), | 201 /* 30 E> */ B(StackCheck), |
202 B(LdaSmi), U8(10), | 202 /* 42 S> */ B(LdaSmi), U8(10), |
203 B(Star), R(0), | 203 /* 42 E> */ B(Star), R(0), |
204 B(LdaSmi), U8(20), | 204 /* 50 S> */ B(LdaSmi), U8(20), |
205 B(Star), R(1), | 205 /* 50 E> */ B(Star), R(1), |
206 B(Ldar), R(0), | 206 /* 54 S> */ B(Ldar), R(0), |
207 B(Star), R(2), | 207 B(Star), R(2), |
208 B(LdaSmi), U8(1), | 208 B(LdaSmi), U8(1), |
209 B(Star), R(0), | 209 /* 68 E> */ B(Star), R(0), |
210 B(Add), R(2), | 210 B(Add), R(2), |
211 B(Star), R(3), | 211 B(Star), R(3), |
212 B(Ldar), R(0), | 212 /* 76 E> */ B(Ldar), R(0), |
213 B(Star), R(2), | 213 B(Star), R(2), |
214 B(LdaSmi), U8(1), | 214 B(LdaSmi), U8(1), |
215 B(Add), R(2), | 215 B(Add), R(2), |
216 B(Star), R(4), | 216 B(Star), R(4), |
217 B(LdaSmi), U8(2), | 217 B(LdaSmi), U8(2), |
218 B(Star), R(1), | 218 /* 88 E> */ B(Star), R(1), |
219 B(Mul), R(4), | 219 B(Mul), R(4), |
220 B(Add), R(3), | 220 B(Add), R(3), |
221 B(Star), R(2), | 221 B(Star), R(2), |
222 B(LdaSmi), U8(3), | 222 B(LdaSmi), U8(3), |
223 B(Star), R(1), | 223 /* 98 E> */ B(Star), R(1), |
224 B(Add), R(2), | 224 B(Add), R(2), |
225 B(Star), R(3), | 225 B(Star), R(3), |
226 B(LdaSmi), U8(4), | 226 B(LdaSmi), U8(4), |
227 B(Star), R(0), | 227 /* 108 E> */ B(Star), R(0), |
228 B(Add), R(3), | 228 B(Add), R(3), |
229 B(Star), R(2), | 229 B(Star), R(2), |
230 B(LdaSmi), U8(5), | 230 B(LdaSmi), U8(5), |
231 B(Star), R(1), | 231 /* 118 E> */ B(Star), R(1), |
232 B(Add), R(2), | 232 B(Add), R(2), |
233 B(Star), R(3), | 233 B(Star), R(3), |
234 B(Ldar), R(1), | 234 /* 125 E> */ B(Ldar), R(1), |
235 B(Add), R(3), | 235 B(Add), R(3), |
236 B(Return), | 236 /* 128 S> */ B(Return), |
237 ] | 237 ] |
238 constant pool: [ | 238 constant pool: [ |
239 ] | 239 ] |
240 handlers: [ | 240 handlers: [ |
241 ] | 241 ] |
242 | 242 |
243 --- | 243 --- |
244 snippet: " | 244 snippet: " |
245 var x = 17; | 245 var x = 17; |
246 return 1 + x + (x++) + (++x); | 246 return 1 + x + (x++) + (++x); |
247 " | 247 " |
248 frame size: 4 | 248 frame size: 4 |
249 parameter count: 1 | 249 parameter count: 1 |
250 bytecode array length: 37 | 250 bytecode array length: 37 |
251 bytecodes: [ | 251 bytecodes: [ |
252 B(StackCheck), | 252 /* 30 E> */ B(StackCheck), |
253 B(LdaSmi), U8(17), | 253 /* 42 S> */ B(LdaSmi), U8(17), |
254 B(Star), R(0), | 254 /* 42 E> */ B(Star), R(0), |
255 B(LdaSmi), U8(1), | 255 /* 46 S> */ B(LdaSmi), U8(1), |
256 B(Star), R(1), | 256 B(Star), R(1), |
257 B(Ldar), R(0), | 257 /* 57 E> */ B(Ldar), R(0), |
258 B(Add), R(1), | 258 B(Add), R(1), |
259 B(Star), R(2), | 259 B(Star), R(2), |
260 B(Ldar), R(0), | 260 B(Ldar), R(0), |
261 B(ToNumber), | 261 B(ToNumber), |
262 B(Star), R(1), | 262 B(Star), R(1), |
263 B(Inc), | 263 B(Inc), |
264 B(Star), R(0), | 264 /* 63 E> */ B(Star), R(0), |
265 B(Ldar), R(1), | 265 B(Ldar), R(1), |
266 B(Add), R(2), | 266 B(Add), R(2), |
267 B(Star), R(3), | 267 B(Star), R(3), |
268 B(Ldar), R(0), | 268 B(Ldar), R(0), |
269 B(Inc), | 269 B(Inc), |
270 B(Star), R(0), | 270 /* 72 E> */ B(Star), R(0), |
271 B(Add), R(3), | 271 B(Add), R(3), |
272 B(Return), | 272 /* 76 S> */ B(Return), |
273 ] | 273 ] |
274 constant pool: [ | 274 constant pool: [ |
275 ] | 275 ] |
276 handlers: [ | 276 handlers: [ |
277 ] | 277 ] |
278 | 278 |
OLD | NEW |