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