From d9dc6f45c3f5fb0e5d279e6c038692258b27192b Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 24 Nov 2015 14:06:57 +0000 Subject: A few more optimizations on avoiding HClinit. Change-Id: I622a98b620e9d261cb654e2f5ab578bd8b3484b1 --- compiler/optimizing/builder.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'compiler/optimizing/builder.h') diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index 615b0cd738..5ada93f684 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -311,9 +311,8 @@ class HGraphBuilder : public ValueObject { // 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 cls, uint16_t type_index) const + // Return whether the compiler can assume `cls` is initialized. + bool IsInitialized(Handle cls) const SHARED_REQUIRES(Locks::mutator_lock_); ArenaAllocator* const arena_; -- cgit v1.2.3-59-g8ed1b