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