| Index: src/platform.h
|
| diff --git a/src/platform.h b/src/platform.h
|
| index 8e524aeaf06f356c9a8f79de2daf6aedee023a9f..f94a5266fa44c73415bdbcb6d078ea1a834aa293 100644
|
| --- a/src/platform.h
|
| +++ b/src/platform.h
|
| @@ -93,13 +93,9 @@ inline int lrint(double flt) {
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -double ceiling(double x);
|
| double modulo(double x, double y);
|
|
|
| // Custom implementation of math functions.
|
| -double fast_sin(double input);
|
| -double fast_cos(double input);
|
| -double fast_tan(double input);
|
| double fast_log(double input);
|
| double fast_exp(double input);
|
| double fast_sqrt(double input);
|
| @@ -369,6 +365,26 @@ class OS {
|
| size_t size) {
|
| (*memcopy_uint16_uint8_function)(dest, src, size);
|
| }
|
| +#elif defined(V8_HOST_ARCH_MIPS)
|
| + typedef void (*MemCopyUint8Function)(uint8_t* dest,
|
| + const uint8_t* src,
|
| + size_t size);
|
| + static MemCopyUint8Function memcopy_uint8_function;
|
| + static void MemCopyUint8Wrapper(uint8_t* dest,
|
| + const uint8_t* src,
|
| + size_t chars) {
|
| + memcpy(dest, src, chars);
|
| + }
|
| + // For values < 16, the assembler function is slower than the inlined C code.
|
| + static const int kMinComplexMemCopy = 16;
|
| + static void MemCopy(void* dest, const void* src, size_t size) {
|
| + (*memcopy_uint8_function)(reinterpret_cast<uint8_t*>(dest),
|
| + reinterpret_cast<const uint8_t*>(src),
|
| + size);
|
| + }
|
| + static void MemMove(void* dest, const void* src, size_t size) {
|
| + memmove(dest, src, size);
|
| + }
|
| #else
|
| // Copy memory area to disjoint memory area.
|
| static void MemCopy(void* dest, const void* src, size_t size) {
|
|
|