diff options
Diffstat (limited to 'vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp')
-rw-r--r-- | vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp b/vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp index 8ab956ec7..5188417c9 100644 --- a/vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp +++ b/vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp @@ -62,11 +62,11 @@ bool dvmCompilerArchVariantInit(void) #endif /* Codegen-specific assumptions */ - assert(offsetof(ClassObject, vtable) < 128 && - (offsetof(ClassObject, vtable) & 0x3) == 0); - assert(offsetof(ArrayObject, length) < 128 && - (offsetof(ArrayObject, length) & 0x3) == 0); - assert(offsetof(ArrayObject, contents) < 256); + assert(OFFSETOF_MEMBER(ClassObject, vtable) < 128 && + (OFFSETOF_MEMBER(ClassObject, vtable) & 0x3) == 0); + assert(OFFSETOF_MEMBER(ArrayObject, length) < 128 && + (OFFSETOF_MEMBER(ArrayObject, length) & 0x3) == 0); + assert(OFFSETOF_MEMBER(ArrayObject, contents) < 256); /* Up to 5 args are pushed on top of FP - sizeofStackSaveArea */ assert(sizeof(StackSaveArea) < 236); |