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

Unified Diff: pkg/compiler/lib/src/cps_ir/inline.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
Index: pkg/compiler/lib/src/cps_ir/inline.dart
diff --git a/pkg/compiler/lib/src/cps_ir/inline.dart b/pkg/compiler/lib/src/cps_ir/inline.dart
index 9454e38a336ad2616fae0db7dfec8bc7fbad0d5b..89af4dc50fc93c3d0b5bca24b9332565026afd7c 100644
--- a/pkg/compiler/lib/src/cps_ir/inline.dart
+++ b/pkg/compiler/lib/src/cps_ir/inline.dart
@@ -377,7 +377,7 @@ class InliningVisitor extends TrampolineRecursiveVisitor {
++nameIndex;
} else {
Constant defaultValue = cps.makeConstant(
- backend.constants.getConstantValueForVariable(formal));
+ backend.constants.getConstantValue(formal.constant));
defaultValue.type = typeSystem.getParameterType(formal);
arguments.add(defaultValue);
}
@@ -391,7 +391,7 @@ class InliningVisitor extends TrampolineRecursiveVisitor {
arguments.add(parameters[parameterIndex++]);
} else {
Constant defaultValue = cps.makeConstant(
- backend.constants.getConstantValueForVariable(formal));
+ backend.constants.getConstantValue(formal.constant));
defaultValue.type = typeSystem.getParameterType(formal);
arguments.add(defaultValue);
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698