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: mixed | 6 pool type: mixed |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 --- | 94 --- |
95 snippet: " | 95 snippet: " |
96 var a = { val: 1 }; return a.val++; | 96 var a = { val: 1 }; return a.val++; |
97 " | 97 " |
98 frame size: 3 | 98 frame size: 3 |
99 parameter count: 1 | 99 parameter count: 1 |
100 bytecode array length: 23 | 100 bytecode array length: 23 |
101 bytecodes: [ | 101 bytecodes: [ |
102 /* 30 E> */ B(StackCheck), | 102 /* 30 E> */ B(StackCheck), |
103 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), | 103 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
104 B(Star), R(1), | 104 B(Mov), R(1), R(0), |
105 B(Star), R(0), | |
106 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), | 105 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), |
107 B(ToNumber), R(2), | 106 B(ToNumber), R(2), |
108 B(Inc), | 107 B(Inc), |
109 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), | 108 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), |
110 B(Ldar), R(2), | 109 B(Ldar), R(2), |
111 /* 70 S> */ B(Return), | 110 /* 70 S> */ B(Return), |
112 ] | 111 ] |
113 constant pool: [ | 112 constant pool: [ |
114 InstanceType::FIXED_ARRAY_TYPE, | 113 InstanceType::FIXED_ARRAY_TYPE, |
115 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 114 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
116 ] | 115 ] |
117 handlers: [ | 116 handlers: [ |
118 ] | 117 ] |
119 | 118 |
120 --- | 119 --- |
121 snippet: " | 120 snippet: " |
122 var a = { val: 1 }; return --a.val; | 121 var a = { val: 1 }; return --a.val; |
123 " | 122 " |
124 frame size: 2 | 123 frame size: 2 |
125 parameter count: 1 | 124 parameter count: 1 |
126 bytecode array length: 19 | 125 bytecode array length: 19 |
127 bytecodes: [ | 126 bytecodes: [ |
128 /* 30 E> */ B(StackCheck), | 127 /* 30 E> */ B(StackCheck), |
129 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), | 128 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
130 B(Star), R(1), | 129 B(Mov), R(1), R(0), |
131 B(Star), R(0), | |
132 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), | 130 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), |
133 B(Dec), | 131 B(Dec), |
134 /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), | 132 /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), |
135 /* 70 S> */ B(Return), | 133 /* 70 S> */ B(Return), |
136 ] | 134 ] |
137 constant pool: [ | 135 constant pool: [ |
138 InstanceType::FIXED_ARRAY_TYPE, | 136 InstanceType::FIXED_ARRAY_TYPE, |
139 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 137 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
140 ] | 138 ] |
141 handlers: [ | 139 handlers: [ |
142 ] | 140 ] |
143 | 141 |
144 --- | 142 --- |
145 snippet: " | 143 snippet: " |
146 var name = 'var'; var a = { val: 1 }; return a[name]--; | 144 var name = 'var'; var a = { val: 1 }; return a[name]--; |
147 " | 145 " |
148 frame size: 5 | 146 frame size: 5 |
149 parameter count: 1 | 147 parameter count: 1 |
150 bytecode array length: 28 | 148 bytecode array length: 28 |
151 bytecodes: [ | 149 bytecodes: [ |
152 /* 30 E> */ B(StackCheck), | 150 /* 30 E> */ B(StackCheck), |
153 /* 45 S> */ B(LdaConstant), U8(0), | 151 /* 45 S> */ B(LdaConstant), U8(0), |
154 B(Star), R(0), | 152 B(Star), R(0), |
155 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), | 153 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(2), |
156 B(Star), R(2), | 154 B(Mov), R(2), R(1), |
157 B(Star), R(1), | |
158 /* 72 S> */ B(Ldar), R(0), | 155 /* 72 S> */ B(Ldar), R(0), |
159 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(1), | 156 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(1), |
160 B(ToNumber), R(4), | 157 B(ToNumber), R(4), |
161 B(Dec), | 158 B(Dec), |
162 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), | 159 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), |
163 B(Ldar), R(4), | 160 B(Ldar), R(4), |
164 /* 90 S> */ B(Return), | 161 /* 90 S> */ B(Return), |
165 ] | 162 ] |
166 constant pool: [ | 163 constant pool: [ |
167 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 164 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
168 InstanceType::FIXED_ARRAY_TYPE, | 165 InstanceType::FIXED_ARRAY_TYPE, |
169 ] | 166 ] |
170 handlers: [ | 167 handlers: [ |
171 ] | 168 ] |
172 | 169 |
173 --- | 170 --- |
174 snippet: " | 171 snippet: " |
175 var name = 'var'; var a = { val: 1 }; return ++a[name]; | 172 var name = 'var'; var a = { val: 1 }; return ++a[name]; |
176 " | 173 " |
177 frame size: 3 | 174 frame size: 3 |
178 parameter count: 1 | 175 parameter count: 1 |
179 bytecode array length: 24 | 176 bytecode array length: 24 |
180 bytecodes: [ | 177 bytecodes: [ |
181 /* 30 E> */ B(StackCheck), | 178 /* 30 E> */ B(StackCheck), |
182 /* 45 S> */ B(LdaConstant), U8(0), | 179 /* 45 S> */ B(LdaConstant), U8(0), |
183 B(Star), R(0), | 180 B(Star), R(0), |
184 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), | 181 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(2), |
185 B(Star), R(2), | 182 B(Mov), R(2), R(1), |
186 B(Star), R(1), | |
187 /* 72 S> */ B(Ldar), R(0), | 183 /* 72 S> */ B(Ldar), R(0), |
188 /* 83 E> */ B(LdaKeyedProperty), R(1), U8(1), | 184 /* 83 E> */ B(LdaKeyedProperty), R(1), U8(1), |
189 B(Inc), | 185 B(Inc), |
190 /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), | 186 /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), |
191 /* 90 S> */ B(Return), | 187 /* 90 S> */ B(Return), |
192 ] | 188 ] |
193 constant pool: [ | 189 constant pool: [ |
194 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 190 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
195 InstanceType::FIXED_ARRAY_TYPE, | 191 InstanceType::FIXED_ARRAY_TYPE, |
196 ] | 192 ] |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 B(LdaSmi), U8(2), | 267 B(LdaSmi), U8(2), |
272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(1), | 268 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(1), |
273 /* 84 S> */ B(Return), | 269 /* 84 S> */ B(Return), |
274 ] | 270 ] |
275 constant pool: [ | 271 constant pool: [ |
276 InstanceType::FIXED_ARRAY_TYPE, | 272 InstanceType::FIXED_ARRAY_TYPE, |
277 ] | 273 ] |
278 handlers: [ | 274 handlers: [ |
279 ] | 275 ] |
280 | 276 |
OLD | NEW |