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