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

Unified Diff: frog/leg/ssa/nodes.dart

Issue 9126001: Fix Leg test failures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove accidental edit. Created 8 years, 11 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 | frog/leg/ssa/optimize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/nodes.dart
diff --git a/frog/leg/ssa/nodes.dart b/frog/leg/ssa/nodes.dart
index f6234477c32fa9337345f8dbb1f94bdbab66e145..4194e3d2eb742117b8ce7a553cbbee0503baecfc 100644
--- a/frog/leg/ssa/nodes.dart
+++ b/frog/leg/ssa/nodes.dart
@@ -1539,6 +1539,16 @@ class HLoopBranch extends HConditionalBranch {
int get contentEnd() =>
wrappedString.length - (hasRightQuote ? (isMultiLine ? 3 : 1) : 0);
+ /**
+ * Does a conservative test for equality between two quoted strings.
+ * Returns true if the two definitly have the same string.
+ * Returns false if the strings are different, or if it's not possible
+ * to (quickly) determine whether they are equal.
+ */
+ bool definitlyEquals(QuotedString other) {
+ return flags == other.flags && wrappedString == other.wrappedString;
+ }
+
void printOn(StringBuffer buffer) {
int start = contentStart;
int end = contentEnd;
« no previous file with comments | « no previous file | frog/leg/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698