Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame^] | 1 | # |
| 2 | # Autogenerated by generate-bytecode-expectations. |
| 3 | # |
| 4 | |
| 5 | --- |
| 6 | pool type: string |
| 7 | execute: yes |
| 8 | wrap: no |
| 9 | test function name: f |
| 10 | |
| 11 | --- |
| 12 | snippet: " |
| 13 | var global = 1; |
| 14 | function f() { return global &= 1; } |
| 15 | f(); |
| 16 | " |
| 17 | frame size: 1 |
| 18 | parameter count: 1 |
| 19 | bytecode array length: 14 |
| 20 | bytecodes: [ |
| 21 | B(StackCheck), |
| 22 | B(LdaGlobal), U8(0), U8(1), |
| 23 | B(Star), R(0), |
| 24 | B(LdaSmi), U8(1), |
| 25 | B(BitwiseAnd), R(0), |
| 26 | B(StaGlobalSloppy), U8(0), U8(3), |
| 27 | B(Return), |
| 28 | ] |
| 29 | constant pool: [ |
| 30 | "global", |
| 31 | ] |
| 32 | handlers: [ |
| 33 | ] |
| 34 | |
| 35 | --- |
| 36 | snippet: " |
| 37 | unallocated = 1; |
| 38 | function f() { return unallocated += 1; } |
| 39 | f(); |
| 40 | " |
| 41 | frame size: 1 |
| 42 | parameter count: 1 |
| 43 | bytecode array length: 14 |
| 44 | bytecodes: [ |
| 45 | B(StackCheck), |
| 46 | B(LdaGlobal), U8(0), U8(1), |
| 47 | B(Star), R(0), |
| 48 | B(LdaSmi), U8(1), |
| 49 | B(Add), R(0), |
| 50 | B(StaGlobalSloppy), U8(0), U8(3), |
| 51 | B(Return), |
| 52 | ] |
| 53 | constant pool: [ |
| 54 | "unallocated", |
| 55 | ] |
| 56 | handlers: [ |
| 57 | ] |
| 58 | |