Top Fields Constructors Methods
org.jruby.ir.instructions

public Class UnresolvedSuperInstr

extends CallInstr
Class Inheritance
Known Direct Subclasses
org.jruby.ir.instructions.ZSuperInstr
Imports
org.jcodings.specific.USASCIIEncoding, org.jruby.RubyInstanceConfig, .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, org.jruby.util.ByteList, java.util.EnumSet

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
UnresolvedSuperInstr(IRScope scope, Operation op, Variable result, Operand receiver, Operand[] args, Operand closure, int flags, boolean isPotentiallyRefined, CallSite callSite, long callSiteId)

public
UnresolvedSuperInstr(IRScope scope, Operation op, Variable result, Operand receiver, Operand[] args, Operand closure, int flags, boolean isPotentiallyRefined)

public
UnresolvedSuperInstr(IRScope scope, Variable result, Operand receiver, 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 UnresolvedSuperInstr
public Object
public void
Inherited from org.jruby.ir.instructions.CallInstr:
createencodegetResultupdateResult

Field Detail

DYNAMIC_SUPER_TARGETback to summary
private static final ByteList DYNAMIC_SUPER_TARGET
isLiteralBlockback to summary
private final boolean isLiteralBlock

Constructor Detail

UnresolvedSuperInstrback to summary
public UnresolvedSuperInstr(IRScope scope, Operation op, Variable result, Operand receiver, Operand[] args, Operand closure, int flags, boolean isPotentiallyRefined, CallSite callSite, long callSiteId)
UnresolvedSuperInstrback to summary
public UnresolvedSuperInstr(IRScope scope, Operation op, Variable result, Operand receiver, Operand[] args, Operand closure, int flags, boolean isPotentiallyRefined)
UnresolvedSuperInstrback to summary
public UnresolvedSuperInstr(IRScope scope, Variable result, Operand receiver, 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 UnresolvedSuperInstr decode(IRReaderDecoder d)

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

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