| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 pool type: string | 6 pool type: string |
| 7 execute: yes | 7 execute: yes |
| 8 wrap: no | 8 wrap: no |
| 9 test function name: f | 9 test function name: f |
| 10 | 10 |
| 11 --- | 11 --- |
| 12 snippet: " | 12 snippet: " |
| 13 var global = 1; | 13 var global = 1; |
| 14 function f() { return global &= 1; } | 14 function f() { return global &= 1; } |
| 15 f(); | 15 f(); |
| 16 " | 16 " |
| 17 frame size: 1 | 17 frame size: 1 |
| 18 parameter count: 1 | 18 parameter count: 1 |
| 19 bytecode array length: 11 | 19 bytecode array length: 11 |
| 20 bytecodes: [ | 20 bytecodes: [ |
| 21 /* 26 E> */ B(StackCheck), | 21 /* 26 E> */ B(StackCheck), |
| 22 /* 31 S> */ B(LdrGlobal), U8(1), R(0), | 22 /* 31 S> */ B(LdrGlobal), U8(1), R(0), |
| 23 B(BitwiseAndSmi), U8(1), R(0), | 23 B(BitwiseAndSmi), U8(1), R(0), |
| 24 /* 45 E> */ B(StaGlobalSloppy), U8(0), U8(3), | 24 /* 45 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
| 25 /* 51 S> */ B(Return), | 25 /* 51 S> */ B(Return), |
| 26 ] | 26 ] |
| 27 constant pool: [ | 27 constant pool: [ |
| 28 "global", | 28 "global", |
| 29 ] | 29 ] |
| 30 handlers: [ | 30 handlers: [ |
| 31 ] | 31 ] |
| 32 | 32 |
| 33 --- | 33 --- |
| 34 snippet: " | 34 snippet: " |
| 35 unallocated = 1; | 35 unallocated = 1; |
| 36 function f() { return unallocated += 1; } | 36 function f() { return unallocated += 1; } |
| 37 f(); | 37 f(); |
| 38 " | 38 " |
| 39 frame size: 1 | 39 frame size: 1 |
| 40 parameter count: 1 | 40 parameter count: 1 |
| 41 bytecode array length: 11 | 41 bytecode array length: 11 |
| 42 bytecodes: [ | 42 bytecodes: [ |
| 43 /* 27 E> */ B(StackCheck), | 43 /* 27 E> */ B(StackCheck), |
| 44 /* 32 S> */ B(LdrGlobal), U8(1), R(0), | 44 /* 32 S> */ B(LdrGlobal), U8(1), R(0), |
| 45 B(AddSmi), U8(1), R(0), | 45 B(AddSmi), U8(1), R(0), |
| 46 /* 51 E> */ B(StaGlobalSloppy), U8(0), U8(3), | 46 /* 51 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
| 47 /* 57 S> */ B(Return), | 47 /* 57 S> */ B(Return), |
| 48 ] | 48 ] |
| 49 constant pool: [ | 49 constant pool: [ |
| 50 "unallocated", | 50 "unallocated", |
| 51 ] | 51 ] |
| 52 handlers: [ | 52 handlers: [ |
| 53 ] | 53 ] |
| 54 | 54 |
| OLD | NEW |