Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index ce3816e865bf06fdf19c59d0c2180a6f2f503379..494a96386e15e165ae517734b283b13337ce594b 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -397,6 +397,18 @@ bool HValue::CheckUsesForFlag(Flag f) { |
} |
+bool HValue::CheckUsesForFlag(Flag f, HValue** value) { |
+ for (HUseIterator it(uses()); !it.Done(); it.Advance()) { |
+ if (it.value()->IsSimulate()) continue; |
+ if (!it.value()->CheckFlag(f)) { |
+ *value = it.value(); |
+ return false; |
+ } |
+ } |
+ return true; |
+} |
+ |
+ |
bool HValue::HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) { |
bool return_value = false; |
for (HUseIterator it(uses()); !it.Done(); it.Advance()) { |