diff options
author | Brian Carlstrom <bdc@google.com> | 2013-08-27 17:31:03 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-10-28 00:06:03 -0700 |
commit | ba150c37d582eeeb8c11ba5245edc281cf31793c (patch) | |
tree | ca12cf82602e4b78b2a6ca463e9d0e35fc5e3ff6 /runtime/globals.h | |
parent | 3c2a6e2468e3e519ade6c3cfcaad7cd34243cdf1 (diff) | |
download | art-ba150c37d582eeeb8c11ba5245edc281cf31793c.zip art-ba150c37d582eeeb8c11ba5245edc281cf31793c.tar.gz art-ba150c37d582eeeb8c11ba5245edc281cf31793c.tar.bz2 |
Omit OatMethodOffsets for classes without compiled code
Change-Id: If0d290f4aebc778ff12d8fed017c270ad2ac3220
Diffstat (limited to 'runtime/globals.h')
-rw-r--r-- | runtime/globals.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/runtime/globals.h b/runtime/globals.h index c397494..31574ff 100644 --- a/runtime/globals.h +++ b/runtime/globals.h @@ -30,30 +30,30 @@ const size_t KB = 1024; const size_t MB = KB * KB; const size_t GB = KB * KB * KB; -const int kWordSize = sizeof(word); -const int kPointerSize = sizeof(void*); +const size_t kWordSize = sizeof(word); +const size_t kPointerSize = sizeof(void*); -const int kBitsPerByte = 8; -const int kBitsPerByteLog2 = 3; +const size_t kBitsPerByte = 8; +const size_t kBitsPerByteLog2 = 3; const int kBitsPerWord = kWordSize * kBitsPerByte; -const int kWordHighBitMask = 1 << (kBitsPerWord - 1); +const size_t kWordHighBitMask = 1 << (kBitsPerWord - 1); // Required stack alignment -const int kStackAlignment = 16; +const size_t kStackAlignment = 16; // Required object alignment -const int kObjectAlignment = 8; +const size_t kObjectAlignment = 8; // ARM instruction alignment. ARM processors require code to be 4-byte aligned, // but ARM ELF requires 8.. -const int kArmAlignment = 8; +const size_t kArmAlignment = 8; // MIPS instruction alignment. MIPS processors require code to be 4-byte aligned. // TODO: Can this be 4? -const int kMipsAlignment = 8; +const size_t kMipsAlignment = 8; // X86 instruction alignment. This is the recommended alignment for maximum performance. -const int kX86Alignment = 16; +const size_t kX86Alignment = 16; // System page size. We check this against sysconf(_SC_PAGE_SIZE) at runtime, but use a simple // compile-time constant so the compiler can generate better code. |