diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-03-11 17:53:17 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-03-13 09:23:12 +0000 |
commit | bab4ed7057799a4fadc6283108ab56f389d117d4 (patch) | |
tree | ea1bf495458fd9f7a3ffbed0ea4e1dda5a0b8184 /compiler/optimizing/builder.h | |
parent | 37d4c1db4d705f5a28001f65afdd68d0527948d8 (diff) | |
download | art-bab4ed7057799a4fadc6283108ab56f389d117d4.zip art-bab4ed7057799a4fadc6283108ab56f389d117d4.tar.gz art-bab4ed7057799a4fadc6283108ab56f389d117d4.tar.bz2 |
More code generation for the optimizing compiler.
- Add HReturn instruction
- Generate code for locals/if/return
- Setup infrastructure for register allocation. Currently
emulate a stack.
Change-Id: Ib28c2dba80f6c526177ed9a7b09c0689ac8122fb
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r-- | compiler/optimizing/builder.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index 399dd63..fff83a1 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -41,7 +41,8 @@ class HGraphBuilder : public ValueObject { exit_block_(nullptr), current_block_(nullptr), graph_(nullptr), - constant0_(nullptr) { } + constant0_(nullptr), + constant1_(nullptr) { } HGraph* BuildGraph(const DexFile::CodeItem& code); @@ -58,6 +59,7 @@ class HGraphBuilder : public ValueObject { HBasicBlock* FindBlockStartingAt(int32_t index) const; HIntConstant* GetConstant0(); + HIntConstant* GetConstant1(); HIntConstant* GetConstant(int constant); void InitializeLocals(int count); HLocal* GetLocalAt(int register_index) const; @@ -79,6 +81,7 @@ class HGraphBuilder : public ValueObject { HGraph* graph_; HIntConstant* constant0_; + HIntConstant* constant1_; DISALLOW_COPY_AND_ASSIGN(HGraphBuilder); }; |