summaryrefslogtreecommitdiffstats
path: root/runtime/arch/instruction_set.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/arch/instruction_set.h')
-rw-r--r--runtime/arch/instruction_set.h4
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: