diff options
author | Wei Wang <wangw@codeaurora.org> | 2015-09-09 14:58:02 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:20:37 -0600 |
commit | 6e037f8660f40fd5869f7a48f27751caaaaa626d (patch) | |
tree | d3e990d4684841319c8bb7f08fa30c5b428165e0 | |
parent | c06972f666147061f88aeef265465cb88a27f3b2 (diff) | |
download | android_art-6e037f8660f40fd5869f7a48f27751caaaaa626d.tar.gz android_art-6e037f8660f40fd5869f7a48f27751caaaaa626d.tar.bz2 android_art-6e037f8660f40fd5869f7a48f27751caaaaa626d.zip |
ART: bring original constructor back
ART extension changes the constructor of some compiler classes,
which confuses ART compiler test builder. Bring the original
constructor back to make the test build work properly.
Change-Id: I2d6f0a67c2c7bee9d8f67ba55eaa1d5c05449d31
-rw-r--r-- | compiler/dex/compiler_ir.cc | 25 | ||||
-rw-r--r-- | compiler/dex/compiler_ir.h | 1 | ||||
-rw-r--r-- | compiler/optimizing/nodes.h | 40 |
3 files changed, 66 insertions, 0 deletions
diff --git a/compiler/dex/compiler_ir.cc b/compiler/dex/compiler_ir.cc index 3d1251e2cf..3a25b03bd3 100644 --- a/compiler/dex/compiler_ir.cc +++ b/compiler/dex/compiler_ir.cc @@ -27,6 +27,31 @@ namespace art { CompilationUnit::CompilationUnit(ArenaPool* pool, InstructionSet isa, CompilerDriver* driver, + ClassLinker* linker) + : compiler_driver(driver), + class_linker(linker), + dex_file(nullptr), + class_loader(nullptr), + class_def_idx(0), + method_idx(0), + access_flags(0), + invoke_type(kDirect), + shorty(nullptr), + disable_opt(0), + enable_debug(0), + verbose(false), + instruction_set(isa), + target64(Is64BitInstructionSet(isa)), + arena(pool), + arena_stack(pool), + mir_graph(nullptr), + cg(nullptr), + timings("QuickCompiler", true, false), + print_pass(false), + compiler_(nullptr) { +} + +CompilationUnit::CompilationUnit(ArenaPool* pool, InstructionSet isa, CompilerDriver* driver, ClassLinker* linker, const QuickCompiler* compiler) : compiler_driver(driver), class_linker(linker), diff --git a/compiler/dex/compiler_ir.h b/compiler/dex/compiler_ir.h index 6a45f7b271..dc5af7210d 100644 --- a/compiler/dex/compiler_ir.h +++ b/compiler/dex/compiler_ir.h @@ -161,6 +161,7 @@ struct OptionContent { }; struct CompilationUnit { + CompilationUnit(ArenaPool* pool, InstructionSet isa, CompilerDriver* driver, ClassLinker* linker); CompilationUnit(ArenaPool* pool, InstructionSet isa, CompilerDriver* driver, ClassLinker* linker, const QuickCompiler* compiler); ~CompilationUnit(); diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 5d232857ae..a5374302fa 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3166,6 +3166,15 @@ class HInstanceFieldGet : public HExpression<1> { HInstanceFieldGet(HInstruction* value, Primitive::Type field_type, MemberOffset field_offset, + bool is_volatile) + : HExpression(field_type, SideEffects::DependsOnSomething()), + field_info_(field_offset, field_type, is_volatile, 0) { + SetRawInputAt(0, value); + } + + HInstanceFieldGet(HInstruction* value, + Primitive::Type field_type, + MemberOffset field_offset, bool is_volatile, uint32_t field_idx) : HExpression(field_type, SideEffects::DependsOnSomething()), @@ -3210,6 +3219,17 @@ class HInstanceFieldSet : public HTemplateInstruction<2> { HInstruction* value, Primitive::Type field_type, MemberOffset field_offset, + bool is_volatile) + : HTemplateInstruction(SideEffects::ChangesSomething()), + field_info_(field_offset, field_type, is_volatile, 0) { + SetRawInputAt(0, object); + SetRawInputAt(1, value); + } + + HInstanceFieldSet(HInstruction* object, + HInstruction* value, + Primitive::Type field_type, + MemberOffset field_offset, bool is_volatile, uint32_t field_idx) : HTemplateInstruction(SideEffects::ChangesSomething()), @@ -3592,6 +3612,15 @@ class HStaticFieldGet : public HExpression<1> { HStaticFieldGet(HInstruction* cls, Primitive::Type field_type, MemberOffset field_offset, + bool is_volatile) + : HExpression(field_type, SideEffects::DependsOnSomething()), + field_info_(field_offset, field_type, is_volatile, 0) { + SetRawInputAt(0, cls); + } + + HStaticFieldGet(HInstruction* cls, + Primitive::Type field_type, + MemberOffset field_offset, bool is_volatile, uint32_t field_idx) : HExpression(field_type, SideEffects::DependsOnSomething()), @@ -3632,6 +3661,17 @@ class HStaticFieldSet : public HTemplateInstruction<2> { HInstruction* value, Primitive::Type field_type, MemberOffset field_offset, + bool is_volatile) + : HTemplateInstruction(SideEffects::ChangesSomething()), + field_info_(field_offset, field_type, is_volatile, 0) { + SetRawInputAt(0, cls); + SetRawInputAt(1, value); + } + + HStaticFieldSet(HInstruction* cls, + HInstruction* value, + Primitive::Type field_type, + MemberOffset field_offset, bool is_volatile, uint32_t field_idx) : HTemplateInstruction(SideEffects::ChangesSomething()), |