| Index: src/base/logging.cc
|
| diff --git a/src/base/logging.cc b/src/base/logging.cc
|
| index 25d77bb1ec1dc9b9e9e84e3ac2460eb689ac088f..c3f609f98018046b5ab85aa043157b7b3a1a1b65 100644
|
| --- a/src/base/logging.cc
|
| +++ b/src/base/logging.cc
|
| @@ -10,45 +10,14 @@
|
| #elif V8_OS_QNX
|
| # include <backtrace.h>
|
| #endif // V8_LIBC_GLIBC || V8_OS_BSD
|
| -
|
| -#include <cstdio>
|
| -#include <cstdlib>
|
| +#include <stdio.h>
|
| +#include <stdlib.h>
|
|
|
| #include "src/base/platform/platform.h"
|
|
|
| namespace v8 {
|
| namespace base {
|
|
|
| -// Explicit instantiations for commonly used comparisons.
|
| -#define DEFINE_MAKE_CHECK_OP_STRING(type) \
|
| - template std::string* MakeCheckOpString<type, type>( \
|
| - type const&, type const&, char const*);
|
| -DEFINE_MAKE_CHECK_OP_STRING(int)
|
| -DEFINE_MAKE_CHECK_OP_STRING(long) // NOLINT(runtime/int)
|
| -DEFINE_MAKE_CHECK_OP_STRING(long long) // NOLINT(runtime/int)
|
| -DEFINE_MAKE_CHECK_OP_STRING(unsigned int)
|
| -DEFINE_MAKE_CHECK_OP_STRING(unsigned long) // NOLINT(runtime/int)
|
| -DEFINE_MAKE_CHECK_OP_STRING(unsigned long long) // NOLINT(runtime/int)
|
| -DEFINE_MAKE_CHECK_OP_STRING(char const*)
|
| -DEFINE_MAKE_CHECK_OP_STRING(void const*)
|
| -#undef DEFINE_MAKE_CHECK_OP_STRING
|
| -
|
| -
|
| -// Explicit instantiations for floating point checks.
|
| -#define DEFINE_CHECK_OP_IMPL(NAME) \
|
| - template std::string* Check##NAME##Impl<float, float>( \
|
| - float const& lhs, float const& rhs, char const* msg); \
|
| - template std::string* Check##NAME##Impl<double, double>( \
|
| - double const& lhs, double const& rhs, char const* msg);
|
| -DEFINE_CHECK_OP_IMPL(EQ)
|
| -DEFINE_CHECK_OP_IMPL(NE)
|
| -DEFINE_CHECK_OP_IMPL(LE)
|
| -DEFINE_CHECK_OP_IMPL(LT)
|
| -DEFINE_CHECK_OP_IMPL(GE)
|
| -DEFINE_CHECK_OP_IMPL(GT)
|
| -#undef DEFINE_CHECK_OP_IMPL
|
| -
|
| -
|
| // Attempts to dump a backtrace (if supported).
|
| void DumpBacktrace() {
|
| #if V8_LIBC_GLIBC || V8_OS_BSD
|
| @@ -99,8 +68,7 @@ void DumpBacktrace() {
|
| #endif // V8_LIBC_GLIBC || V8_OS_BSD
|
| }
|
|
|
| -} // namespace base
|
| -} // namespace v8
|
| +} } // namespace v8::base
|
|
|
|
|
| // Contains protection against recursive calls (faults while handling faults).
|
|
|