Faster stack trace creation

Cache stack frames from the counting visitor to avoid needing to
walk the stack twice in the common case.

Speeds up pmd benchark by 20%.

Test: test-art-host

Change-Id: I81e4e55280d9c1ccf1937a7ea12abff75e9abb94
1 file changed