Commit 72edfe4d authored by Leonard Mosescu's avatar Leonard Mosescu
Browse files

Stress invoke-virtual wrap instrumentation

This is another instrumentation test case. With this we have all the
mechanics required for the most common instrumentation cases:
- entry hooks (forwarding the incoming arguments)
- exit hooks (and potentially changing the return value)
- wrapping virtual-invokes

For every method body in the .dex image, replace invoke-virtual[/range]
instances with a invoke-static[/range] to a fictitious Tracer.WrapInvoke(<args...>)
WrapInvoke() is a static method which takes the same arguments as the
original method plus an explicit "this" argument, and returns the same
type as the original method.

Test: bazel test :dexter_tests

Change-Id: I53c7ba08bb2e690e18b1f2f18c39debad38f0ed9
parent f9d96951
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment