| 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; } | 13 function f() { return ++global; } |
| 14 f(); | 14 f(); |
| 15 " | 15 " |
| 16 frame size: 0 | 16 frame size: 0 |
| 17 parameter count: 1 | 17 parameter count: 1 |
| 18 bytecode array length: 9 | 18 bytecode array length: 9 |
| 19 bytecodes: [ | 19 bytecodes: [ |
| 20 /* 26 E> */ B(StackCheck), | 20 /* 26 E> */ B(StackCheck), |
| 21 /* 31 S> */ B(LdaGlobal), U8(1), | 21 /* 31 S> */ B(LdaGlobal), U8(2), |
| 22 B(Inc), U8(5), | 22 B(Inc), U8(6), |
| 23 /* 40 E> */ B(StaGlobalSloppy), U8(0), U8(3), | 23 /* 40 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
| 24 /* 48 S> */ B(Return), | 24 /* 48 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 var global = 1; | 34 var global = 1; |
| 35 function f() { return global--; } | 35 function f() { return global--; } |
| 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: 13 | 40 bytecode array length: 13 |
| 41 bytecodes: [ | 41 bytecodes: [ |
| 42 /* 26 E> */ B(StackCheck), | 42 /* 26 E> */ B(StackCheck), |
| 43 /* 31 S> */ B(LdaGlobal), U8(1), | 43 /* 31 S> */ B(LdaGlobal), U8(2), |
| 44 B(ToNumber), R(0), | 44 B(ToNumber), R(0), |
| 45 B(Dec), U8(5), | 45 B(Dec), U8(6), |
| 46 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(3), | 46 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
| 47 B(Ldar), R(0), | 47 B(Ldar), R(0), |
| 48 /* 48 S> */ B(Return), | 48 /* 48 S> */ B(Return), |
| 49 ] | 49 ] |
| 50 constant pool: [ | 50 constant pool: [ |
| 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], | 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], |
| 52 ] | 52 ] |
| 53 handlers: [ | 53 handlers: [ |
| 54 ] | 54 ] |
| 55 | 55 |
| 56 --- | 56 --- |
| 57 snippet: " | 57 snippet: " |
| 58 unallocated = 1; | 58 unallocated = 1; |
| 59 function f() { 'use strict'; return --unallocated; } | 59 function f() { 'use strict'; return --unallocated; } |
| 60 f(); | 60 f(); |
| 61 " | 61 " |
| 62 frame size: 0 | 62 frame size: 0 |
| 63 parameter count: 1 | 63 parameter count: 1 |
| 64 bytecode array length: 9 | 64 bytecode array length: 9 |
| 65 bytecodes: [ | 65 bytecodes: [ |
| 66 /* 27 E> */ B(StackCheck), | 66 /* 27 E> */ B(StackCheck), |
| 67 /* 46 S> */ B(LdaGlobal), U8(1), | 67 /* 46 S> */ B(LdaGlobal), U8(2), |
| 68 B(Dec), U8(5), | 68 B(Dec), U8(6), |
| 69 /* 55 E> */ B(StaGlobalStrict), U8(0), U8(3), | 69 /* 55 E> */ B(StaGlobalStrict), U8(0), U8(4), |
| 70 /* 68 S> */ B(Return), | 70 /* 68 S> */ B(Return), |
| 71 ] | 71 ] |
| 72 constant pool: [ | 72 constant pool: [ |
| 73 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], | 73 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], |
| 74 ] | 74 ] |
| 75 handlers: [ | 75 handlers: [ |
| 76 ] | 76 ] |
| 77 | 77 |
| 78 --- | 78 --- |
| 79 snippet: " | 79 snippet: " |
| 80 unallocated = 1; | 80 unallocated = 1; |
| 81 function f() { return unallocated++; } | 81 function f() { return unallocated++; } |
| 82 f(); | 82 f(); |
| 83 " | 83 " |
| 84 frame size: 1 | 84 frame size: 1 |
| 85 parameter count: 1 | 85 parameter count: 1 |
| 86 bytecode array length: 13 | 86 bytecode array length: 13 |
| 87 bytecodes: [ | 87 bytecodes: [ |
| 88 /* 27 E> */ B(StackCheck), | 88 /* 27 E> */ B(StackCheck), |
| 89 /* 32 S> */ B(LdaGlobal), U8(1), | 89 /* 32 S> */ B(LdaGlobal), U8(2), |
| 90 B(ToNumber), R(0), | 90 B(ToNumber), R(0), |
| 91 B(Inc), U8(5), | 91 B(Inc), U8(6), |
| 92 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(3), | 92 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
| 93 B(Ldar), R(0), | 93 B(Ldar), R(0), |
| 94 /* 54 S> */ B(Return), | 94 /* 54 S> */ B(Return), |
| 95 ] | 95 ] |
| 96 constant pool: [ | 96 constant pool: [ |
| 97 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], | 97 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], |
| 98 ] | 98 ] |
| 99 handlers: [ | 99 handlers: [ |
| 100 ] | 100 ] |
| 101 | 101 |
| OLD | NEW |