org.jruby.compiler.impl
Class StackBasedVariableCompiler

java.lang.Object
  extended by org.jruby.compiler.impl.AbstractVariableCompiler
      extended by org.jruby.compiler.impl.StackBasedVariableCompiler
All Implemented Interfaces:
VariableCompiler

public class StackBasedVariableCompiler
extends AbstractVariableCompiler

Author:
headius

Field Summary
 
Fields inherited from class org.jruby.compiler.impl.AbstractVariableCompiler
argsIndex, arity, closureIndex, method, methodCompiler, tempVariableIndex
 
Constructor Summary
StackBasedVariableCompiler(StandardASMCompiler.AbstractMethodCompiler methodCompiler, SkinnyMethodAdapter method, int scopeIndex, int argsIndex, int closureIndex, int firstTempIndex)
           
 
Method Summary
 void assignLocalVariable(int index)
           
 void assignLocalVariable(int index, int depth)
           
 void beginClass(CompilerCallback bodyPrep, StaticScope scope)
           
 void beginClosure(CompilerCallback argsCallback, StaticScope scope)
           
 void beginMethod(CompilerCallback argsCallback, StaticScope scope)
           
 void retrieveLocalVariable(int index)
           
 void retrieveLocalVariable(int index, int depth)
           
 
Methods inherited from class org.jruby.compiler.impl.AbstractVariableCompiler
assignBackRef, assignLastLine, assignMethodArguments, checkMethodArity, getMethodAdapter, getTempLocal, grabTempLocal, releaseTempLocal, retrieveBackRef, retrieveLastLine, setMethodAdapter, setTempLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackBasedVariableCompiler

public StackBasedVariableCompiler(StandardASMCompiler.AbstractMethodCompiler methodCompiler,
                                  SkinnyMethodAdapter method,
                                  int scopeIndex,
                                  int argsIndex,
                                  int closureIndex,
                                  int firstTempIndex)
Method Detail

beginMethod

public void beginMethod(CompilerCallback argsCallback,
                        StaticScope scope)

beginClass

public void beginClass(CompilerCallback bodyPrep,
                       StaticScope scope)

beginClosure

public void beginClosure(CompilerCallback argsCallback,
                         StaticScope scope)

assignLocalVariable

public void assignLocalVariable(int index)

assignLocalVariable

public void assignLocalVariable(int index,
                                int depth)

retrieveLocalVariable

public void retrieveLocalVariable(int index)

retrieveLocalVariable

public void retrieveLocalVariable(int index,
                                  int depth)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.