diff options
author | Narayan Kamath <narayan@google.com> | 2017-01-25 11:17:14 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2017-01-27 13:45:00 +0000 |
commit | 298c0e8f24657f6dc3fe362fe62b12a187b6faf1 (patch) | |
tree | 82335145ccdbb32cd2828d10eb3fbea6f960001d /annotations/generate_annotated_java_files.py | |
parent | 6e40ebf5bc4fb6b0e88cca15b63c4fb0c8174755 (diff) |
MethodHandles: Implement revealDirect / reflectAs.
The implementation approach is straightforward - we materialize
a Constructor, Field or Method (subclasses of Member) from the
handle's ArtField or ArtMethod pointer, and implement
MethodHandleInfo API in terms of that Member.
We need special casing for a few things :
- The "type" of the MethodHandleInfo is not the same of the type
of the handle it was derived from, so adjustments are necessary.
- revealDirect is only supposed to work with "direct" handles, but
our Constructor / VarArgs handling is implemented in terms of
transformers. We will need to treat those transformer classes as
direct for all practical purposes.
Test: make test-art-host
Change-Id: I58cd081b7db1f581cfb7e2eb10d0c52308fac5ed
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions