From 296fbb4c3a629ec99149e512ddb66d7b4d7854fe Mon Sep 17 00:00:00 2001 From: Aart Bik Date: Tue, 7 Jun 2016 13:49:12 -0700 Subject: Do not place null check on unresolved method calls. Rationale: These invokes drop through the runtime anyway where various checks are done, including null check. A few of these checks need to occur before the null check. With fail-before/pass-after smali test. BUG=29068831 Change-Id: I260715e742365433a323598d97f7fdab321e8512 --- compiler/optimizing/instruction_builder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/optimizing/instruction_builder.h') diff --git a/compiler/optimizing/instruction_builder.h b/compiler/optimizing/instruction_builder.h index 0e3e5a7c34..9cfc065da6 100644 --- a/compiler/optimizing/instruction_builder.h +++ b/compiler/optimizing/instruction_builder.h @@ -237,7 +237,8 @@ class HInstructionBuilder : public ValueObject { uint32_t register_index, bool is_range, const char* descriptor, - HClinitCheck* clinit_check); + HClinitCheck* clinit_check, + bool is_unresolved); bool HandleStringInit(HInvoke* invoke, uint32_t number_of_vreg_arguments, -- cgit v1.2.3-59-g8ed1b