diff options
author | Andreas Gampe <agampe@google.com> | 2014-04-30 18:28:55 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-04-30 18:28:55 -0700 |
commit | b132ec5bba1a14d77fa11574df8dc593ae12a643 (patch) | |
tree | dec34c98da677d6e628604f0bc3502645839a6f1 /runtime/arch/mips | |
parent | be4706907e226959623c0fb4937cf3979f440a97 (diff) | |
download | art-b132ec5bba1a14d77fa11574df8dc593ae12a643.zip art-b132ec5bba1a14d77fa11574df8dc593ae12a643.tar.gz art-b132ec5bba1a14d77fa11574df8dc593ae12a643.tar.bz2 |
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
Diffstat (limited to 'runtime/arch/mips')
-rw-r--r-- | runtime/arch/mips/asm_support_mips.h | 3 |
1 files changed, 3 insertions, 0 deletions
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_ |