
main.java.com.debughelper.tools.r8.code.InvokePolymorphicRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of debughelper Show documentation
Show all versions of debughelper Show documentation
A gradle plugin help to debug android lib module include native code.
The newest version!
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.debughelper.tools.r8.code;
import com.debughelper.tools.r8.code.BytecodeStream;
import com.debughelper.tools.r8.code.Format4rcc;
import com.debughelper.tools.r8.ir.code.Invoke.Type;
import com.debughelper.tools.r8.ir.conversion.IRBuilder;
import com.debughelper.tools.r8.graph.DexMethod;
import com.debughelper.tools.r8.graph.DexProto;
import com.debughelper.tools.r8.graph.OffsetToObjectMapping;
import com.debughelper.tools.r8.graph.UseRegistry;
import com.debughelper.tools.r8.ir.code.Invoke;
/** An invoke-polymorphic range instruction used to call method with polymorphic signature. */
public class InvokePolymorphicRange extends Format4rcc {
public static final int OPCODE = 0xfb;
public static final String NAME = "InvokePolymorphicRange";
public static final String SMALI_NAME = "invoke-polymorphic/range";
InvokePolymorphicRange(int high, BytecodeStream stream, OffsetToObjectMapping mapping) {
super(high, stream, mapping.getMethodMap(), mapping.getProtosMap());
}
public InvokePolymorphicRange(
int firstArgumentRegister, int argumentCount, com.debughelper.tools.r8.graph.DexMethod method, DexProto proto) {
super(firstArgumentRegister, argumentCount, method, proto);
}
@Override
public String getName() {
return NAME;
}
@Override
public String getSmaliName() {
return SMALI_NAME;
}
@Override
public int getOpcode() {
return OPCODE;
}
@Override
public DexMethod getMethod() {
return BBBB;
}
@Override
public void registerUse(UseRegistry registry) {
registry.registerInvokeDirect(getMethod());
}
@Override
public void buildIR(IRBuilder builder) {
builder.addInvokeRange(Invoke.Type.POLYMORPHIC, getMethod(), getProto(), AA, CCCC);
}
@Override
public boolean canThrow() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy