diff options
author | 2015-10-27 16:38:33 -0700 | |
---|---|---|
committer | 2015-10-27 16:43:45 -0700 | |
commit | 7f43a3d48fc29045875d50e10bbc5d6ffc25d61e (patch) | |
tree | 3be4590986faae499384f564acafa5fe04eb68b4 /compiler/optimizing/builder.h | |
parent | 3dca4c04170bb4c7b26609e55f3f4966d46b681a (diff) |
Enable store elimination for singleton objects.
Enable store elimination for singleton objects. However for finalizable object,
don't eliminate stores. Also added a testcase.
Change-Id: Icf991e7ded5b490f55f580ef928ece5c45e89902
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r-- | compiler/optimizing/builder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index 9eaa4b62c5..0f64489d98 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -138,7 +138,7 @@ class HGraphBuilder : public ValueObject { HInstruction* LoadLocal(uint32_t register_index, Primitive::Type type, uint32_t dex_pc) const; void PotentiallyAddSuspendCheck(HBasicBlock* target, uint32_t dex_pc); void InitializeParameters(uint16_t number_of_parameters); - bool NeedsAccessCheck(uint32_t type_index) const; + bool NeedsAccessCheck(uint32_t type_index, bool* finalizable) const; template<typename T> void Unop_12x(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc); |