Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/node-matchers.h')
-rw-r--r--deps/v8/src/compiler/node-matchers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/compiler/node-matchers.h b/deps/v8/src/compiler/node-matchers.h
index 8c4e5e76d51..cf0df2d6360 100644
--- a/deps/v8/src/compiler/node-matchers.h
+++ b/deps/v8/src/compiler/node-matchers.h
@@ -6,6 +6,7 @@
#define V8_COMPILER_NODE_MATCHERS_H_
#include <cmath>
+#include <limits>
#include "src/base/compiler-specific.h"
#include "src/codegen/external-reference.h"
@@ -160,7 +161,7 @@ struct IntMatcher final : public ValueMatcher<T, kOpcode> {
}
bool IsNegativePowerOf2() const {
return this->HasValue() && this->Value() < 0 &&
- ((this->Value() == kMinInt) ||
+ ((this->Value() == std::numeric_limits<T>::min()) ||
(-this->Value() & (-this->Value() - 1)) == 0);
}
bool IsNegative() const { return this->HasValue() && this->Value() < 0; }