diff options
author | Brian Carlstrom <bdc@google.com> | 2011-10-04 14:58:28 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2011-10-07 11:59:20 -0700 |
commit | 3320cf46afd082398aa401b246e6f301cebdf64d (patch) | |
tree | 99ef2b240ad81fa7cafa0bca51ca2364120fa762 /src/dex_cache.h | |
parent | 4f0d07c783afef89703dce32c94440fc8621a29b (diff) | |
download | art-3320cf46afd082398aa401b246e6f301cebdf64d.zip art-3320cf46afd082398aa401b246e6f301cebdf64d.tar.gz art-3320cf46afd082398aa401b246e6f301cebdf64d.tar.bz2 |
Move rest of code related blobs from Method to oat
Change-Id: I55041b564ab65317c8b1f863005f20ba650a0322
Diffstat (limited to 'src/dex_cache.h')
-rw-r--r-- | src/dex_cache.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/dex_cache.h b/src/dex_cache.h index 7ca6825..a9776b7 100644 --- a/src/dex_cache.h +++ b/src/dex_cache.h @@ -26,22 +26,17 @@ class MANAGED CodeAndDirectMethods : public IntArray { return reinterpret_cast<Method*>(Get(MethodIndex(method_idx))); } - void SetResolvedDirectMethodTrampoline(uint32_t method_idx, ByteArray* code_array, - InstructionSet instruction_set) { - DCHECK(code_array != NULL); + void SetResolvedDirectMethodTrampoline(uint32_t method_idx, ByteArray* code_array) { + CHECK(code_array != NULL); int32_t code = reinterpret_cast<int32_t>(code_array->GetData()); - if (instruction_set == kThumb2) { - // Set the low-order bit so a BLX will switch to Thumb mode - code = code | 0x1; - } Set(CodeIndex(method_idx), code); Set(MethodIndex(method_idx), method_idx); } void SetResolvedDirectMethod(uint32_t method_idx, Method* method) { CHECK(method != NULL); - CHECK(method->IsDirect()); - // CHECK(method->GetCode() != NULL); // TODO enable when all code is compiling + CHECK(method->IsDirect()) << PrettyMethod(method); + CHECK(method->GetCode() != NULL) << PrettyMethod(method); Set(CodeIndex(method_idx), reinterpret_cast<int32_t>(method->GetCode())); Set(MethodIndex(method_idx), reinterpret_cast<int32_t>(method)); } @@ -213,12 +208,6 @@ class MANAGED DexCache : public ObjectArray<Object> { DISALLOW_IMPLICIT_CONSTRUCTORS(DexCache); }; -struct DexCacheHash { - size_t operator()(art::DexCache* const& obj) const { - return reinterpret_cast<size_t>(&obj); - } -}; - } // namespace art #endif // ART_SRC_DEX_CACHE_H_ |