Lines Matching defs:state

232 void SamplerManager::DoSample(const v8::RegisterState& state) {
246 sampler->SampleStack(state);
351 // Protects the process wide state below.
367 v8::RegisterState state;
368 FillRegisterState(context, &state);
369 SamplerManager::instance()->DoSample(state);
372 void SignalHandler::FillRegisterState(void* context, RegisterState* state) {
382 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_EIP]);
383 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_ESP]);
384 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_EBP]);
386 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_RIP]);
387 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_RSP]);
388 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_RBP]);
393 state->pc = reinterpret_cast<void*>(mcontext.gregs[R15]);
394 state->sp = reinterpret_cast<void*>(mcontext.gregs[R13]);
395 state->fp = reinterpret_cast<void*>(mcontext.gregs[R11]);
396 state->lr = reinterpret_cast<void*>(mcontext.gregs[R14]);
398 state->pc = reinterpret_cast<void*>(mcontext.arm_pc);
399 state->sp = reinterpret_cast<void*>(mcontext.arm_sp);
400 state->fp = reinterpret_cast<void*>(mcontext.arm_fp);
401 state->lr = reinterpret_cast<void*>(mcontext.arm_lr);
404 state->pc = reinterpret_cast<void*>(mcontext.pc);
405 state->sp = reinterpret_cast<void*>(mcontext.sp);
407 state->fp = reinterpret_cast<void*>(mcontext.regs[29]);
409 state->lr = reinterpret_cast<void*>(mcontext.regs[30]);
411 state->pc = reinterpret_cast<void*>(mcontext.pc);
412 state->sp = reinterpret_cast<void*>(mcontext.gregs[29]);
413 state->fp = reinterpret_cast<void*>(mcontext.gregs[30]);
415 state->pc = reinterpret_cast<void*>(mcontext.pc);
416 state->sp = reinterpret_cast<void*>(mcontext.gregs[29]);
417 state->fp = reinterpret_cast<void*>(mcontext.gregs[30]);
419 state->pc = reinterpret_cast<void*>(mcontext.__pc);
420 state->sp = reinterpret_cast<void*>(mcontext.__gregs[3]);
421 state->fp = reinterpret_cast<void*>(mcontext.__gregs[22]);
424 state->pc = reinterpret_cast<void*>(ucontext->uc_mcontext.regs->nip);
425 state->sp = reinterpret_cast<void*>(ucontext->uc_mcontext.regs->gpr[PT_R1]);
426 state->fp = reinterpret_cast<void*>(ucontext->uc_mcontext.regs->gpr[PT_R31]);
427 state->lr = reinterpret_cast<void*>(ucontext->uc_mcontext.regs->link);
430 state->pc = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[32]);
431 state->sp = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[1]);
432 state->fp = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[31]);
433 state->lr = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[36]);
439 state->pc =
442 state->pc = reinterpret_cast<void*>(ucontext->uc_mcontext.psw.addr);
444 state->sp = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[15]);
445 state->fp = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[11]);
446 state->lr = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[14]);
449 state->pc = reinterpret_cast<void*>(mcontext.__gregs[REG_PC]);
450 state->sp = reinterpret_cast<void*>(mcontext.__gregs[REG_SP]);
451 state->fp = reinterpret_cast<void*>(mcontext.__gregs[REG_S0]);
452 state->lr = reinterpret_cast<void*>(mcontext.__gregs[REG_RA]);
458 state->pc = reinterpret_cast<void*>(mcontext->__ss.__pc);
459 state->sp = reinterpret_cast<void*>(mcontext->__ss.__sp);
460 state->fp = reinterpret_cast<void*>(mcontext->__ss.__fp);
463 state->pc = reinterpret_cast<void*>(mcontext->__ss.__rip);
464 state->sp = reinterpret_cast<void*>(mcontext->__ss.__rsp);
465 state->fp = reinterpret_cast<void*>(mcontext->__ss.__rbp);
472 state->pc = reinterpret_cast<void*>(mcontext->__ss.__rip);
473 state->sp = reinterpret_cast<void*>(mcontext->__ss.__rsp);
474 state->fp = reinterpret_cast<void*>(mcontext->__ss.__rbp);
476 state->pc = reinterpret_cast<void*>(mcontext->__ss.__eip);
477 state->sp = reinterpret_cast<void*>(mcontext->__ss.__esp);
478 state->fp = reinterpret_cast<void*>(mcontext->__ss.__ebp);
480 state->pc =
482 state->sp =
484 state->fp =
489 state->pc = reinterpret_cast<void*>(mcontext.mc_eip);
490 state->sp = reinterpret_cast<void*>(mcontext.mc_esp);
491 state->fp = reinterpret_cast<void*>(mcontext.mc_ebp);
493 state->pc = reinterpret_cast<void*>(mcontext.mc_rip);
494 state->sp = reinterpret_cast<void*>(mcontext.mc_rsp);
495 state->fp = reinterpret_cast<void*>(mcontext.mc_rbp);
497 state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_PC]);
498 state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_SP]);
499 state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_FP]);
503 state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_EIP]);
504 state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_ESP]);
505 state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_EBP]);
507 state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_RIP]);
508 state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_RSP]);
509 state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_RBP]);
513 state->pc = reinterpret_cast<void*>(ucontext->sc_eip);
514 state->sp = reinterpret_cast<void*>(ucontext->sc_esp);
515 state->fp = reinterpret_cast<void*>(ucontext->sc_ebp);
517 state->pc = reinterpret_cast<void*>(ucontext->sc_rip);
518 state->sp = reinterpret_cast<void*>(ucontext->sc_rsp);
519 state->fp = reinterpret_cast<void*>(ucontext->sc_rbp);
522 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_PC]);
523 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_SP]);
524 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_FP]);
527 state->pc = reinterpret_cast<void*>(mcontext.cpu.eip);
528 state->sp = reinterpret_cast<void*>(mcontext.cpu.esp);
529 state->fp = reinterpret_cast<void*>(mcontext.cpu.ebp);
531 state->pc = reinterpret_cast<void*>(mcontext.cpu.gpr[ARM_REG_PC]);
532 state->sp = reinterpret_cast<void*>(mcontext.cpu.gpr[ARM_REG_SP]);
533 state->fp = reinterpret_cast<void*>(mcontext.cpu.gpr[ARM_REG_FP]);
536 state->pc = reinterpret_cast<void*>(mcontext.jmp_context.iar);
537 state->sp = reinterpret_cast<void*>(mcontext.jmp_context.gpr[1]);
538 state->fp = reinterpret_cast<void*>(mcontext.jmp_context.gpr[31]);
539 state->lr = reinterpret_cast<void*>(mcontext.jmp_context.lr);
586 // Context used for sampling the register state of the profiled thread.
591 v8::RegisterState state;
593 state.pc = reinterpret_cast<void*>(context.Rip);
594 state.sp = reinterpret_cast<void*>(context.Rsp);
595 state.fp = reinterpret_cast<void*>(context.Rbp);
597 state.pc = reinterpret_cast<void*>(context.Pc);
598 state.sp = reinterpret_cast<void*>(context.Sp);
599 state.fp = reinterpret_cast<void*>(context.Fp);
601 state.pc = reinterpret_cast<void*>(context.Eip);
602 state.sp = reinterpret_cast<void*>(context.Esp);
603 state.fp = reinterpret_cast<void*>(context.Ebp);
605 SampleStack(state);
637 v8::RegisterState state;
639 state.pc = reinterpret_cast<void*>(thread_state.rip);
640 state.sp = reinterpret_cast<void*>(thread_state.rsp);
641 state.fp = reinterpret_cast<void*>(thread_state.rbp);
643 state.pc = reinterpret_cast<void*>(thread_state.pc);
644 state.sp = reinterpret_cast<void*>(thread_state.sp);
645 state.fp = reinterpret_cast<void*>(thread_state.r[29]);
647 SampleStack(state);