summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/gen_common.cc
diff options
context:
space:
mode:
author Mingyao Yang <mingyao@google.com> 2015-11-18 21:29:47 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-11-18 21:29:47 +0000
commitb9bbbeb2b05d74cae0fe0682a26b19f5a7e68d8c (patch)
tree1de557901bb185321784101c2cb319b7f75e91c7 /compiler/dex/quick/gen_common.cc
parenta341377bd5eb7cef471cb29a382e1614523e5a6c (diff)
parentfb8464ae5f5194dc16278e528cfcbff71498c767 (diff)
Merge "Revert "Revert "Enable store elimination for singleton objects."""
Diffstat (limited to 'compiler/dex/quick/gen_common.cc')
-rw-r--r--compiler/dex/quick/gen_common.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/dex/quick/gen_common.cc b/compiler/dex/quick/gen_common.cc
index 2b60a51e22..5da72147b0 100644
--- a/compiler/dex/quick/gen_common.cc
+++ b/compiler/dex/quick/gen_common.cc
@@ -1104,7 +1104,11 @@ void Mir2Lir::GenNewInstance(uint32_t type_idx, RegLocation rl_dest) {
// access because the verifier was unable to?
const DexFile* dex_file = cu_->dex_file;
CompilerDriver* driver = cu_->compiler_driver;
- if (driver->CanAccessInstantiableTypeWithoutChecks(cu_->method_idx, *dex_file, type_idx)) {
+ bool finalizable;
+ if (driver->CanAccessInstantiableTypeWithoutChecks(cu_->method_idx,
+ *dex_file,
+ type_idx,
+ &finalizable)) {
bool is_type_initialized;
bool use_direct_type_ptr;
uintptr_t direct_type_ptr;