Index: src/compiler/operator.cc |
diff --git a/src/compiler/operator.cc b/src/compiler/operator.cc |
index c8687f4304817669cfdefdc2b30a91dc733880b4..e0c7ca369dafa3c0c33c4fc3ac43c0f649b8da66 100644 |
--- a/src/compiler/operator.cc |
+++ b/src/compiler/operator.cc |
@@ -10,13 +10,16 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
+namespace { |
template <typename N> |
-static inline N CheckRange(size_t val) { |
- CHECK(val <= std::numeric_limits<N>::max()); |
+V8_INLINE N CheckRange(size_t val) { |
+ CHECK_LE(val, std::numeric_limits<N>::max()); |
return static_cast<N>(val); |
} |
+} // namespace |
+ |
Operator::Operator(Opcode opcode, Properties properties, const char* mnemonic, |
size_t value_in, size_t effect_in, size_t control_in, |