Lines Matching defs:isa
76 static constexpr size_t GetCalleeSaveFrameSize(InstructionSet isa, Runtime::CalleeSaveType type) {
78 return (isa == kArm || isa == kThumb2) ? arm::ArmCalleeSaveFrameSize(type) :
79 isa == kArm64 ? arm64::Arm64CalleeSaveFrameSize(type) :
80 isa == kMips ? mips::MipsCalleeSaveFrameSize(type) :
81 isa == kMips64 ? mips64::Mips64CalleeSaveFrameSize(type) :
82 isa == kX86 ? x86::X86CalleeSaveFrameSize(type) :
83 isa == kX86_64 ? x86_64::X86_64CalleeSaveFrameSize(type) :
84 isa == kNone ? (LOG(FATAL) << "kNone has no frame size", 0) :
85 (LOG(FATAL) << "Unknown instruction set" << isa, 0);
89 static constexpr size_t GetConstExprPointerSize(InstructionSet isa) {
91 return (isa == kArm || isa == kThumb2) ? kArmPointerSize :
92 isa == kArm64 ? kArm64PointerSize :
93 isa == kMips ? kMipsPointerSize :
94 isa == kMips64 ? kMips64PointerSize :
95 isa == kX86 ? kX86PointerSize :
96 isa == kX86_64 ? kX86_64PointerSize :
97 isa == kNone ? (LOG(FATAL) << "kNone has no pointer size", 0) :
98 (LOG(FATAL) << "Unknown instruction set" << isa, 0);
102 static constexpr size_t GetCalleeSaveReturnPcOffset(InstructionSet isa,
104 return GetCalleeSaveFrameSize(isa, type) - GetConstExprPointerSize(isa);