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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 1919143002: Store constant variable initializers in elements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 8 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/cps_ir/inline.dart ('k') | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 350118234dee958c63288bf142e2ff9adbd2307f..bec56aa7140863f50bbe80ca3174305c1ae018ed 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -473,11 +473,6 @@ class DartConstantTask extends ConstantCompilerTask
}
@override
- ConstantExpression getConstantForVariable(VariableElement element) {
- return constantCompiler.getConstantForVariable(element);
- }
-
- @override
ConstantExpression getConstantForNode(Node node, TreeElements elements) {
return constantCompiler.getConstantForNode(node, elements);
}
@@ -507,9 +502,10 @@ class DartConstantTask extends ConstantCompilerTask
});
}
- void compileVariable(VariableElement element) {
- measure(() {
- constantCompiler.compileVariable(element);
+ @override
+ ConstantExpression compileVariable(VariableElement element) {
+ return measure(() {
+ return constantCompiler.compileVariable(element);
});
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/inline.dart ('k') | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698