From 01b47b046b01ec68696f8ff61b5326cdd3af348e Mon Sep 17 00:00:00 2001 From: Mingyao Yang Date: Fri, 3 Feb 2017 12:09:57 -0800 Subject: Inlining a few small methods based on profiling dex2oat with perf. Test: m test-art-host Change-Id: I6313158e59592d8d132154523be9c82dda3c7eb8 --- compiler/optimizing/instruction_builder.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/optimizing/instruction_builder.h') diff --git a/compiler/optimizing/instruction_builder.h b/compiler/optimizing/instruction_builder.h index e735a0c46d..7fdc1883ca 100644 --- a/compiler/optimizing/instruction_builder.h +++ b/compiler/optimizing/instruction_builder.h @@ -93,6 +93,10 @@ class HInstructionBuilder : public ValueObject { HBasicBlock* FindBlockStartingAt(uint32_t dex_pc) const; ArenaVector* GetLocalsFor(HBasicBlock* block); + // Out of line version of GetLocalsFor(), which has a fast path that is + // beneficial to get inlined by callers. + ArenaVector* GetLocalsForWithAllocation( + HBasicBlock* block, ArenaVector* locals, const size_t vregs); HInstruction* ValueOfLocalAt(HBasicBlock* block, size_t local); HInstruction* LoadLocal(uint32_t register_index, Primitive::Type type) const; HInstruction* LoadNullCheckedLocal(uint32_t register_index, uint32_t dex_pc); -- cgit v1.2.3-59-g8ed1b