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 const VERBOSE_OPTIMIZER_HINTS = false; | 7 const VERBOSE_OPTIMIZER_HINTS = false; |
8 | 8 |
9 class JavaScriptItemCompilationContext extends ItemCompilationContext { | 9 class JavaScriptItemCompilationContext extends ItemCompilationContext { |
10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); | 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); |
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1562 symbolsUsed.add(name.substring(0, name.length - 1)); | 1562 symbolsUsed.add(name.substring(0, name.length - 1)); |
1563 } | 1563 } |
1564 } | 1564 } |
1565 | 1565 |
1566 /// Called when [:new Symbol(...):] is seen. | 1566 /// Called when [:new Symbol(...):] is seen. |
1567 void registerNewSymbol(TreeElements elements) { | 1567 void registerNewSymbol(TreeElements elements) { |
1568 } | 1568 } |
1569 | 1569 |
1570 /// Called when resolving the `Symbol` constructor. | 1570 /// Called when resolving the `Symbol` constructor. |
1571 void registerSymbolConstructor(TreeElements elements) { | 1571 void registerSymbolConstructor(TreeElements elements) { |
1572 // Make sure that collection_dev.Symbol.validated is registered. | 1572 // Make sure that _internals.Symbol.validated is registered. |
1573 assert(compiler.symbolValidatedConstructor != null); | 1573 assert(compiler.symbolValidatedConstructor != null); |
1574 enqueueInResolution(compiler.symbolValidatedConstructor, elements); | 1574 enqueueInResolution(compiler.symbolValidatedConstructor, elements); |
1575 } | 1575 } |
1576 | 1576 |
1577 /// Should [element] (a getter) be retained for reflection? | 1577 /// Should [element] (a getter) be retained for reflection? |
1578 bool shouldRetainGetter(Element element) => isNeededForReflection(element); | 1578 bool shouldRetainGetter(Element element) => isNeededForReflection(element); |
1579 | 1579 |
1580 /// Should [element] (a setter) be retained for reflection? | 1580 /// Should [element] (a setter) be retained for reflection? |
1581 bool shouldRetainSetter(Element element) => isNeededForReflection(element); | 1581 bool shouldRetainSetter(Element element) => isNeededForReflection(element); |
1582 | 1582 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1873 copy(constant.values); | 1873 copy(constant.values); |
1874 copy(constant.protoValue); | 1874 copy(constant.protoValue); |
1875 copy(constant); | 1875 copy(constant); |
1876 } | 1876 } |
1877 | 1877 |
1878 void visitConstructed(ConstructedConstant constant) { | 1878 void visitConstructed(ConstructedConstant constant) { |
1879 copy(constant.fields); | 1879 copy(constant.fields); |
1880 copy(constant); | 1880 copy(constant); |
1881 } | 1881 } |
1882 } | 1882 } |
OLD | NEW |