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