diff options
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r-- | compiler/optimizing/code_generator.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 28ff1cf83a..c61e991956 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -26,6 +26,9 @@ #include "gc_map_builder.h" #include "leb128.h" #include "mapping_table.h" +#include "mirror/array-inl.h" +#include "mirror/object_array-inl.h" +#include "mirror/object_reference.h" #include "ssa_liveness_analysis.h" #include "utils/assembler.h" #include "verifier/dex_gc_map.h" @@ -33,6 +36,10 @@ namespace art { +size_t CodeGenerator::GetCacheOffset(uint32_t index) { + return mirror::ObjectArray<mirror::Object>::OffsetOfElement(index).SizeValue(); +} + void CodeGenerator::CompileBaseline(CodeAllocator* allocator, bool is_leaf) { const GrowableArray<HBasicBlock*>& blocks = GetGraph()->GetBlocks(); DCHECK(blocks.Get(0) == GetGraph()->GetEntryBlock()); |