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