diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-10-22 16:07:05 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-10-29 13:01:48 +0000 |
commit | 19a19cffd197a28ae4c9c3e59eff6352fd392241 (patch) | |
tree | 265b971afd0e33afc8986317aea2f5a6fe817aec /compiler/optimizing/code_generator.cc | |
parent | 7c049c1f34220b0dc1a7f68f3b30f388bae7bdb9 (diff) | |
download | android_art-19a19cffd197a28ae4c9c3e59eff6352fd392241.tar.gz android_art-19a19cffd197a28ae4c9c3e59eff6352fd392241.tar.bz2 android_art-19a19cffd197a28ae4c9c3e59eff6352fd392241.zip |
Add support for static fields in optimizing compiler.
Change-Id: Id2f010589e2bd6faf42c05bb33abf6816ebe9fa9
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()); |