| 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 function f(a) { return a.name; } | 13 function f(a) { return a.name; } |
| 14 f({name : \"test\"}); | 14 f({name : \"test\"}); |
| 15 " | 15 " |
| 16 frame size: 1 | 16 frame size: 1 |
| 17 parameter count: 2 | 17 parameter count: 2 |
| 18 bytecode array length: 10 | 18 bytecode array length: 10 |
| 19 bytecodes: [ | 19 bytecodes: [ |
| 20 /* 10 E> */ B(StackCheck), | 20 /* 10 E> */ B(StackCheck), |
| 21 /* 16 S> */ B(Ldar), R(arg0), | 21 /* 16 S> */ B(Ldar), R(arg0), |
| 22 B(Star), R(0), | 22 B(Star), R(0), |
| 23 /* 24 E> */ B(LoadIC), R(0), U8(0), U8(1), | 23 /* 24 E> */ B(LdaNamedProperty), R(0), U8(0), U8(1), |
| 24 /* 31 S> */ B(Return), | 24 /* 31 S> */ B(Return), |
| 25 ] | 25 ] |
| 26 constant pool: [ | 26 constant pool: [ |
| 27 "name", | 27 "name", |
| 28 ] | 28 ] |
| 29 handlers: [ | 29 handlers: [ |
| 30 ] | 30 ] |
| 31 | 31 |
| 32 --- | 32 --- |
| 33 snippet: " | 33 snippet: " |
| 34 function f(a) { return a[\"key\"]; } | 34 function f(a) { return a[\"key\"]; } |
| 35 f({key : \"test\"}); | 35 f({key : \"test\"}); |
| 36 " | 36 " |
| 37 frame size: 1 | 37 frame size: 1 |
| 38 parameter count: 2 | 38 parameter count: 2 |
| 39 bytecode array length: 10 | 39 bytecode array length: 10 |
| 40 bytecodes: [ | 40 bytecodes: [ |
| 41 /* 10 E> */ B(StackCheck), | 41 /* 10 E> */ B(StackCheck), |
| 42 /* 16 S> */ B(Ldar), R(arg0), | 42 /* 16 S> */ B(Ldar), R(arg0), |
| 43 B(Star), R(0), | 43 B(Star), R(0), |
| 44 /* 24 E> */ B(LoadIC), R(0), U8(0), U8(1), | 44 /* 24 E> */ B(LdaNamedProperty), R(0), U8(0), U8(1), |
| 45 /* 33 S> */ B(Return), | 45 /* 33 S> */ B(Return), |
| 46 ] | 46 ] |
| 47 constant pool: [ | 47 constant pool: [ |
| 48 "key", | 48 "key", |
| 49 ] | 49 ] |
| 50 handlers: [ | 50 handlers: [ |
| 51 ] | 51 ] |
| 52 | 52 |
| 53 --- | 53 --- |
| 54 snippet: " | 54 snippet: " |
| 55 function f(a) { return a[100]; } | 55 function f(a) { return a[100]; } |
| 56 f({100 : \"test\"}); | 56 f({100 : \"test\"}); |
| 57 " | 57 " |
| 58 frame size: 1 | 58 frame size: 1 |
| 59 parameter count: 2 | 59 parameter count: 2 |
| 60 bytecode array length: 11 | 60 bytecode array length: 11 |
| 61 bytecodes: [ | 61 bytecodes: [ |
| 62 /* 10 E> */ B(StackCheck), | 62 /* 10 E> */ B(StackCheck), |
| 63 /* 16 S> */ B(Ldar), R(arg0), | 63 /* 16 S> */ B(Ldar), R(arg0), |
| 64 B(Star), R(0), | 64 B(Star), R(0), |
| 65 /* 24 E> */ B(LdaSmi), U8(100), | 65 /* 24 E> */ B(LdaSmi), U8(100), |
| 66 B(KeyedLoadIC), R(0), U8(1), | 66 B(LdaKeyedProperty), R(0), U8(1), |
| 67 /* 31 S> */ B(Return), | 67 /* 31 S> */ B(Return), |
| 68 ] | 68 ] |
| 69 constant pool: [ | 69 constant pool: [ |
| 70 ] | 70 ] |
| 71 handlers: [ | 71 handlers: [ |
| 72 ] | 72 ] |
| 73 | 73 |
| 74 --- | 74 --- |
| 75 snippet: " | 75 snippet: " |
| 76 function f(a, b) { return a[b]; } | 76 function f(a, b) { return a[b]; } |
| 77 f({arg : \"test\"}, \"arg\"); | 77 f({arg : \"test\"}, \"arg\"); |
| 78 " | 78 " |
| 79 frame size: 1 | 79 frame size: 1 |
| 80 parameter count: 3 | 80 parameter count: 3 |
| 81 bytecode array length: 11 | 81 bytecode array length: 11 |
| 82 bytecodes: [ | 82 bytecodes: [ |
| 83 /* 10 E> */ B(StackCheck), | 83 /* 10 E> */ B(StackCheck), |
| 84 /* 19 S> */ B(Ldar), R(arg0), | 84 /* 19 S> */ B(Ldar), R(arg0), |
| 85 B(Star), R(0), | 85 B(Star), R(0), |
| 86 /* 27 E> */ B(Ldar), R(arg1), | 86 /* 27 E> */ B(Ldar), R(arg1), |
| 87 B(KeyedLoadIC), R(0), U8(1), | 87 B(LdaKeyedProperty), R(0), U8(1), |
| 88 /* 32 S> */ B(Return), | 88 /* 32 S> */ B(Return), |
| 89 ] | 89 ] |
| 90 constant pool: [ | 90 constant pool: [ |
| 91 ] | 91 ] |
| 92 handlers: [ | 92 handlers: [ |
| 93 ] | 93 ] |
| 94 | 94 |
| 95 --- | 95 --- |
| 96 snippet: " | 96 snippet: " |
| 97 function f(a) { var b = a.name; return a[-124]; } | 97 function f(a) { var b = a.name; return a[-124]; } |
| 98 f({\"-124\" : \"test\", name : 123 }) | 98 f({\"-124\" : \"test\", name : 123 }) |
| 99 " | 99 " |
| 100 frame size: 2 | 100 frame size: 2 |
| 101 parameter count: 2 | 101 parameter count: 2 |
| 102 bytecode array length: 20 | 102 bytecode array length: 20 |
| 103 bytecodes: [ | 103 bytecodes: [ |
| 104 /* 10 E> */ B(StackCheck), | 104 /* 10 E> */ B(StackCheck), |
| 105 /* 25 S> */ B(Ldar), R(arg0), | 105 /* 25 S> */ B(Ldar), R(arg0), |
| 106 B(Star), R(1), | 106 B(Star), R(1), |
| 107 /* 25 E> */ B(LdrNamedProperty), R(1), U8(0), U8(1), R(0), | 107 /* 25 E> */ B(LdrNamedProperty), R(1), U8(0), U8(1), R(0), |
| 108 /* 32 S> */ B(Ldar), R(arg0), | 108 /* 32 S> */ B(Ldar), R(arg0), |
| 109 B(Star), R(1), | 109 B(Star), R(1), |
| 110 /* 40 E> */ B(LdaSmi), U8(-124), | 110 /* 40 E> */ B(LdaSmi), U8(-124), |
| 111 B(KeyedLoadIC), R(1), U8(3), | 111 B(LdaKeyedProperty), R(1), U8(3), |
| 112 /* 48 S> */ B(Return), | 112 /* 48 S> */ B(Return), |
| 113 ] | 113 ] |
| 114 constant pool: [ | 114 constant pool: [ |
| 115 "name", | 115 "name", |
| 116 ] | 116 ] |
| 117 handlers: [ | 117 handlers: [ |
| 118 ] | 118 ] |
| 119 | 119 |
| 120 --- | 120 --- |
| 121 snippet: " | 121 snippet: " |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 B(Star), R(1), | 637 B(Star), R(1), |
| 638 /* 1782 E> */ B(LdrNamedProperty), R(1), U8(0), U8(251), R(0), | 638 /* 1782 E> */ B(LdrNamedProperty), R(1), U8(0), U8(251), R(0), |
| 639 /* 1791 S> */ B(Ldar), R(arg0), | 639 /* 1791 S> */ B(Ldar), R(arg0), |
| 640 B(Star), R(1), | 640 B(Star), R(1), |
| 641 /* 1796 E> */ B(LdrNamedProperty), R(1), U8(0), U8(253), R(0), | 641 /* 1796 E> */ B(LdrNamedProperty), R(1), U8(0), U8(253), R(0), |
| 642 /* 1805 S> */ B(Ldar), R(arg0), | 642 /* 1805 S> */ B(Ldar), R(arg0), |
| 643 B(Star), R(1), | 643 B(Star), R(1), |
| 644 /* 1810 E> */ B(LdrNamedProperty), R(1), U8(0), U8(255), R(0), | 644 /* 1810 E> */ B(LdrNamedProperty), R(1), U8(0), U8(255), R(0), |
| 645 /* 1819 S> */ B(Ldar), R(arg0), | 645 /* 1819 S> */ B(Ldar), R(arg0), |
| 646 B(Star), R(1), | 646 B(Star), R(1), |
| 647 /* 1827 E> */ B(Wide), B(LoadIC), R16(1), U16(0), U16(257), | 647 /* 1827 E> */ B(Wide), B(LdaNamedProperty), R16(1), U16(0), U16(257), |
| 648 /* 1834 S> */ B(Return), | 648 /* 1834 S> */ B(Return), |
| 649 ] | 649 ] |
| 650 constant pool: [ | 650 constant pool: [ |
| 651 "name", | 651 "name", |
| 652 ] | 652 ] |
| 653 handlers: [ | 653 handlers: [ |
| 654 ] | 654 ] |
| 655 | 655 |
| 656 --- | 656 --- |
| 657 snippet: " | 657 snippet: " |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 B(Star), R(1), | 1302 B(Star), R(1), |
| 1303 /* 1547 E> */ B(Ldar), R(arg1), | 1303 /* 1547 E> */ B(Ldar), R(arg1), |
| 1304 /* 1544 E> */ B(LdrKeyedProperty), R(1), U8(253), R(0), | 1304 /* 1544 E> */ B(LdrKeyedProperty), R(1), U8(253), R(0), |
| 1305 /* 1554 S> */ B(Ldar), R(arg0), | 1305 /* 1554 S> */ B(Ldar), R(arg0), |
| 1306 B(Star), R(1), | 1306 B(Star), R(1), |
| 1307 /* 1559 E> */ B(Ldar), R(arg1), | 1307 /* 1559 E> */ B(Ldar), R(arg1), |
| 1308 /* 1556 E> */ B(LdrKeyedProperty), R(1), U8(255), R(0), | 1308 /* 1556 E> */ B(LdrKeyedProperty), R(1), U8(255), R(0), |
| 1309 /* 1566 S> */ B(Ldar), R(arg0), | 1309 /* 1566 S> */ B(Ldar), R(arg0), |
| 1310 B(Star), R(1), | 1310 B(Star), R(1), |
| 1311 /* 1574 E> */ B(Ldar), R(arg1), | 1311 /* 1574 E> */ B(Ldar), R(arg1), |
| 1312 B(Wide), B(KeyedLoadIC), R16(1), U16(257), | 1312 B(Wide), B(LdaKeyedProperty), R16(1), U16(257), |
| 1313 /* 1579 S> */ B(Return), | 1313 /* 1579 S> */ B(Return), |
| 1314 ] | 1314 ] |
| 1315 constant pool: [ | 1315 constant pool: [ |
| 1316 ] | 1316 ] |
| 1317 handlers: [ | 1317 handlers: [ |
| 1318 ] | 1318 ] |
| 1319 | 1319 |
| OLD | NEW |