| Index: src/platform-posix.cc
|
| diff --git a/src/platform-posix.cc b/src/platform-posix.cc
|
| index 923cd8700ed9a062c8ed8ad7a505da253ae084dd..0070bdf6a770bb27febdf7808493a6a4339b1182 100644
|
| --- a/src/platform-posix.cc
|
| +++ b/src/platform-posix.cc
|
| @@ -288,12 +288,6 @@ void OS::DebugBreak() {
|
| // ----------------------------------------------------------------------------
|
| // Math functions
|
|
|
| -double ceiling(double x) {
|
| - // Correct buggy 'ceil' on some systems (i.e. FreeBSD, OS X 10.5)
|
| - return (-1.0 < x && x < 0.0) ? -0.0 : ceil(x);
|
| -}
|
| -
|
| -
|
| double modulo(double x, double y) {
|
| return fmod(x, y);
|
| }
|
| @@ -308,9 +302,6 @@ double fast_##name(double x) { \
|
| return (*fast_##name##_function)(x); \
|
| }
|
|
|
| -UNARY_MATH_FUNCTION(sin, CreateTranscendentalFunction(TranscendentalCache::SIN))
|
| -UNARY_MATH_FUNCTION(cos, CreateTranscendentalFunction(TranscendentalCache::COS))
|
| -UNARY_MATH_FUNCTION(tan, CreateTranscendentalFunction(TranscendentalCache::TAN))
|
| UNARY_MATH_FUNCTION(log, CreateTranscendentalFunction(TranscendentalCache::LOG))
|
| UNARY_MATH_FUNCTION(exp, CreateExpFunction())
|
| UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction())
|
| @@ -512,6 +503,12 @@ OS::MemCopyUint8Function CreateMemCopyUint8Function(
|
| OS::MemCopyUint8Function stub);
|
| OS::MemCopyUint16Uint8Function CreateMemCopyUint16Uint8Function(
|
| OS::MemCopyUint16Uint8Function stub);
|
| +
|
| +#elif defined(V8_HOST_ARCH_MIPS)
|
| +OS::MemCopyUint8Function OS::memcopy_uint8_function = &OS::MemCopyUint8Wrapper;
|
| +// Defined in codegen-mips.cc.
|
| +OS::MemCopyUint8Function CreateMemCopyUint8Function(
|
| + OS::MemCopyUint8Function stub);
|
| #endif
|
|
|
|
|
| @@ -526,10 +523,10 @@ void OS::PostSetUp() {
|
| CreateMemCopyUint8Function(&OS::MemCopyUint8Wrapper);
|
| OS::memcopy_uint16_uint8_function =
|
| CreateMemCopyUint16Uint8Function(&OS::MemCopyUint16Uint8Wrapper);
|
| +#elif defined(V8_HOST_ARCH_MIPS)
|
| + OS::memcopy_uint8_function =
|
| + CreateMemCopyUint8Function(&OS::MemCopyUint8Wrapper);
|
| #endif
|
| - init_fast_sin_function();
|
| - init_fast_cos_function();
|
| - init_fast_tan_function();
|
| init_fast_log_function();
|
| // fast_exp is initialized lazily.
|
| init_fast_sqrt_function();
|
|
|