Home | History | Annotate | Download | only in libsampler

Lines Matching refs:state

275   void DoSample(const v8::RegisterState& state) {
290 sampler->SampleStack(state);
390 // Protects the process wide state below.
407 v8::RegisterState state;
408 FillRegisterState(context, &state);
409 SamplerManager::instance()->DoSample(state);
412 void SignalHandler::FillRegisterState(void* context, RegisterState* state) {
420 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_EIP]);
421 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_ESP]);
422 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_EBP]);
424 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_RIP]);
425 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_RSP]);
426 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_RBP]);
431 state->pc = reinterpret_cast<void*>(mcontext.gregs[R15]);
432 state->sp = reinterpret_cast<void*>(mcontext.gregs[R13]);
433 state->fp = reinterpret_cast<void*>(mcontext.gregs[R11]);
435 state->pc = reinterpret_cast<void*>(mcontext.arm_pc);
436 state->sp = reinterpret_cast<void*>(mcontext.arm_sp);
437 state->fp = reinterpret_cast<void*>(mcontext.arm_fp);
440 state->pc = reinterpret_cast<void*>(mcontext.pc);
441 state->sp = reinterpret_cast<void*>(mcontext.sp);
443 state->fp = reinterpret_cast<void*>(mcontext.regs[29]);
445 state->pc = reinterpret_cast<void*>(mcontext.pc);
446 state->sp = reinterpret_cast<void*>(mcontext.gregs[29]);
447 state->fp = reinterpret_cast<void*>(mcontext.gregs[30]);
449 state->pc = reinterpret_cast<void*>(mcontext.pc);
450 state->sp = reinterpret_cast<void*>(mcontext.gregs[29]);
451 state->fp = reinterpret_cast<void*>(mcontext.gregs[30]);
453 state->pc = reinterpret_cast<void*>(ucontext->uc_mcontext.regs->nip);
454 state->sp =
456 state->fp =
462 state->pc =
465 state->pc = reinterpret_cast<void*>(ucontext->uc_mcontext.psw.addr);
467 state->sp = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[15]);
468 state->fp = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[11]);
473 state->pc = reinterpret_cast<void*>(mcontext->__ss.__rip);
474 state->sp = reinterpret_cast<void*>(mcontext->__ss.__rsp);
475 state->fp = reinterpret_cast<void*>(mcontext->__ss.__rbp);
477 state->pc = reinterpret_cast<void*>(mcontext->ss.rip);
478 state->sp = reinterpret_cast<void*>(mcontext->ss.rsp);
479 state->fp = reinterpret_cast<void*>(mcontext->ss.rbp);
483 state->pc = reinterpret_cast<void*>(mcontext->__ss.__eip);
484 state->sp = reinterpret_cast<void*>(mcontext->__ss.__esp);
485 state->fp = reinterpret_cast<void*>(mcontext->__ss.__ebp);
487 state->pc = reinterpret_cast<void*>(mcontext->ss.eip);
488 state->sp = reinterpret_cast<void*>(mcontext->ss.esp);
489 state->fp = reinterpret_cast<void*>(mcontext->ss.ebp);
494 state->pc = reinterpret_cast<void*>(mcontext.mc_eip);
495 state->sp = reinterpret_cast<void*>(mcontext.mc_esp);
496 state->fp = reinterpret_cast<void*>(mcontext.mc_ebp);
498 state->pc = reinterpret_cast<void*>(mcontext.mc_rip);
499 state->sp = reinterpret_cast<void*>(mcontext.mc_rsp);
500 state->fp = reinterpret_cast<void*>(mcontext.mc_rbp);
502 state->pc = reinterpret_cast<void*>(mcontext.mc_r15);
503 state->sp = reinterpret_cast<void*>(mcontext.mc_r13);
504 state->fp = reinterpret_cast<void*>(mcontext.mc_r11);
508 state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_EIP]);
509 state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_ESP]);
510 state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_EBP]);
512 state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_RIP]);
513 state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_RSP]);
514 state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_RBP]);
518 state->pc = reinterpret_cast<void*>(ucontext->sc_eip);
519 state->sp = reinterpret_cast<void*>(ucontext->sc_esp);
520 state->fp = reinterpret_cast<void*>(ucontext->sc_ebp);
522 state->pc = reinterpret_cast<void*>(ucontext->sc_rip);
523 state->sp = reinterpret_cast<void*>(ucontext->sc_rsp);
524 state->fp = reinterpret_cast<void*>(ucontext->sc_rbp);
527 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_PC]);
528 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_SP]);
529 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_FP]);
532 state->pc = reinterpret_cast<void*>(mcontext.cpu.eip);
533 state->sp = reinterpret_cast<void*>(mcontext.cpu.esp);
534 state->fp = reinterpret_cast<void*>(mcontext.cpu.ebp);
536 state->pc = reinterpret_cast<void*>(mcontext.cpu.gpr[ARM_REG_PC]);
537 state->sp = reinterpret_cast<void*>(mcontext.cpu.gpr[ARM_REG_SP]);
538 state->fp = reinterpret_cast<void*>(mcontext.cpu.gpr[ARM_REG_FP]);
541 state->pc = reinterpret_cast<void*>(mcontext.jmp_context.iar);
542 state->sp = reinterpret_cast<void*>(mcontext.jmp_context.gpr[1]);
543 state->fp = reinterpret_cast<void*>(mcontext.jmp_context.gpr[31]);
640 // Context used for sampling the register state of the profiled thread.
645 v8::RegisterState state;
647 state.pc = reinterpret_cast<void*>(context.Rip);
648 state.sp = reinterpret_cast<void*>(context.Rsp);
649 state.fp = reinterpret_cast<void*>(context.Rbp);
651 state.pc = reinterpret_cast<void*>(context.Eip);
652 state.sp = reinterpret_cast<void*>(context.Esp);
653 state.fp = reinterpret_cast<void*>(context.Ebp);
655 SampleStack(state);