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