Index: src/platform-linux.cc |
=================================================================== |
--- src/platform-linux.cc (revision 3798) |
+++ src/platform-linux.cc (working copy) |
@@ -151,11 +151,12 @@ |
// On EABI ARM targets this is required for fp correctness in the |
// runtime system. |
return 8; |
-#else |
+#elif V8_TARGET_ARCH_MIPS |
+ return 8; |
+#endif |
// With gcc 4.4 the tree vectorization optimiser can generate code |
// that requires 16 byte alignment such as movdqa on x86. |
return 16; |
-#endif |
} |
@@ -262,6 +263,8 @@ |
// which is the architecture of generated code). |
#if defined(__arm__) || defined(__thumb__) |
asm("bkpt 0"); |
+#elif defined(__mips__) |
+ asm("break"); |
#else |
asm("int $3"); |
#endif |
@@ -713,6 +716,7 @@ |
static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { |
+#ifndef V8_HOST_ARCH_MIPS |
USE(info); |
if (signal != SIGPROF) return; |
if (active_sampler_ == NULL) return; |
@@ -743,6 +747,9 @@ |
sample.sp = reinterpret_cast<Address>(mcontext.arm_sp); |
sample.fp = reinterpret_cast<Address>(mcontext.arm_fp); |
#endif |
+#elif V8_HOST_ARCH_MIPS |
+ // Implement this on MIPS. |
+ UNIMPLEMENTED(); |
#endif |
if (IsVmThread()) |
active_sampler_->SampleStack(&sample); |
@@ -752,6 +759,7 @@ |
sample.state = Logger::state(); |
active_sampler_->Tick(&sample); |
+#endif |
} |