| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library dart2js.ir_builder_task; | 5 library dart2js.ir_builder_task; |
| 6 | 6 |
| 7 import '../closure.dart' as closurelib; | 7 import '../closure.dart' as closurelib; |
| 8 import '../closure.dart' hide ClosureScope; | 8 import '../closure.dart' hide ClosureScope; |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/names.dart' show | 10 import '../common/names.dart' show |
| (...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 Element setter, | 1718 Element setter, |
| 1719 CompoundSetter setterKind, | 1719 CompoundSetter setterKind, |
| 1720 CompoundRhs rhs, | 1720 CompoundRhs rhs, |
| 1721 arg) { | 1721 arg) { |
| 1722 return translateCompounds( | 1722 return translateCompounds( |
| 1723 node, | 1723 node, |
| 1724 getValue: () { | 1724 getValue: () { |
| 1725 switch (getterKind) { | 1725 switch (getterKind) { |
| 1726 case CompoundGetter.FIELD: | 1726 case CompoundGetter.FIELD: |
| 1727 SourceInformation src = sourceInformationBuilder.buildGet(node); | 1727 SourceInformation src = sourceInformationBuilder.buildGet(node); |
| 1728 return irBuilder.buildStaticFieldGet(getter, src); | 1728 return buildStaticFieldGet(getter, src); |
| 1729 case CompoundGetter.GETTER: | 1729 case CompoundGetter.GETTER: |
| 1730 return irBuilder.buildStaticGetterGet( | 1730 return irBuilder.buildStaticGetterGet( |
| 1731 getter, sourceInformationBuilder.buildGet(node)); | 1731 getter, sourceInformationBuilder.buildGet(node)); |
| 1732 case CompoundGetter.METHOD: | 1732 case CompoundGetter.METHOD: |
| 1733 return irBuilder.buildStaticFunctionGet(getter); | 1733 return irBuilder.buildStaticFunctionGet(getter); |
| 1734 case CompoundGetter.UNRESOLVED: | 1734 case CompoundGetter.UNRESOLVED: |
| 1735 return buildStaticNoSuchGetter(getter); | 1735 return buildStaticNoSuchGetter(getter); |
| 1736 } | 1736 } |
| 1737 }, | 1737 }, |
| 1738 rhs: rhs, | 1738 rhs: rhs, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1756 Element setter, | 1756 Element setter, |
| 1757 CompoundSetter setterKind, | 1757 CompoundSetter setterKind, |
| 1758 ast.Node rhs, | 1758 ast.Node rhs, |
| 1759 _) { | 1759 _) { |
| 1760 return translateSetIfNull( | 1760 return translateSetIfNull( |
| 1761 node, | 1761 node, |
| 1762 getValue: () { | 1762 getValue: () { |
| 1763 switch (getterKind) { | 1763 switch (getterKind) { |
| 1764 case CompoundGetter.FIELD: | 1764 case CompoundGetter.FIELD: |
| 1765 SourceInformation src = sourceInformationBuilder.buildGet(node); | 1765 SourceInformation src = sourceInformationBuilder.buildGet(node); |
| 1766 return irBuilder.buildStaticFieldGet(getter, src); | 1766 return buildStaticFieldGet(getter, src); |
| 1767 case CompoundGetter.GETTER: | 1767 case CompoundGetter.GETTER: |
| 1768 return irBuilder.buildStaticGetterGet( | 1768 return irBuilder.buildStaticGetterGet( |
| 1769 getter, sourceInformationBuilder.buildGet(node)); | 1769 getter, sourceInformationBuilder.buildGet(node)); |
| 1770 case CompoundGetter.METHOD: | 1770 case CompoundGetter.METHOD: |
| 1771 return irBuilder.buildStaticFunctionGet(getter); | 1771 return irBuilder.buildStaticFunctionGet(getter); |
| 1772 case CompoundGetter.UNRESOLVED: | 1772 case CompoundGetter.UNRESOLVED: |
| 1773 return buildStaticNoSuchGetter(getter); | 1773 return buildStaticNoSuchGetter(getter); |
| 1774 } | 1774 } |
| 1775 }, | 1775 }, |
| 1776 rhs: rhs, | 1776 rhs: rhs, |
| (...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3652 callStructure = translateStaticArguments(argumentsNode, function, | 3652 callStructure = translateStaticArguments(argumentsNode, function, |
| 3653 callStructure, arguments); | 3653 callStructure, arguments); |
| 3654 return irBuilder.buildStaticFunctionInvocation(function, | 3654 return irBuilder.buildStaticFunctionInvocation(function, |
| 3655 callStructure, | 3655 callStructure, |
| 3656 arguments, | 3656 arguments, |
| 3657 sourceInformation: | 3657 sourceInformation: |
| 3658 sourceInformationBuilder.buildCall(node, node.selector)); | 3658 sourceInformationBuilder.buildCall(node, node.selector)); |
| 3659 } | 3659 } |
| 3660 } | 3660 } |
| 3661 } | 3661 } |
| OLD | NEW |