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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart

Issue 171873002: Fix for interpolation codegen bug (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
index ea74d969dcd0434bc89d1a0c2f3093ef4f74facd..e037bcdbf0065e2959ba6d787a971ba0e7dff6a3 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
@@ -968,6 +968,11 @@ abstract class HInstruction implements Spannable {
}
bool isString(Compiler compiler) {
sra1 2014/02/19 03:06:22 isString now matches the other isXXX methods with
+ return instructionType.containsOnlyString(compiler)
+ && !instructionType.isNullable;
+ }
+
+ bool isStringOrNull(Compiler compiler) {
return instructionType.containsOnlyString(compiler);
}

Powered by Google App Engine
This is Rietveld 408576698