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 function f(a) { a.name = \"val\"; } | 12 function f(a) { a.name = \"val\"; } |
14 f({name : \"test\"}) | 13 f({name : \"test\"}) |
15 " | 14 " |
16 frame size: 0 | 15 frame size: 0 |
17 parameter count: 2 | 16 parameter count: 2 |
18 bytecode array length: 9 | 17 bytecode array length: 9 |
19 bytecodes: [ | 18 bytecodes: [ |
20 /* 10 E> */ B(StackCheck), | 19 /* 10 E> */ B(StackCheck), |
21 /* 16 S> */ B(LdaConstant), U8(0), | 20 /* 16 S> */ B(LdaConstant), U8(0), |
22 /* 23 E> */ B(StaNamedPropertySloppy), R(arg0), U8(1), U8(1), | 21 /* 23 E> */ B(StaNamedPropertySloppy), R(arg0), U8(1), U8(1), |
23 B(LdaUndefined), | 22 B(LdaUndefined), |
24 /* 32 S> */ B(Return), | 23 /* 32 S> */ B(Return), |
25 ] | 24 ] |
26 constant pool: [ | 25 constant pool: [ |
27 "val", | 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
28 "name", | 27 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
29 ] | 28 ] |
30 handlers: [ | 29 handlers: [ |
31 ] | 30 ] |
32 | 31 |
33 --- | 32 --- |
34 snippet: " | 33 snippet: " |
35 function f(a) { a[\"key\"] = \"val\"; } | 34 function f(a) { a[\"key\"] = \"val\"; } |
36 f({key : \"test\"}) | 35 f({key : \"test\"}) |
37 " | 36 " |
38 frame size: 0 | 37 frame size: 0 |
39 parameter count: 2 | 38 parameter count: 2 |
40 bytecode array length: 9 | 39 bytecode array length: 9 |
41 bytecodes: [ | 40 bytecodes: [ |
42 /* 10 E> */ B(StackCheck), | 41 /* 10 E> */ B(StackCheck), |
43 /* 16 S> */ B(LdaConstant), U8(0), | 42 /* 16 S> */ B(LdaConstant), U8(0), |
44 /* 25 E> */ B(StaNamedPropertySloppy), R(arg0), U8(1), U8(1), | 43 /* 25 E> */ B(StaNamedPropertySloppy), R(arg0), U8(1), U8(1), |
45 B(LdaUndefined), | 44 B(LdaUndefined), |
46 /* 34 S> */ B(Return), | 45 /* 34 S> */ B(Return), |
47 ] | 46 ] |
48 constant pool: [ | 47 constant pool: [ |
49 "val", | 48 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
50 "key", | 49 ONE_BYTE_INTERNALIZED_STRING_TYPE ["key"], |
51 ] | 50 ] |
52 handlers: [ | 51 handlers: [ |
53 ] | 52 ] |
54 | 53 |
55 --- | 54 --- |
56 snippet: " | 55 snippet: " |
57 function f(a) { a[100] = \"val\"; } | 56 function f(a) { a[100] = \"val\"; } |
58 f({100 : \"test\"}) | 57 f({100 : \"test\"}) |
59 " | 58 " |
60 frame size: 2 | 59 frame size: 2 |
61 parameter count: 2 | 60 parameter count: 2 |
62 bytecode array length: 13 | 61 bytecode array length: 13 |
63 bytecodes: [ | 62 bytecodes: [ |
64 /* 10 E> */ B(StackCheck), | 63 /* 10 E> */ B(StackCheck), |
65 /* 16 S> */ B(LdaSmi), U8(100), | 64 /* 16 S> */ B(LdaSmi), U8(100), |
66 B(Star), R(1), | 65 B(Star), R(1), |
67 B(LdaConstant), U8(0), | 66 B(LdaConstant), U8(0), |
68 /* 23 E> */ B(StaKeyedPropertySloppy), R(arg0), R(1), U8(1), | 67 /* 23 E> */ B(StaKeyedPropertySloppy), R(arg0), R(1), U8(1), |
69 B(LdaUndefined), | 68 B(LdaUndefined), |
70 /* 32 S> */ B(Return), | 69 /* 32 S> */ B(Return), |
71 ] | 70 ] |
72 constant pool: [ | 71 constant pool: [ |
73 "val", | 72 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
74 ] | 73 ] |
75 handlers: [ | 74 handlers: [ |
76 ] | 75 ] |
77 | 76 |
78 --- | 77 --- |
79 snippet: " | 78 snippet: " |
80 function f(a, b) { a[b] = \"val\"; } | 79 function f(a, b) { a[b] = \"val\"; } |
81 f({arg : \"test\"}, \"arg\") | 80 f({arg : \"test\"}, \"arg\") |
82 " | 81 " |
83 frame size: 0 | 82 frame size: 0 |
84 parameter count: 3 | 83 parameter count: 3 |
85 bytecode array length: 9 | 84 bytecode array length: 9 |
86 bytecodes: [ | 85 bytecodes: [ |
87 /* 10 E> */ B(StackCheck), | 86 /* 10 E> */ B(StackCheck), |
88 /* 19 S> */ B(LdaConstant), U8(0), | 87 /* 19 S> */ B(LdaConstant), U8(0), |
89 /* 24 E> */ B(StaKeyedPropertySloppy), R(arg0), R(arg1), U8(1), | 88 /* 24 E> */ B(StaKeyedPropertySloppy), R(arg0), R(arg1), U8(1), |
90 B(LdaUndefined), | 89 B(LdaUndefined), |
91 /* 33 S> */ B(Return), | 90 /* 33 S> */ B(Return), |
92 ] | 91 ] |
93 constant pool: [ | 92 constant pool: [ |
94 "val", | 93 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
95 ] | 94 ] |
96 handlers: [ | 95 handlers: [ |
97 ] | 96 ] |
98 | 97 |
99 --- | 98 --- |
100 snippet: " | 99 snippet: " |
101 function f(a) { a.name = a[-124]; } | 100 function f(a) { a.name = a[-124]; } |
102 f({\"-124\" : \"test\", name : 123 }) | 101 f({\"-124\" : \"test\", name : 123 }) |
103 " | 102 " |
104 frame size: 0 | 103 frame size: 0 |
105 parameter count: 2 | 104 parameter count: 2 |
106 bytecode array length: 12 | 105 bytecode array length: 12 |
107 bytecodes: [ | 106 bytecodes: [ |
108 /* 10 E> */ B(StackCheck), | 107 /* 10 E> */ B(StackCheck), |
109 /* 16 S> */ B(LdaSmi), U8(-124), | 108 /* 16 S> */ B(LdaSmi), U8(-124), |
110 /* 26 E> */ B(LdaKeyedProperty), R(arg0), U8(1), | 109 /* 26 E> */ B(LdaKeyedProperty), R(arg0), U8(1), |
111 /* 23 E> */ B(StaNamedPropertySloppy), R(arg0), U8(0), U8(3), | 110 /* 23 E> */ B(StaNamedPropertySloppy), R(arg0), U8(0), U8(3), |
112 B(LdaUndefined), | 111 B(LdaUndefined), |
113 /* 34 S> */ B(Return), | 112 /* 34 S> */ B(Return), |
114 ] | 113 ] |
115 constant pool: [ | 114 constant pool: [ |
116 "name", | 115 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
117 ] | 116 ] |
118 handlers: [ | 117 handlers: [ |
119 ] | 118 ] |
120 | 119 |
121 --- | 120 --- |
122 snippet: " | 121 snippet: " |
123 function f(a) { \"use strict\"; a.name = \"val\"; } | 122 function f(a) { \"use strict\"; a.name = \"val\"; } |
124 f({name : \"test\"}) | 123 f({name : \"test\"}) |
125 " | 124 " |
126 frame size: 0 | 125 frame size: 0 |
127 parameter count: 2 | 126 parameter count: 2 |
128 bytecode array length: 9 | 127 bytecode array length: 9 |
129 bytecodes: [ | 128 bytecodes: [ |
130 /* 10 E> */ B(StackCheck), | 129 /* 10 E> */ B(StackCheck), |
131 /* 30 S> */ B(LdaConstant), U8(0), | 130 /* 30 S> */ B(LdaConstant), U8(0), |
132 /* 37 E> */ B(StaNamedPropertyStrict), R(arg0), U8(1), U8(1), | 131 /* 37 E> */ B(StaNamedPropertyStrict), R(arg0), U8(1), U8(1), |
133 B(LdaUndefined), | 132 B(LdaUndefined), |
134 /* 46 S> */ B(Return), | 133 /* 46 S> */ B(Return), |
135 ] | 134 ] |
136 constant pool: [ | 135 constant pool: [ |
137 "val", | 136 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
138 "name", | 137 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
139 ] | 138 ] |
140 handlers: [ | 139 handlers: [ |
141 ] | 140 ] |
142 | 141 |
143 --- | 142 --- |
144 snippet: " | 143 snippet: " |
145 function f(a, b) { \"use strict\"; a[b] = \"val\"; } | 144 function f(a, b) { \"use strict\"; a[b] = \"val\"; } |
146 f({arg : \"test\"}, \"arg\") | 145 f({arg : \"test\"}, \"arg\") |
147 " | 146 " |
148 frame size: 0 | 147 frame size: 0 |
149 parameter count: 3 | 148 parameter count: 3 |
150 bytecode array length: 9 | 149 bytecode array length: 9 |
151 bytecodes: [ | 150 bytecodes: [ |
152 /* 10 E> */ B(StackCheck), | 151 /* 10 E> */ B(StackCheck), |
153 /* 33 S> */ B(LdaConstant), U8(0), | 152 /* 33 S> */ B(LdaConstant), U8(0), |
154 /* 38 E> */ B(StaKeyedPropertyStrict), R(arg0), R(arg1), U8(1), | 153 /* 38 E> */ B(StaKeyedPropertyStrict), R(arg0), R(arg1), U8(1), |
155 B(LdaUndefined), | 154 B(LdaUndefined), |
156 /* 47 S> */ B(Return), | 155 /* 47 S> */ B(Return), |
157 ] | 156 ] |
158 constant pool: [ | 157 constant pool: [ |
159 "val", | 158 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
160 ] | 159 ] |
161 handlers: [ | 160 handlers: [ |
162 ] | 161 ] |
163 | 162 |
164 --- | 163 --- |
165 snippet: " | 164 snippet: " |
166 function f(a) { | 165 function f(a) { |
167 a.name = 1; | 166 a.name = 1; |
168 a.name = 1; | 167 a.name = 1; |
169 a.name = 1; | 168 a.name = 1; |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 /* 1782 S> */ B(LdaSmi), U8(1), | 555 /* 1782 S> */ B(LdaSmi), U8(1), |
557 /* 1789 E> */ B(StaNamedPropertySloppy), R(arg0), U8(0), U8(253), | 556 /* 1789 E> */ B(StaNamedPropertySloppy), R(arg0), U8(0), U8(253), |
558 /* 1796 S> */ B(LdaSmi), U8(1), | 557 /* 1796 S> */ B(LdaSmi), U8(1), |
559 /* 1803 E> */ B(StaNamedPropertySloppy), R(arg0), U8(0), U8(255), | 558 /* 1803 E> */ B(StaNamedPropertySloppy), R(arg0), U8(0), U8(255), |
560 /* 1810 S> */ B(LdaSmi), U8(2), | 559 /* 1810 S> */ B(LdaSmi), U8(2), |
561 /* 1817 E> */ B(Wide), B(StaNamedPropertySloppy), R16(arg0), U16(0), U16(257), | 560 /* 1817 E> */ B(Wide), B(StaNamedPropertySloppy), R16(arg0), U16(0), U16(257), |
562 B(LdaUndefined), | 561 B(LdaUndefined), |
563 /* 1822 S> */ B(Return), | 562 /* 1822 S> */ B(Return), |
564 ] | 563 ] |
565 constant pool: [ | 564 constant pool: [ |
566 "name", | 565 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
567 ] | 566 ] |
568 handlers: [ | 567 handlers: [ |
569 ] | 568 ] |
570 | 569 |
571 --- | 570 --- |
572 snippet: " | 571 snippet: " |
573 function f(a) { | 572 function f(a) { |
574 'use strict'; | 573 'use strict'; |
575 a.name = 1; | 574 a.name = 1; |
576 a.name = 1; | 575 a.name = 1; |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 /* 1797 S> */ B(LdaSmi), U8(1), | 963 /* 1797 S> */ B(LdaSmi), U8(1), |
965 /* 1804 E> */ B(StaNamedPropertyStrict), R(arg0), U8(0), U8(253), | 964 /* 1804 E> */ B(StaNamedPropertyStrict), R(arg0), U8(0), U8(253), |
966 /* 1811 S> */ B(LdaSmi), U8(1), | 965 /* 1811 S> */ B(LdaSmi), U8(1), |
967 /* 1818 E> */ B(StaNamedPropertyStrict), R(arg0), U8(0), U8(255), | 966 /* 1818 E> */ B(StaNamedPropertyStrict), R(arg0), U8(0), U8(255), |
968 /* 1825 S> */ B(LdaSmi), U8(2), | 967 /* 1825 S> */ B(LdaSmi), U8(2), |
969 /* 1832 E> */ B(Wide), B(StaNamedPropertyStrict), R16(arg0), U16(0), U16(257), | 968 /* 1832 E> */ B(Wide), B(StaNamedPropertyStrict), R16(arg0), U16(0), U16(257), |
970 B(LdaUndefined), | 969 B(LdaUndefined), |
971 /* 1837 S> */ B(Return), | 970 /* 1837 S> */ B(Return), |
972 ] | 971 ] |
973 constant pool: [ | 972 constant pool: [ |
974 "name", | 973 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
975 ] | 974 ] |
976 handlers: [ | 975 handlers: [ |
977 ] | 976 ] |
978 | 977 |
979 --- | 978 --- |
980 snippet: " | 979 snippet: " |
981 function f(a, b) { | 980 function f(a, b) { |
982 a[b] = 1; | 981 a[b] = 1; |
983 a[b] = 1; | 982 a[b] = 1; |
984 a[b] = 1; | 983 a[b] = 1; |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1782 /* 1573 S> */ B(LdaSmi), U8(2), | 1781 /* 1573 S> */ B(LdaSmi), U8(2), |
1783 /* 1578 E> */ B(Wide), B(StaKeyedPropertyStrict), R16(arg0), R16(arg1), U16(25
7), | 1782 /* 1578 E> */ B(Wide), B(StaKeyedPropertyStrict), R16(arg0), R16(arg1), U16(25
7), |
1784 B(LdaUndefined), | 1783 B(LdaUndefined), |
1785 /* 1583 S> */ B(Return), | 1784 /* 1583 S> */ B(Return), |
1786 ] | 1785 ] |
1787 constant pool: [ | 1786 constant pool: [ |
1788 ] | 1787 ] |
1789 handlers: [ | 1788 handlers: [ |
1790 ] | 1789 ] |
1791 | 1790 |
OLD | NEW |