summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-10-29 13:02:55 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-10-29 13:02:56 +0000
commitcc4337139de2786bb9038789fb8e3f93697c191c (patch)
tree265b971afd0e33afc8986317aea2f5a6fe817aec /compiler/optimizing/code_generator.h
parent7c049c1f34220b0dc1a7f68f3b30f388bae7bdb9 (diff)
parent19a19cffd197a28ae4c9c3e59eff6352fd392241 (diff)
Merge "Add support for static fields in optimizing compiler."
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 163886921a..bf9d2c0c12 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,