| 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: " |
| 11 var a = 1; | 11 var a = 1; |
| 12 function f() { a = 2; } | 12 function f() { a = 2; } |
| 13 f(); | 13 f(); |
| 14 " | 14 " |
| 15 frame size: 0 | 15 frame size: 0 |
| 16 parameter count: 1 | 16 parameter count: 1 |
| 17 bytecode array length: 8 | 17 bytecode array length: 8 |
| 18 bytecodes: [ | 18 bytecodes: [ |
| 19 /* 21 E> */ B(StackCheck), | 19 /* 21 E> */ B(StackCheck), |
| 20 /* 26 S> */ B(LdaSmi), U8(2), | 20 /* 26 S> */ B(LdaSmi), I8(2), |
| 21 /* 28 E> */ B(StaGlobalSloppy), U8(0), U8(2), | 21 /* 28 E> */ B(StaGlobalSloppy), U8(0), U8(2), |
| 22 B(LdaUndefined), | 22 B(LdaUndefined), |
| 23 /* 33 S> */ B(Return), | 23 /* 33 S> */ B(Return), |
| 24 ] | 24 ] |
| 25 constant pool: [ | 25 constant pool: [ |
| 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 27 ] | 27 ] |
| 28 handlers: [ | 28 handlers: [ |
| 29 ] | 29 ] |
| 30 | 30 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 53 snippet: " | 53 snippet: " |
| 54 'use strict'; var a = 1; | 54 'use strict'; var a = 1; |
| 55 function f() { a = 2; } | 55 function f() { a = 2; } |
| 56 f(); | 56 f(); |
| 57 " | 57 " |
| 58 frame size: 0 | 58 frame size: 0 |
| 59 parameter count: 1 | 59 parameter count: 1 |
| 60 bytecode array length: 8 | 60 bytecode array length: 8 |
| 61 bytecodes: [ | 61 bytecodes: [ |
| 62 /* 35 E> */ B(StackCheck), | 62 /* 35 E> */ B(StackCheck), |
| 63 /* 40 S> */ B(LdaSmi), U8(2), | 63 /* 40 S> */ B(LdaSmi), I8(2), |
| 64 /* 42 E> */ B(StaGlobalStrict), U8(0), U8(2), | 64 /* 42 E> */ B(StaGlobalStrict), U8(0), U8(2), |
| 65 B(LdaUndefined), | 65 B(LdaUndefined), |
| 66 /* 47 S> */ B(Return), | 66 /* 47 S> */ B(Return), |
| 67 ] | 67 ] |
| 68 constant pool: [ | 68 constant pool: [ |
| 69 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 69 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 70 ] | 70 ] |
| 71 handlers: [ | 71 handlers: [ |
| 72 ] | 72 ] |
| 73 | 73 |
| 74 --- | 74 --- |
| 75 snippet: " | 75 snippet: " |
| 76 a = 1; | 76 a = 1; |
| 77 function f() { a = 2; } | 77 function f() { a = 2; } |
| 78 f(); | 78 f(); |
| 79 " | 79 " |
| 80 frame size: 0 | 80 frame size: 0 |
| 81 parameter count: 1 | 81 parameter count: 1 |
| 82 bytecode array length: 8 | 82 bytecode array length: 8 |
| 83 bytecodes: [ | 83 bytecodes: [ |
| 84 /* 17 E> */ B(StackCheck), | 84 /* 17 E> */ B(StackCheck), |
| 85 /* 22 S> */ B(LdaSmi), U8(2), | 85 /* 22 S> */ B(LdaSmi), I8(2), |
| 86 /* 24 E> */ B(StaGlobalSloppy), U8(0), U8(2), | 86 /* 24 E> */ B(StaGlobalSloppy), U8(0), U8(2), |
| 87 B(LdaUndefined), | 87 B(LdaUndefined), |
| 88 /* 29 S> */ B(Return), | 88 /* 29 S> */ B(Return), |
| 89 ] | 89 ] |
| 90 constant pool: [ | 90 constant pool: [ |
| 91 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 91 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 92 ] | 92 ] |
| 93 handlers: [ | 93 handlers: [ |
| 94 ] | 94 ] |
| 95 | 95 |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 /* 1255 S> */ B(Nop), | 483 /* 1255 S> */ B(Nop), |
| 484 /* 1256 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), | 484 /* 1256 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), |
| 485 /* 1265 S> */ B(Nop), | 485 /* 1265 S> */ B(Nop), |
| 486 /* 1266 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), | 486 /* 1266 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), |
| 487 /* 1275 S> */ B(Nop), | 487 /* 1275 S> */ B(Nop), |
| 488 /* 1276 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), | 488 /* 1276 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), |
| 489 /* 1285 S> */ B(Nop), | 489 /* 1285 S> */ B(Nop), |
| 490 /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), | 490 /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), |
| 491 /* 1295 S> */ B(Nop), | 491 /* 1295 S> */ B(Nop), |
| 492 /* 1296 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), | 492 /* 1296 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), |
| 493 /* 1305 S> */ B(LdaSmi), U8(2), | 493 /* 1305 S> */ B(LdaSmi), I8(2), |
| 494 /* 1307 E> */ B(Wide), B(StaGlobalSloppy), U16(1), U16(258), | 494 /* 1307 E> */ B(Wide), B(StaGlobalSloppy), U16(1), U16(258), |
| 495 B(LdaUndefined), | 495 B(LdaUndefined), |
| 496 /* 1312 S> */ B(Return), | 496 /* 1312 S> */ B(Return), |
| 497 ] | 497 ] |
| 498 constant pool: [ | 498 constant pool: [ |
| 499 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 499 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
| 500 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 500 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 501 ] | 501 ] |
| 502 handlers: [ | 502 handlers: [ |
| 503 ] | 503 ] |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 /* 1271 S> */ B(Nop), | 893 /* 1271 S> */ B(Nop), |
| 894 /* 1272 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), | 894 /* 1272 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), |
| 895 /* 1281 S> */ B(Nop), | 895 /* 1281 S> */ B(Nop), |
| 896 /* 1282 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), | 896 /* 1282 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), |
| 897 /* 1291 S> */ B(Nop), | 897 /* 1291 S> */ B(Nop), |
| 898 /* 1292 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), | 898 /* 1292 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), |
| 899 /* 1301 S> */ B(Nop), | 899 /* 1301 S> */ B(Nop), |
| 900 /* 1302 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), | 900 /* 1302 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), |
| 901 /* 1311 S> */ B(Nop), | 901 /* 1311 S> */ B(Nop), |
| 902 /* 1312 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), | 902 /* 1312 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), |
| 903 /* 1321 S> */ B(LdaSmi), U8(2), | 903 /* 1321 S> */ B(LdaSmi), I8(2), |
| 904 /* 1323 E> */ B(Wide), B(StaGlobalStrict), U16(1), U16(258), | 904 /* 1323 E> */ B(Wide), B(StaGlobalStrict), U16(1), U16(258), |
| 905 B(LdaUndefined), | 905 B(LdaUndefined), |
| 906 /* 1328 S> */ B(Return), | 906 /* 1328 S> */ B(Return), |
| 907 ] | 907 ] |
| 908 constant pool: [ | 908 constant pool: [ |
| 909 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 909 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
| 910 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 910 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 911 ] | 911 ] |
| 912 handlers: [ | 912 handlers: [ |
| 913 ] | 913 ] |
| 914 | 914 |
| OLD | NEW |