Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 3c7bf5064b1683c2c8609a52ff6057d5eadda29d..9b511992489705367a04cf2372321c40bd8fb6fe 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -302,6 +302,12 @@ bool HBasicBlock::Dominates(HBasicBlock* other) const { |
} |
+bool HBasicBlock::EqualToOrDominates(HBasicBlock* other) const { |
+ if (this == other) return true; |
+ return Dominates(other); |
+} |
+ |
+ |
int HBasicBlock::LoopNestingDepth() const { |
const HBasicBlock* current = this; |
int result = (current->IsLoopHeader()) ? 1 : 0; |