Top Fields Constructors Methods
org.jruby.ir.instructions

public Class InstanceSuperInstr

extends CallInstr
Class Inheritance
Imports
org.jruby.RubyInstanceConfig, .RubyModule, .RubySymbol, org.jruby.ir.IRFlags, .IRScope, .IRVisitor, .Operation, org.jruby.ir.operands.NullBlock, .Operand, .Variable, .WrappedIRClosure, org.jruby.ir.persistence.IRReaderDecoder, org.jruby.ir.runtime.IRRuntimeHelpers, org.jruby.ir.transformations.inlining.CloneInfo, org.jruby.parser.StaticScope, org.jruby.runtime.Block, .CallSite, .CallType, .DynamicScope, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, java.util.EnumSet

Field Summary

Modifier and TypeField and Description
private final boolean
Inherited from org.jruby.ir.instructions.CallInstr:
result

Constructor Summary

AccessConstructor and Description
protected
InstanceSuperInstr(IRScope scope, Variable result, Operand definingModule, RubySymbol name, Operand[] args, Operand closure, int flags, boolean isPotentiallyRefined, CallSite callSite, long callSiteId)

public
InstanceSuperInstr(IRScope scope, Variable result, Operand definingModule, RubySymbol name, Operand[] args, Operand closure, int flags, boolean isPotentiallyRefined)

Method Summary

Modifier and TypeMethod and Description
public Instr
clone(CloneInfo
This object manages renaming of variables and labels, handles args and return values.
ii
)

Overrides org.jruby.ir.instructions.CallInstr.clone.

Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope).

public boolean
computeScopeFlags(IRScope scope, EnumSet<IRFlags> flags)

Overrides org.jruby.ir.instructions.CallBase.computeScopeFlags.

Does this instruction do anything the scope is interested in?

public static InstanceSuperInstr
public Operand
public Object
public void
Inherited from org.jruby.ir.instructions.CallInstr:
createencodegetResultupdateResult

Field Detail

isLiteralBlockback to summary
private final boolean isLiteralBlock

Constructor Detail

InstanceSuperInstrback to summary
protected InstanceSuperInstr(IRScope scope, Variable result, Operand definingModule, RubySymbol name, Operand[] args, Operand closure, int flags, boolean isPotentiallyRefined, CallSite callSite, long callSiteId)
InstanceSuperInstrback to summary
public InstanceSuperInstr(IRScope scope, Variable result, Operand definingModule, RubySymbol name, Operand[] args, Operand closure, int flags, boolean isPotentiallyRefined)

Method Detail

cloneback to summary
public Instr clone(CloneInfo ii)

Overrides org.jruby.ir.instructions.CallInstr.clone.

Doc from org.jruby.ir.instructions.Instr.clone.

Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode.

Parameters
ii:CloneInfo

This object manages renaming of variables and labels, handles args and return values.

Returns:Instr

a new instruction that can be used in the target scope.

Annotations
@Override
computeScopeFlagsback to summary
public boolean computeScopeFlags(IRScope scope, EnumSet<IRFlags> flags)

Overrides org.jruby.ir.instructions.CallBase.computeScopeFlags.

Doc from org.jruby.ir.instructions.Instr.computeScopeFlags.

Does this instruction do anything the scope is interested in?

Returns:boolean

true if it modified the scope or set any flags.

Annotations
@Override
decodeback to summary
public static InstanceSuperInstr decode(IRReaderDecoder d)

Hides org.jruby.ir.instructions.CallInstr.decode.

getDefiningModuleback to summary
public Operand getDefiningModule()
interpretback to summary
public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp)

Overrides org.jruby.ir.instructions.CallBase.interpret.

Annotations
@Override
visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.instructions.CallInstr.visit.

Annotations
@Override