Beispiel #1
0
  @Override
  public void simplifyOperands(Map<Operand, Operand> valueMap, boolean force) {
    // FIXME: receiver should never be null (checkArity seems to be one culprit)
    if (receiver != null) receiver = receiver.getSimplifiedOperand(valueMap, force);
    methAddr = (MethAddr) methAddr.getSimplifiedOperand(valueMap, force);
    for (int i = 0; i < arguments.length; i++) {
      arguments[i] = arguments[i].getSimplifiedOperand(valueMap, force);
    }

    // Recompute containsSplat flag
    containsSplat = containsSplat(arguments);

    if (closure != null) closure = closure.getSimplifiedOperand(valueMap, force);
    flagsComputed = false; // Forces recomputation of flags

    // recompute whenever instr operands change! (can this really change though?)
    callSite = getCallSiteFor(callType, methAddr);
  }
 @Override
 public void simplifyOperands(Map<Operand, Operand> valueMap, boolean force) {
   currentModule = currentModule.getSimplifiedOperand(valueMap, force);
 }
Beispiel #3
0
 @Override
 public void simplifyOperands(Map<Operand, Operand> valueMap, boolean force) {
   oldName = oldName.getSimplifiedOperand(valueMap, force);
   newName = newName.getSimplifiedOperand(valueMap, force);
 }
 @Override
 public void simplifyOperands(Map<Operand, Operand> valueMap, boolean force) {
   definingScope = definingScope.getSimplifiedOperand(valueMap, force);
 }
 @Override
 public void simplifyOperands(Map<Operand, Operand> valueMap, boolean force) {
   if (object != null) object = object.getSimplifiedOperand(valueMap, force);
 }