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 | |
7 execute: yes | 6 execute: yes |
8 wrap: no | 7 wrap: no |
9 test function name: f | 8 test function name: f |
10 | 9 |
11 --- | 10 --- |
12 snippet: " | 11 snippet: " |
13 var a = 1; | 12 var a = 1; |
14 function f() { a = 2; } | 13 function f() { a = 2; } |
15 f(); | 14 f(); |
16 " | 15 " |
17 frame size: 0 | 16 frame size: 0 |
18 parameter count: 1 | 17 parameter count: 1 |
19 bytecode array length: 8 | 18 bytecode array length: 8 |
20 bytecodes: [ | 19 bytecodes: [ |
21 /* 21 E> */ B(StackCheck), | 20 /* 21 E> */ B(StackCheck), |
22 /* 26 S> */ B(LdaSmi), U8(2), | 21 /* 26 S> */ B(LdaSmi), U8(2), |
23 /* 28 E> */ B(StaGlobalSloppy), U8(0), U8(1), | 22 /* 28 E> */ B(StaGlobalSloppy), U8(0), U8(1), |
24 B(LdaUndefined), | 23 B(LdaUndefined), |
25 /* 33 S> */ B(Return), | 24 /* 33 S> */ B(Return), |
26 ] | 25 ] |
27 constant pool: [ | 26 constant pool: [ |
28 "a", | 27 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
29 ] | 28 ] |
30 handlers: [ | 29 handlers: [ |
31 ] | 30 ] |
32 | 31 |
33 --- | 32 --- |
34 snippet: " | 33 snippet: " |
35 var a = \"test\"; function f(b) { a = b; } | 34 var a = \"test\"; function f(b) { a = b; } |
36 f(\"global\"); | 35 f(\"global\"); |
37 " | 36 " |
38 frame size: 0 | 37 frame size: 0 |
39 parameter count: 2 | 38 parameter count: 2 |
40 bytecode array length: 8 | 39 bytecode array length: 8 |
41 bytecodes: [ | 40 bytecodes: [ |
42 /* 26 E> */ B(StackCheck), | 41 /* 26 E> */ B(StackCheck), |
43 /* 32 S> */ B(Ldar), R(arg0), | 42 /* 32 S> */ B(Ldar), R(arg0), |
44 /* 34 E> */ B(StaGlobalSloppy), U8(0), U8(1), | 43 /* 34 E> */ B(StaGlobalSloppy), U8(0), U8(1), |
45 B(LdaUndefined), | 44 B(LdaUndefined), |
46 /* 39 S> */ B(Return), | 45 /* 39 S> */ B(Return), |
47 ] | 46 ] |
48 constant pool: [ | 47 constant pool: [ |
49 "a", | 48 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
50 ] | 49 ] |
51 handlers: [ | 50 handlers: [ |
52 ] | 51 ] |
53 | 52 |
54 --- | 53 --- |
55 snippet: " | 54 snippet: " |
56 'use strict'; var a = 1; | 55 'use strict'; var a = 1; |
57 function f() { a = 2; } | 56 function f() { a = 2; } |
58 f(); | 57 f(); |
59 " | 58 " |
60 frame size: 0 | 59 frame size: 0 |
61 parameter count: 1 | 60 parameter count: 1 |
62 bytecode array length: 8 | 61 bytecode array length: 8 |
63 bytecodes: [ | 62 bytecodes: [ |
64 /* 35 E> */ B(StackCheck), | 63 /* 35 E> */ B(StackCheck), |
65 /* 40 S> */ B(LdaSmi), U8(2), | 64 /* 40 S> */ B(LdaSmi), U8(2), |
66 /* 42 E> */ B(StaGlobalStrict), U8(0), U8(1), | 65 /* 42 E> */ B(StaGlobalStrict), U8(0), U8(1), |
67 B(LdaUndefined), | 66 B(LdaUndefined), |
68 /* 47 S> */ B(Return), | 67 /* 47 S> */ B(Return), |
69 ] | 68 ] |
70 constant pool: [ | 69 constant pool: [ |
71 "a", | 70 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
72 ] | 71 ] |
73 handlers: [ | 72 handlers: [ |
74 ] | 73 ] |
75 | 74 |
76 --- | 75 --- |
77 snippet: " | 76 snippet: " |
78 a = 1; | 77 a = 1; |
79 function f() { a = 2; } | 78 function f() { a = 2; } |
80 f(); | 79 f(); |
81 " | 80 " |
82 frame size: 0 | 81 frame size: 0 |
83 parameter count: 1 | 82 parameter count: 1 |
84 bytecode array length: 8 | 83 bytecode array length: 8 |
85 bytecodes: [ | 84 bytecodes: [ |
86 /* 17 E> */ B(StackCheck), | 85 /* 17 E> */ B(StackCheck), |
87 /* 22 S> */ B(LdaSmi), U8(2), | 86 /* 22 S> */ B(LdaSmi), U8(2), |
88 /* 24 E> */ B(StaGlobalSloppy), U8(0), U8(1), | 87 /* 24 E> */ B(StaGlobalSloppy), U8(0), U8(1), |
89 B(LdaUndefined), | 88 B(LdaUndefined), |
90 /* 29 S> */ B(Return), | 89 /* 29 S> */ B(Return), |
91 ] | 90 ] |
92 constant pool: [ | 91 constant pool: [ |
93 "a", | 92 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
94 ] | 93 ] |
95 handlers: [ | 94 handlers: [ |
96 ] | 95 ] |
97 | 96 |
98 --- | 97 --- |
99 snippet: " | 98 snippet: " |
100 a = 1; | 99 a = 1; |
101 function f(b) { | 100 function f(b) { |
102 b.name; | 101 b.name; |
103 b.name; | 102 b.name; |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 /* 1285 S> */ B(Nop), | 490 /* 1285 S> */ B(Nop), |
492 /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(253), | 491 /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(253), |
493 /* 1295 S> */ B(Nop), | 492 /* 1295 S> */ B(Nop), |
494 /* 1296 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(255), | 493 /* 1296 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(255), |
495 /* 1305 S> */ B(LdaSmi), U8(2), | 494 /* 1305 S> */ B(LdaSmi), U8(2), |
496 /* 1307 E> */ B(Wide), B(StaGlobalSloppy), U16(1), U16(257), | 495 /* 1307 E> */ B(Wide), B(StaGlobalSloppy), U16(1), U16(257), |
497 B(LdaUndefined), | 496 B(LdaUndefined), |
498 /* 1312 S> */ B(Return), | 497 /* 1312 S> */ B(Return), |
499 ] | 498 ] |
500 constant pool: [ | 499 constant pool: [ |
501 "name", | 500 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
502 "a", | 501 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
503 ] | 502 ] |
504 handlers: [ | 503 handlers: [ |
505 ] | 504 ] |
506 | 505 |
507 --- | 506 --- |
508 snippet: " | 507 snippet: " |
509 a = 1; | 508 a = 1; |
510 function f(b) { | 509 function f(b) { |
511 'use strict'; | 510 'use strict'; |
512 b.name; | 511 b.name; |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 /* 1301 S> */ B(Nop), | 900 /* 1301 S> */ B(Nop), |
902 /* 1302 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(253), | 901 /* 1302 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(253), |
903 /* 1311 S> */ B(Nop), | 902 /* 1311 S> */ B(Nop), |
904 /* 1312 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(255), | 903 /* 1312 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(255), |
905 /* 1321 S> */ B(LdaSmi), U8(2), | 904 /* 1321 S> */ B(LdaSmi), U8(2), |
906 /* 1323 E> */ B(Wide), B(StaGlobalStrict), U16(1), U16(257), | 905 /* 1323 E> */ B(Wide), B(StaGlobalStrict), U16(1), U16(257), |
907 B(LdaUndefined), | 906 B(LdaUndefined), |
908 /* 1328 S> */ B(Return), | 907 /* 1328 S> */ B(Return), |
909 ] | 908 ] |
910 constant pool: [ | 909 constant pool: [ |
911 "name", | 910 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
912 "a", | 911 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
913 ] | 912 ] |
914 handlers: [ | 913 handlers: [ |
915 ] | 914 ] |
916 | 915 |
OLD | NEW |