Index: src/compiler/node-matchers.h |
diff --git a/src/compiler/node-matchers.h b/src/compiler/node-matchers.h |
index f77e7b073c6087b3db1ca9b6063ff3d507461de6..19089c5d6c4219fc085e37547f7fd69980f73273 100644 |
--- a/src/compiler/node-matchers.h |
+++ b/src/compiler/node-matchers.h |
@@ -128,6 +128,7 @@ struct IntMatcher final : public ValueMatcher<T, kOpcode> { |
return this->HasValue() && this->Value() < 0 && |
(-this->Value() & (-this->Value() - 1)) == 0; |
} |
+ bool IsNegative() const { return this->HasValue() && this->Value() < 0; } |
}; |
typedef IntMatcher<int32_t, IrOpcode::kInt32Constant> Int32Matcher; |