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

Unified Diff: src/hydrogen-instructions.cc

Issue 8334021: Recognize special comparisons via pattern matching on the hydrogen graph, 2nd attempt. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 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: src/hydrogen-instructions.cc
===================================================================
--- src/hydrogen-instructions.cc (revision 9687)
+++ src/hydrogen-instructions.cc (working copy)
@@ -787,6 +787,16 @@
}
+HValue* HConstant::Canonicalize() {
+ return HasNoUses()&& !IsBlockEntry() ? NULL : this;
Kevin Millikin (Chromium) 2011/10/19 07:24:41 Missing a space before &&, also below.
Sven Panne 2011/10/19 07:33:32 Done.
+}
+
+
+HValue* HTypeof::Canonicalize() {
+ return HasNoUses()&& !IsBlockEntry() ? NULL : this;
+}
+
+
void HTypeof::PrintDataTo(StringStream* stream) {
value()->PrintNameTo(stream);
}

Powered by Google App Engine
This is Rietveld 408576698