Index: src/platform-freebsd.cc |
diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc |
index 353d165403a9163bf2b2106a1abdb1c0cb855a63..7141483901fad69d7601fd9001c1ad74a196630c 100644 |
--- a/src/platform-freebsd.cc |
+++ b/src/platform-freebsd.cc |
@@ -555,17 +555,17 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { |
ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(context); |
mcontext_t& mcontext = ucontext->uc_mcontext; |
#if V8_HOST_ARCH_IA32 |
- sample.pc = mcontext.mc_eip; |
- sample.sp = mcontext.mc_esp; |
- sample.fp = mcontext.mc_ebp; |
+ sample.pc = reinterpret_cast<Address>(mcontext.mc_eip); |
+ sample.sp = reinterpret_cast<Address>(mcontext.mc_esp); |
+ sample.fp = reinterpret_cast<Address>(mcontext.mc_ebp); |
#elif V8_HOST_ARCH_X64 |
- sample.pc = mcontext.mc_rip; |
- sample.sp = mcontext.mc_rsp; |
- sample.fp = mcontext.mc_rbp; |
+ sample.pc = reinterpret_cast<Address>(mcontext.mc_rip); |
+ sample.sp = reinterpret_cast<Address>(mcontext.mc_rsp); |
+ sample.fp = reinterpret_cast<Address>(mcontext.mc_rbp); |
#elif V8_HOST_ARCH_ARM |
- sample.pc = mcontext.mc_r15; |
- sample.sp = mcontext.mc_r13; |
- sample.fp = mcontext.mc_r11; |
+ sample.pc = reinterpret_cast<Address>(mcontext.mc_r15); |
+ sample.sp = reinterpret_cast<Address>(mcontext.mc_r13); |
+ sample.fp = reinterpret_cast<Address>(mcontext.mc_r11); |
#endif |
active_sampler_->SampleStack(&sample); |
} |