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

Unified Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 1115183002: Add ConstantConstructor to ConstantExpression system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_resolver.dart ('k') | pkg/docgen/lib/src/models/model_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/use_unused_api.dart
diff --git a/pkg/compiler/lib/src/use_unused_api.dart b/pkg/compiler/lib/src/use_unused_api.dart
index dd547592cf57539ddd1cfc69fe7543317f197544..62c1fcb820dc8e40a959117e9551e1318ed5a732 100644
--- a/pkg/compiler/lib/src/use_unused_api.dart
+++ b/pkg/compiler/lib/src/use_unused_api.dart
@@ -12,6 +12,7 @@ import '../compiler.dart' as api;
import 'colors.dart' as colors;
import 'constants/constant_system.dart' as constants;
+import 'constants/expressions.dart' as constants;
import 'constants/values.dart' as constants;
import 'cps_ir/cps_ir_builder.dart' as ir_builder;
import 'cps_ir/cps_ir_builder_task.dart' as ir_builder;
@@ -51,7 +52,7 @@ void main(List<String> arguments) {
useApi();
dart2js.main(arguments);
dart2jslib.isPublicName(null);
- useConstant(null, null);
+ useConstant(null, null, null);
useNode(null);
useUtil(null);
useSetlet(null);
@@ -84,9 +85,12 @@ useApi() {
}
void useConstant(constants.ConstantValue constant,
+ constants.ConstructedConstantExpression constructedConstant,
constants.ConstantSystem cs) {
constant.isObject;
cs.isBool(constant);
+ constructedConstant.computeInstanceType();
+ constructedConstant.computeInstanceFields();
}
void useNode(tree.Node node) {
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_resolver.dart ('k') | pkg/docgen/lib/src/models/model_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698