| 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 a = 1; | 13 var a = 1; |
| 14 function f() { a = 2; } | 14 function f() { a = 2; } |
| 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: 8 |
| 20 bytecodes: [ | 20 bytecodes: [ |
| 21 B(StackCheck), | 21 B(StackCheck), |
| 22 B(LdaSmi8), U8(2), | 22 B(LdaSmi), U8(2), |
| 23 B(StaGlobalSloppy), U8(0), U8(1), | 23 B(StaGlobalSloppy), U8(0), U8(1), |
| 24 B(LdaUndefined), | 24 B(LdaUndefined), |
| 25 B(Return), | 25 B(Return), |
| 26 ] | 26 ] |
| 27 constant pool: [ | 27 constant pool: [ |
| 28 "a", | 28 "a", |
| 29 ] | 29 ] |
| 30 handlers: [ | 30 handlers: [ |
| 31 ] | 31 ] |
| 32 | 32 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 55 snippet: " | 55 snippet: " |
| 56 'use strict'; var a = 1; | 56 'use strict'; var a = 1; |
| 57 function f() { a = 2; } | 57 function f() { a = 2; } |
| 58 f(); | 58 f(); |
| 59 " | 59 " |
| 60 frame size: 0 | 60 frame size: 0 |
| 61 parameter count: 1 | 61 parameter count: 1 |
| 62 bytecode array length: 8 | 62 bytecode array length: 8 |
| 63 bytecodes: [ | 63 bytecodes: [ |
| 64 B(StackCheck), | 64 B(StackCheck), |
| 65 B(LdaSmi8), U8(2), | 65 B(LdaSmi), U8(2), |
| 66 B(StaGlobalStrict), U8(0), U8(1), | 66 B(StaGlobalStrict), U8(0), U8(1), |
| 67 B(LdaUndefined), | 67 B(LdaUndefined), |
| 68 B(Return), | 68 B(Return), |
| 69 ] | 69 ] |
| 70 constant pool: [ | 70 constant pool: [ |
| 71 "a", | 71 "a", |
| 72 ] | 72 ] |
| 73 handlers: [ | 73 handlers: [ |
| 74 ] | 74 ] |
| 75 | 75 |
| 76 --- | 76 --- |
| 77 snippet: " | 77 snippet: " |
| 78 a = 1; | 78 a = 1; |
| 79 function f() { a = 2; } | 79 function f() { a = 2; } |
| 80 f(); | 80 f(); |
| 81 " | 81 " |
| 82 frame size: 0 | 82 frame size: 0 |
| 83 parameter count: 1 | 83 parameter count: 1 |
| 84 bytecode array length: 8 | 84 bytecode array length: 8 |
| 85 bytecodes: [ | 85 bytecodes: [ |
| 86 B(StackCheck), | 86 B(StackCheck), |
| 87 B(LdaSmi8), U8(2), | 87 B(LdaSmi), U8(2), |
| 88 B(StaGlobalSloppy), U8(0), U8(1), | 88 B(StaGlobalSloppy), U8(0), U8(1), |
| 89 B(LdaUndefined), | 89 B(LdaUndefined), |
| 90 B(Return), | 90 B(Return), |
| 91 ] | 91 ] |
| 92 constant pool: [ | 92 constant pool: [ |
| 93 "a", | 93 "a", |
| 94 ] | 94 ] |
| 95 handlers: [ | 95 handlers: [ |
| 96 ] | 96 ] |
| 97 | 97 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 b.name; | 226 b.name; |
| 227 b.name; | 227 b.name; |
| 228 b.name; | 228 b.name; |
| 229 b.name; | 229 b.name; |
| 230 a = 2; | 230 a = 2; |
| 231 } | 231 } |
| 232 f({name: 1}); | 232 f({name: 1}); |
| 233 " | 233 " |
| 234 frame size: 1 | 234 frame size: 1 |
| 235 parameter count: 2 | 235 parameter count: 2 |
| 236 bytecode array length: 1034 | 236 bytecode array length: 1035 |
| 237 bytecodes: [ | 237 bytecodes: [ |
| 238 B(StackCheck), | 238 B(StackCheck), |
| 239 B(Ldar), R(arg0), | 239 B(Ldar), R(arg0), |
| 240 B(Star), R(0), | 240 B(Star), R(0), |
| 241 B(LoadIC), R(0), U8(0), U8(1), | 241 B(LoadIC), R(0), U8(0), U8(1), |
| 242 B(Ldar), R(arg0), | 242 B(Ldar), R(arg0), |
| 243 B(Star), R(0), | 243 B(Star), R(0), |
| 244 B(LoadIC), R(0), U8(0), U8(3), | 244 B(LoadIC), R(0), U8(0), U8(3), |
| 245 B(Ldar), R(arg0), | 245 B(Ldar), R(arg0), |
| 246 B(Star), R(0), | 246 B(Star), R(0), |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 B(LoadIC), R(0), U8(0), U8(249), | 613 B(LoadIC), R(0), U8(0), U8(249), |
| 614 B(Ldar), R(arg0), | 614 B(Ldar), R(arg0), |
| 615 B(Star), R(0), | 615 B(Star), R(0), |
| 616 B(LoadIC), R(0), U8(0), U8(251), | 616 B(LoadIC), R(0), U8(0), U8(251), |
| 617 B(Ldar), R(arg0), | 617 B(Ldar), R(arg0), |
| 618 B(Star), R(0), | 618 B(Star), R(0), |
| 619 B(LoadIC), R(0), U8(0), U8(253), | 619 B(LoadIC), R(0), U8(0), U8(253), |
| 620 B(Ldar), R(arg0), | 620 B(Ldar), R(arg0), |
| 621 B(Star), R(0), | 621 B(Star), R(0), |
| 622 B(LoadIC), R(0), U8(0), U8(255), | 622 B(LoadIC), R(0), U8(0), U8(255), |
| 623 B(LdaSmi8), U8(2), | 623 B(LdaSmi), U8(2), |
| 624 B(StaGlobalSloppyWide), U16(1), U16(257), | 624 B(Wide), B(StaGlobalSloppy), U16(1), U16(257), |
| 625 B(LdaUndefined), | 625 B(LdaUndefined), |
| 626 B(Return), | 626 B(Return), |
| 627 ] | 627 ] |
| 628 constant pool: [ | 628 constant pool: [ |
| 629 "name", | 629 "name", |
| 630 "a", | 630 "a", |
| 631 ] | 631 ] |
| 632 handlers: [ | 632 handlers: [ |
| 633 ] | 633 ] |
| 634 | 634 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 b.name; | 764 b.name; |
| 765 b.name; | 765 b.name; |
| 766 b.name; | 766 b.name; |
| 767 b.name; | 767 b.name; |
| 768 a = 2; | 768 a = 2; |
| 769 } | 769 } |
| 770 f({name: 1}); | 770 f({name: 1}); |
| 771 " | 771 " |
| 772 frame size: 1 | 772 frame size: 1 |
| 773 parameter count: 2 | 773 parameter count: 2 |
| 774 bytecode array length: 1034 | 774 bytecode array length: 1035 |
| 775 bytecodes: [ | 775 bytecodes: [ |
| 776 B(StackCheck), | 776 B(StackCheck), |
| 777 B(Ldar), R(arg0), | 777 B(Ldar), R(arg0), |
| 778 B(Star), R(0), | 778 B(Star), R(0), |
| 779 B(LoadIC), R(0), U8(0), U8(1), | 779 B(LoadIC), R(0), U8(0), U8(1), |
| 780 B(Ldar), R(arg0), | 780 B(Ldar), R(arg0), |
| 781 B(Star), R(0), | 781 B(Star), R(0), |
| 782 B(LoadIC), R(0), U8(0), U8(3), | 782 B(LoadIC), R(0), U8(0), U8(3), |
| 783 B(Ldar), R(arg0), | 783 B(Ldar), R(arg0), |
| 784 B(Star), R(0), | 784 B(Star), R(0), |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 B(LoadIC), R(0), U8(0), U8(249), | 1151 B(LoadIC), R(0), U8(0), U8(249), |
| 1152 B(Ldar), R(arg0), | 1152 B(Ldar), R(arg0), |
| 1153 B(Star), R(0), | 1153 B(Star), R(0), |
| 1154 B(LoadIC), R(0), U8(0), U8(251), | 1154 B(LoadIC), R(0), U8(0), U8(251), |
| 1155 B(Ldar), R(arg0), | 1155 B(Ldar), R(arg0), |
| 1156 B(Star), R(0), | 1156 B(Star), R(0), |
| 1157 B(LoadIC), R(0), U8(0), U8(253), | 1157 B(LoadIC), R(0), U8(0), U8(253), |
| 1158 B(Ldar), R(arg0), | 1158 B(Ldar), R(arg0), |
| 1159 B(Star), R(0), | 1159 B(Star), R(0), |
| 1160 B(LoadIC), R(0), U8(0), U8(255), | 1160 B(LoadIC), R(0), U8(0), U8(255), |
| 1161 B(LdaSmi8), U8(2), | 1161 B(LdaSmi), U8(2), |
| 1162 B(StaGlobalStrictWide), U16(1), U16(257), | 1162 B(Wide), B(StaGlobalStrict), U16(1), U16(257), |
| 1163 B(LdaUndefined), | 1163 B(LdaUndefined), |
| 1164 B(Return), | 1164 B(Return), |
| 1165 ] | 1165 ] |
| 1166 constant pool: [ | 1166 constant pool: [ |
| 1167 "name", | 1167 "name", |
| 1168 "a", | 1168 "a", |
| 1169 ] | 1169 ] |
| 1170 handlers: [ | 1170 handlers: [ |
| 1171 ] | 1171 ] |
| 1172 | 1172 |
| OLD | NEW |