From b132ec5bba1a14d77fa11574df8dc593ae12a643 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 30 Apr 2014 18:28:55 -0700 Subject: Add heap reference size to the checks in arch_test As we will potentially make heap references larger than 32b on 64b systems at some point, add a constant to the .h files that describes what the current assembly implementation assumes about the size of heap references, and check whether that agrees with sizeof. Change-Id: I75ffd7e2b59891ec36977fd831a8d5faac69c76d --- runtime/arch/mips/asm_support_mips.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/arch/mips') diff --git a/runtime/arch/mips/asm_support_mips.h b/runtime/arch/mips/asm_support_mips.h index 2b4a745..4db5ea6 100644 --- a/runtime/arch/mips/asm_support_mips.h +++ b/runtime/arch/mips/asm_support_mips.h @@ -30,4 +30,7 @@ #define FRAME_SIZE_REFS_ONLY_CALLEE_SAVE 64 #define FRAME_SIZE_REFS_AND_ARGS_CALLEE_SAVE 64 +// Expected size of a heap reference +#define HEAP_REFERENCE_SIZE 4 + #endif // ART_RUNTIME_ARCH_MIPS_ASM_SUPPORT_MIPS_H_ -- cgit v1.1