OSDN Git Service

ARM: Try to emit branches early to save memory.
authorVladimir Marko <vmarko@google.com>
Tue, 13 Sep 2016 14:11:50 +0000 (15:11 +0100)
committerVladimir Marko <vmarko@google.com>
Thu, 15 Sep 2016 14:35:01 +0000 (15:35 +0100)
commit167bc0b5275038cbe86112e1df12c8988aa6612e
treefb2080cd9686de6b926f2e5e4157c551a0405b9b
parent8fb627442ec7330939c920076714eb120363f95e
ARM: Try to emit branches early to save memory.

Try to emit unexpanded branches when binding a Label to
reduce the memory needed for Fixup dependencies. We use
a simple heuristic to limit the time we spend trying
but this heuristic is enough to resolve all branches in
the emitted String.equals() intrinsic.

Test: Run ART test suite on host and Nexus 6.
Test: Manually check memory usage for a certain apk.
Bug: 28603175
Change-Id: I362e07c2c1285ff609cf8df0a00b6b420729b9ce
compiler/utils/arm/assembler_thumb2.cc
compiler/utils/arm/assembler_thumb2.h