Revision: 9926
Author: [email protected]
Date: Wed Nov 9 03:57:05 2011
Log: MIPS: Enable the V8 profiler on MIPS.
BUG=
TEST=
Review URL: http://codereview.chromium.org/8507008
Patch from Gergely Kis <[email protected]>.
http://code.google.com/p/v8/source/detail?r=9926
Modified:
/branches/bleeding_edge/src/platform-linux.cc
=======================================
--- /branches/bleeding_edge/src/platform-linux.cc Mon Oct 10 07:17:42 2011
+++ /branches/bleeding_edge/src/platform-linux.cc Wed Nov 9 03:57:05 2011
@@ -964,7 +964,6 @@
static void ProfilerSignalHandler(int signal, siginfo_t* info, void*
context) {
-#ifndef V8_HOST_ARCH_MIPS
USE(info);
if (signal != SIGPROF) return;
Isolate* isolate = Isolate::UncheckedCurrent();
@@ -1006,15 +1005,14 @@
sample->pc = reinterpret_cast<Address>(mcontext.arm_pc);
sample->sp = reinterpret_cast<Address>(mcontext.arm_sp);
sample->fp = reinterpret_cast<Address>(mcontext.arm_fp);
-#endif
+#endif // (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 3))
#elif V8_HOST_ARCH_MIPS
- sample.pc = reinterpret_cast<Address>(mcontext.pc);
- sample.sp = reinterpret_cast<Address>(mcontext.gregs[29]);
- sample.fp = reinterpret_cast<Address>(mcontext.gregs[30]);
-#endif
+ sample->pc = reinterpret_cast<Address>(mcontext.pc);
+ sample->sp = reinterpret_cast<Address>(mcontext.gregs[29]);
+ sample->fp = reinterpret_cast<Address>(mcontext.gregs[30]);
+#endif // V8_HOST_ARCH_*
sampler->SampleStack(sample);
sampler->Tick(sample);
-#endif
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev