summaryrefslogtreecommitdiff
path: root/compiler/optimizing/builder.h
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/optimizing/builder.h
parenta341377bd5eb7cef471cb29a382e1614523e5a6c (diff)
parentfb8464ae5f5194dc16278e528cfcbff71498c767 (diff)
Merge "Revert "Revert "Enable store elimination for singleton objects."""
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r--compiler/optimizing/builder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h
index 9eaa4b62c5..f857ef0e12 100644
--- a/compiler/optimizing/builder.h
+++ b/compiler/optimizing/builder.h
@@ -138,7 +138,10 @@ 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;
+
+ // Returns whether the current method needs access check for the type.
+ // Output parameter finalizable is set to whether the type is finalizable.
+ bool NeedsAccessCheck(uint32_t type_index, /*out*/bool* finalizable) const;
template<typename T>
void Unop_12x(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc);