summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/code_generator.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-10-22 16:07:05 +0100
committerNicolas Geoffray <ngeoffray@google.com>2014-10-29 13:01:48 +0000
commit19a19cffd197a28ae4c9c3e59eff6352fd392241 (patch)
tree265b971afd0e33afc8986317aea2f5a6fe817aec /compiler/optimizing/code_generator.h
parent7c049c1f34220b0dc1a7f68f3b30f388bae7bdb9 (diff)
downloadart-19a19cffd197a28ae4c9c3e59eff6352fd392241.zip
art-19a19cffd197a28ae4c9c3e59eff6352fd392241.tar.gz
art-19a19cffd197a28ae4c9c3e59eff6352fd392241.tar.bz2
Add support for static fields in optimizing compiler.
Change-Id: Id2f010589e2bd6faf42c05bb33abf6816ebe9fa9
Diffstat (limited to 'compiler/optimizing/code_generator.h')
-rw-r--r--compiler/optimizing/code_generator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h
index 1638869..bf9d2c0 100644
--- a/compiler/optimizing/code_generator.h
+++ b/compiler/optimizing/code_generator.h
@@ -157,6 +157,11 @@ class CodeGenerator : public ArenaObject {
bool* GetBlockedCoreRegisters() const { return blocked_core_registers_; }
bool* GetBlockedFloatingPointRegisters() const { return blocked_fpu_registers_; }
+ // Helper that returns the pointer offset of an index in an object array.
+ // Note: this method assumes we always have the same pointer size, regardless
+ // of the architecture.
+ static size_t GetCacheOffset(uint32_t index);
+
protected:
CodeGenerator(HGraph* graph,
size_t number_of_core_registers,