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