diff options
Diffstat (limited to 'runtime/arch/instruction_set.h')
-rw-r--r-- | runtime/arch/instruction_set.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/arch/instruction_set.h b/runtime/arch/instruction_set.h index 46622eb37d..e413880094 100644 --- a/runtime/arch/instruction_set.h +++ b/runtime/arch/instruction_set.h @@ -127,6 +127,10 @@ static inline bool Is64BitInstructionSet(InstructionSet isa) { } } +static inline size_t InstructionSetPointerSize(InstructionSet isa) { + return Is64BitInstructionSet(isa) ? 8U : 4U; +} + static inline size_t GetBytesPerGprSpillLocation(InstructionSet isa) { switch (isa) { case kArm: |