com.android.dx.rop.code.BasicBlockList.withRegisterOffset()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(68)

本文整理了Java中com.android.dx.rop.code.BasicBlockList.withRegisterOffset()方法的一些代码示例,展示了BasicBlockList.withRegisterOffset()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BasicBlockList.withRegisterOffset()方法的具体详情如下:
包路径:com.android.dx.rop.code.BasicBlockList
类名称:BasicBlockList
方法名:withRegisterOffset

BasicBlockList.withRegisterOffset介绍

[英]Returns an instance that is identical to this one, except that the registers in each instruction are offset by the given amount. Mutability of the result is inherited from the original.
[中]返回与此实例相同的实例,只是每条指令中的寄存器偏移了给定的量。结果的可变性是从原始结果继承的。

代码示例

代码示例来源:origin: com.android.tools.build/builder

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public RopMethod withRegisterOffset(int delta) {
  RopMethod result = new RopMethod(blocks.withRegisterOffset(delta),
                   firstLabel);
  if (exitPredecessors != null) {
    /*
     * The predecessors have been calculated. It's safe to
     * inject these into the new instance, since the
     * transformation being applied doesn't affect the
     * predecessors.
     */
    result.exitPredecessors = exitPredecessors;
    result.predecessors = predecessors;
  }
  return result;
}

代码示例来源:origin: com.android/dx

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public RopMethod withRegisterOffset(int delta) {
  RopMethod result = new RopMethod(blocks.withRegisterOffset(delta),
                   firstLabel);
  if (exitPredecessors != null) {
    /*
     * The predecessors have been calculated. It's safe to
     * inject these into the new instance, since the
     * transformation being applied doesn't affect the
     * predecessors.
     */
    result.exitPredecessors = exitPredecessors;
    result.predecessors = predecessors;
  }
  return result;
}

代码示例来源:origin: dragome/dragome-sdk

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount.
 * 
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public RopMethod withRegisterOffset(int delta) {
  RopMethod result = new RopMethod(blocks.withRegisterOffset(delta),
                   firstLabel);
  if (exitPredecessors != null) {
    /*
     * The predecessors have been calculated. It's safe to
     * inject these into the new instance, since the
     * transformation being applied doesn't affect the
     * predecessors.
     */
    result.exitPredecessors = exitPredecessors;
    result.predecessors = predecessors;
  }
  return result;
}

代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public RopMethod withRegisterOffset(int delta) {
  RopMethod result = new RopMethod(blocks.withRegisterOffset(delta),
                   firstLabel);
  if (exitPredecessors != null) {
    /*
     * The predecessors have been calculated. It's safe to
     * inject these into the new instance, since the
     * transformation being applied doesn't affect the
     * predecessors.
     */
    result.exitPredecessors = exitPredecessors;
    result.predecessors = predecessors;
  }
  return result;
}

代码示例来源:origin: com.google.android.tools/dx

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public RopMethod withRegisterOffset(int delta) {
  RopMethod result = new RopMethod(blocks.withRegisterOffset(delta),
                   firstLabel);
  if (exitPredecessors != null) {
    /*
     * The predecessors have been calculated. It's safe to
     * inject these into the new instance, since the
     * transformation being applied doesn't affect the
     * predecessors.
     */
    result.exitPredecessors = exitPredecessors;
    result.predecessors = predecessors;
  }
  return result;
}

代码示例来源:origin: com.google.dexmaker/dexmaker-dx

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public RopMethod withRegisterOffset(int delta) {
  RopMethod result = new RopMethod(blocks.withRegisterOffset(delta),
                   firstLabel);
  if (exitPredecessors != null) {
    /*
     * The predecessors have been calculated. It's safe to
     * inject these into the new instance, since the
     * transformation being applied doesn't affect the
     * predecessors.
     */
    result.exitPredecessors = exitPredecessors;
    result.predecessors = predecessors;
  }
  return result;
}

代码示例来源:origin: gdpancheng/LoonAndroid3

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public RopMethod withRegisterOffset(int delta) {
  RopMethod result = new RopMethod(blocks.withRegisterOffset(delta),
                   firstLabel);
  if (exitPredecessors != null) {
    /*
     * The predecessors have been calculated. It's safe to
     * inject these into the new instance, since the
     * transformation being applied doesn't affect the
     * predecessors.
     */
    result.exitPredecessors = exitPredecessors;
    result.predecessors = predecessors;
  }
  return result;
}

相关文章