jruby/docs BETA
Navigation
org.jruby.ir.transformations.inlining 4
C CFGInliner
C CloneInfo
C InlineCloneInfo
C SimpleCloneInfo
SimpleCloneInfo — members 7+
C new(scope, is_ensure_block, clone_ipc)
C new(scope, is_ensure_block)
M ensure_block_clone_mode?() boolean
M get_renamed_self_variable(self) Variable
M get_renamed_variable(variable) Variable
C rename_label(l)
M should_clone_ipc() boolean
from CloneInfo
M clone_for_cloning_closure(cloned_closure) SimpleCloneInfo
M get_renamed_label(label) Label
M scope() IRScope

org.jruby.ir.transformations.inlining.SimpleCloneInfo

class extends CloneInfo 7 members

Context info for simple cloning operation.

Constructors

new

new ( IRScope scope, boolean is_ensure_block, boolean clone_ipc )
Java: <init>(org.jruby.ir.IRScope scope, boolean isEnsureBlock, boolean cloneIPC)

new

new ( IRScope scope, boolean is_ensure_block )
Java: <init>(org.jruby.ir.IRScope scope, boolean isEnsureBlock)

Instance Methods

ensure_block_clone_mode?

boolean ensure_block_clone_mode? ( )
Java: isEnsureBlockCloneMode() · also: is_ensure_block_clone_mode

get_renamed_self_variable

Variable get_renamed_self_variable ( Variable self )
Java: getRenamedSelfVariable(org.jruby.ir.operands.Variable self)

get_renamed_variable

Variable get_renamed_variable ( Variable variable )
Java: getRenamedVariable(org.jruby.ir.operands.Variable variable)

rename_label

rename_label ( Label l )
Java: renameLabel(org.jruby.ir.operands.Label l)

should_clone_ipc

boolean should_clone_ipc ( )
Java: shouldCloneIPC()

Inherited

from CloneInfo

clone_for_cloning_closure

SimpleCloneInfo clone_for_cloning_closure ( IRClosure cloned_closure )
Java: cloneForCloningClosure(org.jruby.ir.IRClosure clonedClosure)

get_renamed_label

Label get_renamed_label ( Label label )
Java: getRenamedLabel(org.jruby.ir.operands.Label label)

Return a new instance of a label for the newly cloned scope. Maps are maintained because Labels expect to share the same instance across a CFG.

nametypedescription
labelorg.jruby.ir.operands.Labelto be renamed.

Returns: the new Label

scope

IRScope scope ( )
Java: getScope() · also: get_scope

Returns: The IRScope this cloning operation is happening in (or is coming from).