| 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: " |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 ] | 29 ] |
| 30 | 30 |
| 31 --- | 31 --- |
| 32 snippet: " | 32 snippet: " |
| 33 var global = 1; | 33 var global = 1; |
| 34 function f() { return global--; } | 34 function f() { return global--; } |
| 35 f(); | 35 f(); |
| 36 " | 36 " |
| 37 frame size: 1 | 37 frame size: 1 |
| 38 parameter count: 1 | 38 parameter count: 1 |
| 39 bytecode array length: 13 | 39 bytecode array length: 15 |
| 40 bytecodes: [ | 40 bytecodes: [ |
| 41 /* 26 E> */ B(StackCheck), | 41 /* 26 E> */ B(StackCheck), |
| 42 /* 31 S> */ B(LdaGlobal), U8(2), | 42 /* 31 S> */ B(LdaGlobal), U8(2), |
| 43 B(ToNumber), R(0), | 43 B(ToNumber), R(0), |
| 44 B(Ldar), R(0), |
| 44 B(Dec), U8(6), | 45 B(Dec), U8(6), |
| 45 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(4), | 46 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
| 46 B(Ldar), R(0), | 47 B(Ldar), R(0), |
| 47 /* 48 S> */ B(Return), | 48 /* 48 S> */ B(Return), |
| 48 ] | 49 ] |
| 49 constant pool: [ | 50 constant pool: [ |
| 50 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], | 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], |
| 51 ] | 52 ] |
| 52 handlers: [ | 53 handlers: [ |
| 53 ] | 54 ] |
| (...skipping 21 matching lines...) Expand all Loading... |
| 75 ] | 76 ] |
| 76 | 77 |
| 77 --- | 78 --- |
| 78 snippet: " | 79 snippet: " |
| 79 unallocated = 1; | 80 unallocated = 1; |
| 80 function f() { return unallocated++; } | 81 function f() { return unallocated++; } |
| 81 f(); | 82 f(); |
| 82 " | 83 " |
| 83 frame size: 1 | 84 frame size: 1 |
| 84 parameter count: 1 | 85 parameter count: 1 |
| 85 bytecode array length: 13 | 86 bytecode array length: 15 |
| 86 bytecodes: [ | 87 bytecodes: [ |
| 87 /* 27 E> */ B(StackCheck), | 88 /* 27 E> */ B(StackCheck), |
| 88 /* 32 S> */ B(LdaGlobal), U8(2), | 89 /* 32 S> */ B(LdaGlobal), U8(2), |
| 89 B(ToNumber), R(0), | 90 B(ToNumber), R(0), |
| 91 B(Ldar), R(0), |
| 90 B(Inc), U8(6), | 92 B(Inc), U8(6), |
| 91 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(4), | 93 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
| 92 B(Ldar), R(0), | 94 B(Ldar), R(0), |
| 93 /* 54 S> */ B(Return), | 95 /* 54 S> */ B(Return), |
| 94 ] | 96 ] |
| 95 constant pool: [ | 97 constant pool: [ |
| 96 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], | 98 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], |
| 97 ] | 99 ] |
| 98 handlers: [ | 100 handlers: [ |
| 99 ] | 101 ] |
| 100 | 102 |
| OLD | NEW |