OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of js_backend; | 5 part of js_backend; |
6 | 6 |
7 class JavaScriptItemCompilationContext extends ItemCompilationContext { | 7 class JavaScriptItemCompilationContext extends ItemCompilationContext { |
8 final Set<HInstruction> boundsChecked; | 8 final Set<HInstruction> boundsChecked; |
9 | 9 |
10 JavaScriptItemCompilationContext() | 10 JavaScriptItemCompilationContext() |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 ClassElement jsMutableIndexableClass; | 183 ClassElement jsMutableIndexableClass; |
184 | 184 |
185 ClassElement jsMutableArrayClass; | 185 ClassElement jsMutableArrayClass; |
186 ClassElement jsFixedArrayClass; | 186 ClassElement jsFixedArrayClass; |
187 ClassElement jsExtendableArrayClass; | 187 ClassElement jsExtendableArrayClass; |
188 | 188 |
189 Element jsIndexableLength; | 189 Element jsIndexableLength; |
190 Element jsArrayRemoveLast; | 190 Element jsArrayRemoveLast; |
191 Element jsArrayAdd; | 191 Element jsArrayAdd; |
192 Element jsStringSplit; | 192 Element jsStringSplit; |
193 Element jsStringConcat; | |
194 Element jsStringToString; | 193 Element jsStringToString; |
| 194 Element jsStringOperatorAdd; |
195 Element objectEquals; | 195 Element objectEquals; |
196 | 196 |
197 ClassElement typeLiteralClass; | 197 ClassElement typeLiteralClass; |
198 ClassElement mapLiteralClass; | 198 ClassElement mapLiteralClass; |
199 ClassElement constMapLiteralClass; | 199 ClassElement constMapLiteralClass; |
200 | 200 |
201 Element getInterceptorMethod; | 201 Element getInterceptorMethod; |
202 Element interceptedNames; | 202 Element interceptedNames; |
203 | 203 |
204 /** | 204 /** |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 | 607 |
608 jsArrayClass.ensureResolved(compiler); | 608 jsArrayClass.ensureResolved(compiler); |
609 jsArrayRemoveLast = compiler.lookupElementIn( | 609 jsArrayRemoveLast = compiler.lookupElementIn( |
610 jsArrayClass, const SourceString('removeLast')); | 610 jsArrayClass, const SourceString('removeLast')); |
611 jsArrayAdd = compiler.lookupElementIn( | 611 jsArrayAdd = compiler.lookupElementIn( |
612 jsArrayClass, const SourceString('add')); | 612 jsArrayClass, const SourceString('add')); |
613 | 613 |
614 jsStringClass.ensureResolved(compiler); | 614 jsStringClass.ensureResolved(compiler); |
615 jsStringSplit = compiler.lookupElementIn( | 615 jsStringSplit = compiler.lookupElementIn( |
616 jsStringClass, const SourceString('split')); | 616 jsStringClass, const SourceString('split')); |
617 jsStringConcat = compiler.lookupElementIn( | 617 jsStringOperatorAdd = compiler.lookupElementIn( |
618 jsStringClass, const SourceString('concat')); | 618 jsStringClass, const SourceString('+')); |
619 jsStringToString = compiler.lookupElementIn( | 619 jsStringToString = compiler.lookupElementIn( |
620 jsStringClass, const SourceString('toString')); | 620 jsStringClass, const SourceString('toString')); |
621 | 621 |
622 typeLiteralClass = compiler.findHelper(const SourceString('TypeImpl')); | 622 typeLiteralClass = compiler.findHelper(const SourceString('TypeImpl')); |
623 mapLiteralClass = | 623 mapLiteralClass = |
624 compiler.coreLibrary.find(const SourceString('LinkedHashMap')); | 624 compiler.coreLibrary.find(const SourceString('LinkedHashMap')); |
625 constMapLiteralClass = | 625 constMapLiteralClass = |
626 compiler.findHelper(const SourceString('ConstantMap')); | 626 compiler.findHelper(const SourceString('ConstantMap')); |
627 | 627 |
628 objectEquals = compiler.lookupElementIn( | 628 objectEquals = compiler.lookupElementIn( |
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1779 copy(constant.values); | 1779 copy(constant.values); |
1780 copy(constant.protoValue); | 1780 copy(constant.protoValue); |
1781 copy(constant); | 1781 copy(constant); |
1782 } | 1782 } |
1783 | 1783 |
1784 void visitConstructed(ConstructedConstant constant) { | 1784 void visitConstructed(ConstructedConstant constant) { |
1785 copy(constant.fields); | 1785 copy(constant.fields); |
1786 copy(constant); | 1786 copy(constant); |
1787 } | 1787 } |
1788 } | 1788 } |
OLD | NEW |