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

Unified Diff: src/hydrogen-instructions.cc

Issue 23717039: Tweak the Better{Left,Right}Operand() heuristic Base URL: git://github.com/v8/v8.git@master
Patch Set: Tune Better{Left,Right}Operand() heuristic Created 7 years, 3 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
« src/hydrogen-instructions.h ('K') | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.cc
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
index 2855e8a1409dc0063eab06e52b21a6e755aa6219..775a1333a99a0beadba1ee7db9428696f5bdde71 100644
--- a/src/hydrogen-instructions.cc
+++ b/src/hydrogen-instructions.cc
@@ -4030,6 +4030,14 @@ bool HValue::HasNonSmiUse() {
}
+bool HValue::UsedBy(HValue* value) {
+ for (HUseIterator it(uses()); !it.Done(); it.Advance()) {
+ if (it.value() == value) return true;
+ }
+ return false;
+}
+
+
// Node-specific verification code is only included in debug mode.
#ifdef DEBUG
« src/hydrogen-instructions.h ('K') | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698