Top Constructors Methods
org.jruby.ir.instructions

public Class ZSuperInstr

extends UnresolvedSuperInstr
Class Inheritance
Imports
org.jruby.RubyInstanceConfig, .RubySymbol, org.jruby.ir.IRFlags, .IRScope, .IRVisitor, .Operation, org.jruby.ir.operands.NullBlock, .Operand, .Variable, 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

Constructor Summary

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

public
ZSuperInstr(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.UnresolvedSuperInstr.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.UnresolvedSuperInstr.computeScopeFlags.

Does this instruction do anything the scope is interested in?

public static ZSuperInstr
public Object
public void

Constructor Detail

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

Hides org.jruby.ir.instructions.UnresolvedSuperInstr.decode.

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

Overrides org.jruby.ir.instructions.UnresolvedSuperInstr.interpret.

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

Overrides org.jruby.ir.instructions.UnresolvedSuperInstr.visit.

Annotations
@Override