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

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

Issue 1474713002: dart2js cps: Clean up and avoid processing unreachable code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merge Created 5 years, 1 month 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/cps_ir/cps_ir_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 24b6370024005d7d1c2dc8fe968f434a150321e3..2a7c5c4d45e157f3f8896c95aa8fbf6f8cf2aec0 100644
--- a/pkg/compiler/lib/src/constants/values.dart
+++ b/pkg/compiler/lib/src/constants/values.dart
@@ -375,6 +375,9 @@ class StringConstantValue extends PrimitiveConstantValue {
: this.primitiveValue = value,
this.hashCode = value.slowToString().hashCode;
+ StringConstantValue.fromString(String value)
+ : this(new DartString.literal(value));
+
bool get isString => true;
DartType getType(CoreTypes types) => types.stringType;
@@ -748,4 +751,4 @@ class NonConstantValue extends ConstantValue {
@override
String unparse() => '>>non-constant<<';
-}
+}
« 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