Class Scope

java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.Scope

public class Scope extends Operand
Reference a StaticScope/IRScope. This could be used wherever we know a staticscope will be used but we initially favor CurrentScope as it is a single instance and it reduces an object allocation for every scope in the system. Note: we store IRScope because JIT can easily store IRScopes vs making new JIT infrastructure for StaticScope (and from a scoping standpoint these two types are 1:1). However, once we inline we are migrating things referencing a currentscope which no longer exists. In this case, we need replace CurrentScope with a Scope.