summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2016-09-09 14:23:58 +0100
committerNeil Fuller <nfuller@google.com>2016-09-27 16:48:00 +0100
commit1b7ce76ba2c2737c9dab5245e4da7823f456ec0b (patch)
treee9ca023d8cb9cecdebdf7ded116ce91c442189a8 /annotations/generate_annotated_java_files.py
parentdf35815c5fe2ec682ac45d62d24de8d3fc13af37 (diff)
Implement Executable.getParameters() to use compiled-in metadata
Implements the Executable.getParameters() code to take advantage of .dex metadata that records parameter names and access flags / modifiers (e.g. final, sythentic, mandated). On Android, this metadata is stored in a new system annotation dalvik.annotation.MethodParameters. See the MethodParameters class for the specification. The metadata is optional and the intention is that Jack or other compilers can include or exclude it based on developer preference. Contained here are various tests for valid and invalid metadata, along with the supporting .smali files used to generate the .dex files used by the tests. See the README.txt for more information on generation. See the associated art/ change for the native code used in Executable. Bug: 30391692 Test: test-art-host and CtsLibcoreTestCases Change-Id: Ied3d0f03bb6eb154b974a856b341bd14b5e45fc1
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions