gpt4 book ai didi

org.jruby.ir.instructions.specialized.ZeroOperandArgNoBlockCallInstr类的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 20:21:31 26 4
gpt4 key购买 nike

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

ZeroOperandArgNoBlockCallInstr介绍

暂无

代码示例

代码示例来源:origin: org.jruby/jruby-complete

@Override
public Instr clone(CloneInfo ii) {
  return new ZeroOperandArgNoBlockCallInstr(ii.getScope(), getCallType(), ii.getRenamedVariable(result), getName(),
      getReceiver().cloneForInlining(ii), cloneCallArgs(ii), isPotentiallyRefined(), getCallSite(), getCallSiteId());
}

代码示例来源:origin: org.jruby/jruby-core

@Override
  public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope dynamicScope, IRubyObject self, Object[] temp) {
    IRubyObject object = (IRubyObject) getReceiver().retrieve(context, self, currScope, dynamicScope, temp);

    return getCallSite().call(context, self, object);
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

IRubyObject r = (IRubyObject)retrieveOp(call.getReceiver(), context, self, currDynScope, temp);
result = call.getCallSite().call(context, self, r);
setResult(temp, currDynScope, call.getResult(), result);
break;

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

@Override
public CallBase specializeForInterpretation() {
  Operand[] callArgs = getCallArgs();
  if (hasClosure() || containsSplat(callArgs)) return this;
  switch (callArgs.length) {
    case 0:
      return new ZeroOperandArgNoBlockCallInstr(this);
    case 1:
      if (isAllFixnums()) return new OneFixnumArgNoBlockCallInstr(this);
      return new OneOperandArgNoBlockCallInstr(this);
  }
  return this;
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

@Override
  public Object interpret(ThreadContext context, DynamicScope dynamicScope, IRubyObject self, Object[] temp, Block block) {
    IRubyObject object = (IRubyObject) receiver.retrieve(context, self, dynamicScope, temp);

    return getCallSite().call(context, self, object);
  }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

IRubyObject r = (IRubyObject)retrieveOp(call.getReceiver(), context, self, currDynScope, temp);
result = call.getCallSite().call(context, self, r);
setResult(temp, currDynScope, call.getResult(), result);
break;

代码示例来源:origin: org.jruby/jruby-complete

@Override
  public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope dynamicScope, IRubyObject self, Object[] temp) {
    IRubyObject object = (IRubyObject) getReceiver().retrieve(context, self, currScope, dynamicScope, temp);

    return getCallSite().call(context, self, object);
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@Override
public CallBase specializeForInterpretation() {
  Operand[] callArgs = getCallArgs();
  if (hasClosure() || containsSplat(callArgs)) return this;
  switch (callArgs.length) {
    case 0:
      return new ZeroOperandArgNoBlockCallInstr(this);
    case 1:
      if (isAllFixnums()) return new OneFixnumArgNoBlockCallInstr(this);
      return new OneOperandArgNoBlockCallInstr(this);
  }
  return this;
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@Override
  public Object interpret(ThreadContext context, DynamicScope dynamicScope, IRubyObject self, Object[] temp, Block block) {
    IRubyObject object = (IRubyObject) receiver.retrieve(context, self, dynamicScope, temp);

    return getCallSite().call(context, self, object);
  }
}

代码示例来源:origin: org.jruby/jruby-core

@Override
public Instr clone(CloneInfo ii) {
  return new ZeroOperandArgNoBlockCallInstr(ii.getScope(), getCallType(), ii.getRenamedVariable(result), getName(),
      getReceiver().cloneForInlining(ii), cloneCallArgs(ii), isPotentiallyRefined(), getCallSite(), getCallSiteId());
}

代码示例来源:origin: org.jruby/jruby-core

IRubyObject r = (IRubyObject)retrieveOp(call.getReceiver(), context, self, currDynScope, currScope, temp);
result = call.getCallSite().call(context, self, r);
setResult(temp, currDynScope, call.getResult(), result);
break;

代码示例来源:origin: org.jruby/jruby-complete

public static CallInstr create(IRScope scope, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure) {
  boolean isPotentiallyRefined = scope.maybeUsingRefinements();
  if (!containsArgSplat(args)) {
    boolean hasClosure = closure != null;
    if (args.length == 0 && !hasClosure) {
      return new ZeroOperandArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
    } else if (args.length == 1) {
      if (hasClosure) return new OneOperandArgBlockCallInstr(scope, callType, result, name, receiver, args, closure, isPotentiallyRefined);
      if (isAllFixnums(args)) return new OneFixnumArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
      if (isAllFloats(args)) return new OneFloatArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
      return new OneOperandArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
    } else if (args.length == 2 && !hasClosure) {
      return new TwoOperandArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
    }
  }
  return new CallInstr(scope, callType, result, name, receiver, args, closure, isPotentiallyRefined);
}

代码示例来源:origin: org.jruby/jruby-complete

IRubyObject r = (IRubyObject)retrieveOp(call.getReceiver(), context, self, currDynScope, currScope, temp);
result = call.getCallSite().call(context, self, r);
setResult(temp, currDynScope, call.getResult(), result);
break;

代码示例来源:origin: org.jruby/jruby-core

public static CallInstr create(IRScope scope, CallType callType, Variable result, RubySymbol name, Operand receiver, Operand[] args, Operand closure) {
  boolean isPotentiallyRefined = scope.maybeUsingRefinements();
  if (!containsArgSplat(args)) {
    boolean hasClosure = closure != null;
    if (args.length == 0 && !hasClosure) {
      return new ZeroOperandArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
    } else if (args.length == 1) {
      if (hasClosure) return new OneOperandArgBlockCallInstr(scope, callType, result, name, receiver, args, closure, isPotentiallyRefined);
      if (isAllFixnums(args)) return new OneFixnumArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
      if (isAllFloats(args)) return new OneFloatArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
      return new OneOperandArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
    } else if (args.length == 2 && !hasClosure) {
      return new TwoOperandArgNoBlockCallInstr(scope, callType, result, name, receiver, args, isPotentiallyRefined);
    }
  }
  return new CallInstr(scope, callType, result, name, receiver, args, closure, isPotentiallyRefined);
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com