Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart

Issue 1521553003: dart2js cps: Replace GetLazyStatic with GetStatic. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove obsolete comment Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698