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

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

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

BasicBlock.withRegisterOffset介绍

[英]Returns an instance that is identical to this one, except that the registers in each instruction are offset by the given amount.
[中]返回与此实例相同的实例,只是每条指令中的寄存器偏移了给定的量。

代码示例

代码示例来源: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. Mutability of the result is inherited from the
 * original.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  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. Mutability of the result is inherited from the
 * original.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  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. Mutability of the result is inherited from the
 * original.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  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. Mutability of the result is inherited from the
 * original.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  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. Mutability of the result is inherited from the
 * original.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  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. Mutability of the result is inherited from the
 * original.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  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. Mutability of the result is inherited from the
 * original.
 * 
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  return result;
}

相关文章