Home
last modified time | relevance | path

Searched refs:methodHandle (Results 1 – 11 of 11) sorted by relevance

/external/r8/src/main/java/com/android/tools/r8/code/
DInvokeCustom.java76 static void registerMethodHandle(UseRegistry registry, DexMethodHandle methodHandle) { in registerMethodHandle() argument
77 switch (methodHandle.type) { in registerMethodHandle()
79 registry.registerInstanceFieldRead(methodHandle.asField()); in registerMethodHandle()
82 registry.registerInstanceFieldWrite(methodHandle.asField()); in registerMethodHandle()
85 registry.registerStaticFieldRead(methodHandle.asField()); in registerMethodHandle()
88 registry.registerStaticFieldWrite(methodHandle.asField()); in registerMethodHandle()
91 registry.registerInvokeVirtual(methodHandle.asMethod()); in registerMethodHandle()
94 registry.registerInvokeStatic(methodHandle.asMethod()); in registerMethodHandle()
97 DexMethod method = methodHandle.asMethod(); in registerMethodHandle()
102 registry.registerInvokeInterface(methodHandle.asMethod()); in registerMethodHandle()
[all …]
/external/r8/src/main/java/com/android/tools/r8/graph/
DDexCallSite.java119 private void write(DexMethodHandle methodHandle) throws IOException { in write() argument
120 out.writeShort(methodHandle.type.getValue()); in write()
121 if (methodHandle.isFieldHandle()) { in write()
122 write(methodHandle.asField()); in write()
124 write(methodHandle.asMethod()); in write()
DObjectToOffsetMapping.java177 public int getOffsetFor(DexMethodHandle methodHandle) { in getOffsetFor() argument
178 assert isContainedInMapping(methodHandle) : "Missing dependency: " + methodHandle; in getOffsetFor()
179 return methodHandle.getVirtualFileIndex(virtualFileId); in getOffsetFor()
DOffsetToObjectMapping.java172 public void setMethodHandle(int index, DexMethodHandle methodHandle) { in setMethodHandle() argument
174 methodHandles[index] = methodHandle; in setMethodHandle()
DDexItemFactory.java356 DexMethodHandle methodHandle = new DexMethodHandle(type, fieldOrMethod); in createMethodHandle() local
357 return canonicalize(methodHandles, methodHandle); in createMethodHandle()
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/
DLensCodeRewriter.java205 DexEncodedMethod method, DexMethodHandle methodHandle) { in rewriteDexMethodHandle() argument
206 if (methodHandle.isMethodHandle()) { in rewriteDexMethodHandle()
207 DexMethod invokedMethod = methodHandle.asMethod(); in rewriteDexMethodHandle()
211 MethodHandleType newType = methodHandle.type; in rewriteDexMethodHandle()
221 DexField field = methodHandle.asField(); in rewriteDexMethodHandle()
224 return new DexMethodHandle(methodHandle.type, actualField); in rewriteDexMethodHandle()
227 return methodHandle; in rewriteDexMethodHandle()
/external/r8/src/main/java/com/android/tools/r8/dex/
DIndexedItemCollection.java100 boolean addMethodHandle(DexMethodHandle methodHandle); in addMethodHandle() argument
DFileWriter.java670 private void writeMethodHandle(DexMethodHandle methodHandle) { in writeMethodHandle() argument
673 switch (methodHandle.type) { in writeMethodHandle()
681 methodHandleDexType = methodHandle.type; in writeMethodHandle()
688 if (methodHandle.isMethodHandle()) { in writeMethodHandle()
689 fieldOrMethodIdx = mapping.getOffsetFor(methodHandle.asMethod()); in writeMethodHandle()
691 assert methodHandle.isFieldHandle(); in writeMethodHandle()
692 fieldOrMethodIdx = mapping.getOffsetFor(methodHandle.asField()); in writeMethodHandle()
DVirtualFile.java497 public boolean addMethodHandle(DexMethodHandle methodHandle) { in addMethodHandle() argument
498 return addItem(methodHandle, methodHandles); in addMethodHandle()
591 public boolean addMethodHandle(DexMethodHandle methodHandle) { in addMethodHandle() argument
592 return maybeInsert(methodHandle, methodHandles); in addMethodHandle()
/external/r8/src/main/java/com/android/tools/r8/shaking/
DMainDexListBuilder.java306 public boolean addMethodHandle(DexMethodHandle methodHandle) { in addMethodHandle() argument
DEnqueuer.java1288 public boolean addMethodHandle(DexMethodHandle methodHandle) { in addMethodHandle() argument