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

Unified Diff: pkg/compiler/lib/src/constants/values.dart

Issue 1934553002: Avoid use of NonConstantValue in SSA (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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 | « no previous file | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/constants/values.dart
diff --git a/pkg/compiler/lib/src/constants/values.dart b/pkg/compiler/lib/src/constants/values.dart
index fd0f5dd763e018decd049fc672bb60bd2fb3dce8..37f5646d7e3600f22f575df233d3153b2273f62e 100644
--- a/pkg/compiler/lib/src/constants/values.dart
+++ b/pkg/compiler/lib/src/constants/values.dart
@@ -159,7 +159,7 @@ class NullConstantValue extends PrimitiveConstantValue {
/** The value a Dart null is compiled to in JavaScript. */
static const String JsNull = "null";
- factory NullConstantValue() => const NullConstantValue._internal();
+ const factory NullConstantValue() = NullConstantValue._internal;
Siggi Cherem (dart-lang) 2016/04/29 20:26:40 I didn't know we were allowed to declare a factory
Johnni Winther 2016/04/30 09:06:02 When they are redirecting we can (I changed that t
const NullConstantValue._internal();
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698