Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.instructions;
 
public class GetGlobalVariableInstr extends GetInstr {
    public GetGlobalVariableInstr(Variable destString gvarName) {
        super(.destnew GlobalVariable(gvarName), null);
    }
    @Override
    public Instr cloneForInlining(InlinerInfo ii) {
    }
    @Override
    public Object interpret(ThreadContext contextDynamicScope currDynScopeIRubyObject selfObject[] tempBlock block) {
        return getSource().retrieve(contextselfcurrDynScopetemp);
    }
    @Override
    public void visit(IRVisitor visitor) {
        visitor.GetGlobalVariableInstr(this);
    }
New to GrepCode? Check out our FAQ X