summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2015-07-09 18:15:19 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2015-07-10 18:05:19 +0100
commit6920703c8eae0d90528ea09945e742582b6f8198 (patch)
tree31ed78caffdabf67cadaa07b1f5418f191a1d10e /compiler/driver/compiler_driver.cc
parent7b3d3bc1a4ea7546e4743e90e695f4fc7ecadf3a (diff)
Make dex2dex return a CompiledMethod after quickening.
This is the starting piece of pushing more verification and dex2dex data into an .oat file, to lower the dependency on verification results at runtime. Change-Id: I8e1b49a0207714bc5b84d1f606806718c5c7fb69
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
-rw-r--r--compiler/driver/compiler_driver.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc
index 7890108f41..a52bfaeb5b 100644
--- a/compiler/driver/compiler_driver.cc
+++ b/compiler/driver/compiler_driver.cc
@@ -2291,10 +2291,16 @@ void CompilerDriver::CompileMethod(Thread* self, const DexFile::CodeItem* code_i
// TODO: add a command-line option to disable DEX-to-DEX compilation ?
// Do not optimize if a VerifiedMethod is missing. SafeCast elision, for example, relies on
// it.
- (*dex_to_dex_compiler_)(*this, code_item, access_flags,
- invoke_type, class_def_idx,
- method_idx, class_loader, dex_file,
- has_verified_method ? dex_to_dex_compilation_level : kRequired);
+ compiled_method = (*dex_to_dex_compiler_)(
+ *this,
+ code_item,
+ access_flags,
+ invoke_type,
+ class_def_idx,
+ method_idx,
+ class_loader,
+ dex_file,
+ has_verified_method ? dex_to_dex_compilation_level : kRequired);
}
}
if (kTimeCompileMethod) {