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: 1 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 8 | 17 bytecode array length: 12 |
18 bytecodes: [ | 18 bytecodes: [ |
19 /* 21 E> */ B(StackCheck), | 19 /* 21 E> */ B(StackCheck), |
20 /* 26 S> */ B(LdaSmi), I8(2), | 20 /* 26 S> */ B(LdaConstant), U8(0), |
| 21 B(Star), R(0), |
| 22 B(LdaSmi), I8(2), |
21 /* 28 E> */ B(StaGlobalSloppy), U8(0), U8(2), | 23 /* 28 E> */ B(StaGlobalSloppy), U8(0), U8(2), |
22 B(LdaUndefined), | 24 B(LdaUndefined), |
23 /* 33 S> */ B(Return), | 25 /* 33 S> */ B(Return), |
24 ] | 26 ] |
25 constant pool: [ | 27 constant pool: [ |
26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 28 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
27 ] | 29 ] |
28 handlers: [ | 30 handlers: [ |
29 ] | 31 ] |
30 | 32 |
31 --- | 33 --- |
32 snippet: " | 34 snippet: " |
33 var a = \"test\"; function f(b) { a = b; } | 35 var a = \"test\"; function f(b) { a = b; } |
34 f(\"global\"); | 36 f(\"global\"); |
35 " | 37 " |
36 frame size: 0 | 38 frame size: 1 |
37 parameter count: 2 | 39 parameter count: 2 |
38 bytecode array length: 8 | 40 bytecode array length: 12 |
39 bytecodes: [ | 41 bytecodes: [ |
40 /* 26 E> */ B(StackCheck), | 42 /* 26 E> */ B(StackCheck), |
41 /* 32 S> */ B(Ldar), R(arg0), | 43 /* 32 S> */ B(LdaConstant), U8(0), |
| 44 B(Star), R(0), |
| 45 B(Ldar), R(arg0), |
42 /* 34 E> */ B(StaGlobalSloppy), U8(0), U8(2), | 46 /* 34 E> */ B(StaGlobalSloppy), U8(0), U8(2), |
43 B(LdaUndefined), | 47 B(LdaUndefined), |
44 /* 39 S> */ B(Return), | 48 /* 39 S> */ B(Return), |
45 ] | 49 ] |
46 constant pool: [ | 50 constant pool: [ |
47 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
48 ] | 52 ] |
49 handlers: [ | 53 handlers: [ |
50 ] | 54 ] |
51 | 55 |
52 --- | 56 --- |
53 snippet: " | 57 snippet: " |
54 'use strict'; var a = 1; | 58 'use strict'; var a = 1; |
55 function f() { a = 2; } | 59 function f() { a = 2; } |
56 f(); | 60 f(); |
57 " | 61 " |
58 frame size: 0 | 62 frame size: 1 |
59 parameter count: 1 | 63 parameter count: 1 |
60 bytecode array length: 8 | 64 bytecode array length: 12 |
61 bytecodes: [ | 65 bytecodes: [ |
62 /* 35 E> */ B(StackCheck), | 66 /* 35 E> */ B(StackCheck), |
63 /* 40 S> */ B(LdaSmi), I8(2), | 67 /* 40 S> */ B(LdaConstant), U8(0), |
| 68 B(Star), R(0), |
| 69 B(LdaSmi), I8(2), |
64 /* 42 E> */ B(StaGlobalStrict), U8(0), U8(2), | 70 /* 42 E> */ B(StaGlobalStrict), U8(0), U8(2), |
65 B(LdaUndefined), | 71 B(LdaUndefined), |
66 /* 47 S> */ B(Return), | 72 /* 47 S> */ B(Return), |
67 ] | 73 ] |
68 constant pool: [ | 74 constant pool: [ |
69 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 75 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
70 ] | 76 ] |
71 handlers: [ | 77 handlers: [ |
72 ] | 78 ] |
73 | 79 |
74 --- | 80 --- |
75 snippet: " | 81 snippet: " |
76 a = 1; | 82 a = 1; |
77 function f() { a = 2; } | 83 function f() { a = 2; } |
78 f(); | 84 f(); |
79 " | 85 " |
80 frame size: 0 | 86 frame size: 1 |
81 parameter count: 1 | 87 parameter count: 1 |
82 bytecode array length: 8 | 88 bytecode array length: 12 |
83 bytecodes: [ | 89 bytecodes: [ |
84 /* 17 E> */ B(StackCheck), | 90 /* 17 E> */ B(StackCheck), |
85 /* 22 S> */ B(LdaSmi), I8(2), | 91 /* 22 S> */ B(LdaConstant), U8(0), |
| 92 B(Star), R(0), |
| 93 B(LdaSmi), I8(2), |
86 /* 24 E> */ B(StaGlobalSloppy), U8(0), U8(2), | 94 /* 24 E> */ B(StaGlobalSloppy), U8(0), U8(2), |
87 B(LdaUndefined), | 95 B(LdaUndefined), |
88 /* 29 S> */ B(Return), | 96 /* 29 S> */ B(Return), |
89 ] | 97 ] |
90 constant pool: [ | 98 constant pool: [ |
91 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 99 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
92 ] | 100 ] |
93 handlers: [ | 101 handlers: [ |
94 ] | 102 ] |
95 | 103 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 b.name; | 230 b.name; |
223 b.name; | 231 b.name; |
224 b.name; | 232 b.name; |
225 b.name; | 233 b.name; |
226 b.name; | 234 b.name; |
227 b.name; | 235 b.name; |
228 a = 2; | 236 a = 2; |
229 } | 237 } |
230 f({name: 1}); | 238 f({name: 1}); |
231 " | 239 " |
232 frame size: 0 | 240 frame size: 1 |
233 parameter count: 2 | 241 parameter count: 2 |
234 bytecode array length: 655 | 242 bytecode array length: 659 |
235 bytecodes: [ | 243 bytecodes: [ |
236 /* 17 E> */ B(StackCheck), | 244 /* 17 E> */ B(StackCheck), |
237 /* 25 S> */ B(Nop), | 245 /* 25 S> */ B(Nop), |
238 /* 26 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(2), | 246 /* 26 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(2), |
239 /* 35 S> */ B(Nop), | 247 /* 35 S> */ B(Nop), |
240 /* 36 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4), | 248 /* 36 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4), |
241 /* 45 S> */ B(Nop), | 249 /* 45 S> */ B(Nop), |
242 /* 46 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(6), | 250 /* 46 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(6), |
243 /* 55 S> */ B(Nop), | 251 /* 55 S> */ B(Nop), |
244 /* 56 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(8), | 252 /* 56 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(8), |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 /* 1255 S> */ B(Nop), | 491 /* 1255 S> */ B(Nop), |
484 /* 1256 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), | 492 /* 1256 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), |
485 /* 1265 S> */ B(Nop), | 493 /* 1265 S> */ B(Nop), |
486 /* 1266 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), | 494 /* 1266 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), |
487 /* 1275 S> */ B(Nop), | 495 /* 1275 S> */ B(Nop), |
488 /* 1276 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), | 496 /* 1276 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), |
489 /* 1285 S> */ B(Nop), | 497 /* 1285 S> */ B(Nop), |
490 /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), | 498 /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), |
491 /* 1295 S> */ B(Nop), | 499 /* 1295 S> */ B(Nop), |
492 /* 1296 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), | 500 /* 1296 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), |
493 /* 1305 S> */ B(LdaSmi), I8(2), | 501 /* 1305 S> */ B(LdaConstant), U8(1), |
| 502 B(Star), R(0), |
| 503 B(LdaSmi), I8(2), |
494 /* 1307 E> */ B(Wide), B(StaGlobalSloppy), U16(1), U16(258), | 504 /* 1307 E> */ B(Wide), B(StaGlobalSloppy), U16(1), U16(258), |
495 B(LdaUndefined), | 505 B(LdaUndefined), |
496 /* 1312 S> */ B(Return), | 506 /* 1312 S> */ B(Return), |
497 ] | 507 ] |
498 constant pool: [ | 508 constant pool: [ |
499 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 509 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
500 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 510 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
501 ] | 511 ] |
502 handlers: [ | 512 handlers: [ |
503 ] | 513 ] |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 b.name; | 642 b.name; |
633 b.name; | 643 b.name; |
634 b.name; | 644 b.name; |
635 b.name; | 645 b.name; |
636 b.name; | 646 b.name; |
637 b.name; | 647 b.name; |
638 a = 2; | 648 a = 2; |
639 } | 649 } |
640 f({name: 1}); | 650 f({name: 1}); |
641 " | 651 " |
642 frame size: 0 | 652 frame size: 1 |
643 parameter count: 2 | 653 parameter count: 2 |
644 bytecode array length: 655 | 654 bytecode array length: 659 |
645 bytecodes: [ | 655 bytecodes: [ |
646 /* 17 E> */ B(StackCheck), | 656 /* 17 E> */ B(StackCheck), |
647 /* 41 S> */ B(Nop), | 657 /* 41 S> */ B(Nop), |
648 /* 42 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(2), | 658 /* 42 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(2), |
649 /* 51 S> */ B(Nop), | 659 /* 51 S> */ B(Nop), |
650 /* 52 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4), | 660 /* 52 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4), |
651 /* 61 S> */ B(Nop), | 661 /* 61 S> */ B(Nop), |
652 /* 62 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(6), | 662 /* 62 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(6), |
653 /* 71 S> */ B(Nop), | 663 /* 71 S> */ B(Nop), |
654 /* 72 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(8), | 664 /* 72 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(8), |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 /* 1271 S> */ B(Nop), | 903 /* 1271 S> */ B(Nop), |
894 /* 1272 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), | 904 /* 1272 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), |
895 /* 1281 S> */ B(Nop), | 905 /* 1281 S> */ B(Nop), |
896 /* 1282 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), | 906 /* 1282 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), |
897 /* 1291 S> */ B(Nop), | 907 /* 1291 S> */ B(Nop), |
898 /* 1292 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), | 908 /* 1292 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), |
899 /* 1301 S> */ B(Nop), | 909 /* 1301 S> */ B(Nop), |
900 /* 1302 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), | 910 /* 1302 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), |
901 /* 1311 S> */ B(Nop), | 911 /* 1311 S> */ B(Nop), |
902 /* 1312 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), | 912 /* 1312 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), |
903 /* 1321 S> */ B(LdaSmi), I8(2), | 913 /* 1321 S> */ B(LdaConstant), U8(1), |
| 914 B(Star), R(0), |
| 915 B(LdaSmi), I8(2), |
904 /* 1323 E> */ B(Wide), B(StaGlobalStrict), U16(1), U16(258), | 916 /* 1323 E> */ B(Wide), B(StaGlobalStrict), U16(1), U16(258), |
905 B(LdaUndefined), | 917 B(LdaUndefined), |
906 /* 1328 S> */ B(Return), | 918 /* 1328 S> */ B(Return), |
907 ] | 919 ] |
908 constant pool: [ | 920 constant pool: [ |
909 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 921 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
910 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 922 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
911 ] | 923 ] |
912 handlers: [ | 924 handlers: [ |
913 ] | 925 ] |
914 | 926 |
OLD | NEW |