diff options
author | 2017-09-22 16:17:41 +0100 | |
---|---|---|
committer | 2017-10-02 16:08:18 +0100 | |
commit | 2e59994c3c586d8b753e4b14a94c81bce3dba1a9 (patch) | |
tree | ab749ce709732821c7c00c81eb76afef032fd888 /runtime/dex_instruction.h | |
parent | 865a0503515f78611dce103bd04b7c66c051d304 (diff) |
ART: support for const-method-{handle,type}
Adds support for const-method-handle and const-method-type bytecodes.
Bug: 66562269
Test: art/test/run-test --host 979
Test: art/test/dexdump/run-all-tests
Change-Id: I812eaf0f2439d6126b4287483fe2348366cacf90
Diffstat (limited to 'runtime/dex_instruction.h')
-rw-r--r-- | runtime/dex_instruction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/dex_instruction.h b/runtime/dex_instruction.h index 9a1757601c..2f28dffa2b 100644 --- a/runtime/dex_instruction.h +++ b/runtime/dex_instruction.h @@ -135,6 +135,8 @@ class Instruction { kIndexVtableOffset, // vtable offset (for static linked methods) kIndexMethodAndProtoRef, // method and a proto reference index (for invoke-polymorphic) kIndexCallSiteRef, // call site reference index + kIndexMethodHandleRef, // constant method handle reference index + kIndexProtoRef, // prototype reference index }; enum Flags : uint8_t { @@ -195,7 +197,9 @@ class Instruction { kVerifyRuntimeOnly = 0x0200000, kVerifyError = 0x0400000, kVerifyRegHPrototype = 0x0800000, - kVerifyRegBCallSite = 0x1000000 + kVerifyRegBCallSite = 0x1000000, + kVerifyRegBMethodHandle = 0x2000000, + kVerifyRegBPrototype = 0x4000000, }; // Collect the enums in a struct for better locality. |