From bda1d606f2d31086874b68edd9254e3817d8049c Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 29 Aug 2016 17:43:45 -0700 Subject: ART: Detach libart-disassembler from libart Some more intrusive changes than I would have liked, as long as ART logging is different from libbase logging. Fix up some includes. Bug: 15436106 Bug: 31338270 Test: m test-art-host Change-Id: I9fbe4b85b2d74e079a4981f3aec9af63b163a461 --- runtime/utils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'runtime/utils.h') diff --git a/runtime/utils.h b/runtime/utils.h index 2389ce77fc..958f0a35e1 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -386,6 +386,16 @@ inline void FlushInstructionCache(char* begin, char* end) { __builtin___clear_cache(begin, end); } +template +constexpr PointerSize ConvertToPointerSize(T any) { + if (any == 4 || any == 8) { + return static_cast(any); + } else { + LOG(FATAL); + UNREACHABLE(); + } +} + } // namespace art #endif // ART_RUNTIME_UTILS_H_ -- cgit v1.2.3-59-g8ed1b