summaryrefslogtreecommitdiff
path: root/compiler/optimizing/builder.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2015-11-23 08:58:58 +0000
committer android-build-merger <android-build-merger@google.com> 2015-11-23 08:58:58 +0000
commit498121dfed54bb4be38d1ea302b38e55385ee1b4 (patch)
tree0dbbc998527471123a96abb3f6b568c9329b1da2 /compiler/optimizing/builder.h
parentf321ac3e9d866cc1897c743a56f3c66c4b8e4536 (diff)
parent43392ff9c62fd106d087d28183b5be42ab1e2778 (diff)
Merge "Explicitly add HLoadClass/HClinitCheck for HNewInstance." am: 01b88a2c89
am: 43392ff9c6 * commit '43392ff9c62fd106d087d28183b5be42ab1e2778': Explicitly add HLoadClass/HClinitCheck for HNewInstance.
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r--compiler/optimizing/builder.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h
index f857ef0e12..615b0cd738 100644
--- a/compiler/optimizing/builder.h
+++ b/compiler/optimizing/builder.h
@@ -308,6 +308,14 @@ class HGraphBuilder : public ValueObject {
uint32_t method_idx,
HInvokeStaticOrDirect::ClinitCheckRequirement* clinit_check_requirement);
+ // Build a HNewInstance instruction.
+ bool BuildNewInstance(uint16_t type_index, uint32_t dex_pc);
+
+ // Return whether the compiler can assume `cls` is initialized. `type_index` is the index
+ // of the class in the outer dex file.
+ bool IsInitialized(Handle<mirror::Class> cls, uint16_t type_index) const
+ SHARED_REQUIRES(Locks::mutator_lock_);
+
ArenaAllocator* const arena_;
// A list of the size of the dex code holding block information for