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