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 /compiler/dex/compiler_ir.cc | |
parent | c06972f666147061f88aeef265465cb88a27f3b2 (diff) | |
download | art-6e037f8660f40fd5869f7a48f27751caaaaa626d.tar.gz art-6e037f8660f40fd5869f7a48f27751caaaaa626d.tar.bz2 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
Diffstat (limited to 'compiler/dex/compiler_ir.cc')
-rw-r--r-- | compiler/dex/compiler_ir.cc | 25 |
1 files changed, 25 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), |