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 |
Ben Murdoch | 61f157c | 2016-09-16 13:49:30 +0100 | [diff] [blame] | 19 | bytecode array length: 12 |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 20 | bytecodes: [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 21 | /* 26 E> */ B(StackCheck), |
Ben Murdoch | 61f157c | 2016-09-16 13:49:30 +0100 | [diff] [blame] | 22 | /* 31 S> */ B(LdrGlobal), U8(1), R(0), |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 23 | B(LdaSmi), U8(1), |
| 24 | B(BitwiseAnd), R(0), |
| 25 | /* 45 E> */ B(StaGlobalSloppy), U8(0), U8(3), |
| 26 | /* 51 S> */ B(Return), |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 27 | ] |
| 28 | constant pool: [ |
| 29 | "global", |
| 30 | ] |
| 31 | handlers: [ |
| 32 | ] |
| 33 | |
| 34 | --- |
| 35 | snippet: " |
| 36 | unallocated = 1; |
| 37 | function f() { return unallocated += 1; } |
| 38 | f(); |
| 39 | " |
| 40 | frame size: 1 |
| 41 | parameter count: 1 |
Ben Murdoch | 61f157c | 2016-09-16 13:49:30 +0100 | [diff] [blame] | 42 | bytecode array length: 12 |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 43 | bytecodes: [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 44 | /* 27 E> */ B(StackCheck), |
Ben Murdoch | 61f157c | 2016-09-16 13:49:30 +0100 | [diff] [blame] | 45 | /* 32 S> */ B(LdrGlobal), U8(1), R(0), |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 46 | B(LdaSmi), U8(1), |
| 47 | B(Add), R(0), |
| 48 | /* 51 E> */ B(StaGlobalSloppy), U8(0), U8(3), |
| 49 | /* 57 S> */ B(Return), |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 50 | ] |
| 51 | constant pool: [ |
| 52 | "unallocated", |
| 53 | ] |
| 54 | handlers: [ |
| 55 | ] |
| 56 | |