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