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