org.jetbrains.jet.codegen
Class StackValue.OnStack

java.lang.Object
  extended by org.jetbrains.jet.codegen.StackValue
      extended by org.jetbrains.jet.codegen.StackValue.OnStack
Enclosing class:
StackValue

public static class StackValue.OnStack
extends StackValue


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jetbrains.jet.codegen.StackValue
StackValue.CallReceiver, StackValue.Composed, StackValue.Constant, StackValue.Field, StackValue.Local, StackValue.OnStack, StackValue.Shared, StackValue.StackValueWithSimpleReceiver
 
Field Summary
 
Fields inherited from class org.jetbrains.jet.codegen.StackValue
type
 
Constructor Summary
StackValue.OnStack(org.jetbrains.asm4.Type type)
           
 
Method Summary
 void moveToTopOfStack(org.jetbrains.asm4.Type type, org.jetbrains.asm4.commons.InstructionAdapter v, int depth)
          This method is called to put the value on the top of the JVM stack if depth other values have been put on the JVM stack after this value was generated.
 void put(org.jetbrains.asm4.Type type, org.jetbrains.asm4.commons.InstructionAdapter v)
          Put this value to the top of the stack.
 
Methods inherited from class org.jetbrains.jet.codegen.StackValue
arrayElement, cmp, coerce, coerceFrom, coerceTo, collectionElement, composed, condJump, constant, dupReceiver, expression, field, fieldForSharedVar, local, none, not, onStack, postIncrement, preIncrement, property, putAsBoolean, putUnitInstance, receiver, receiverSize, receiverWithoutReceiverArgument, refType, shared, sharedTypeForType, singleton, store, thisOrOuter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackValue.OnStack

public StackValue.OnStack(org.jetbrains.asm4.Type type)
Method Detail

put

public void put(org.jetbrains.asm4.Type type,
                org.jetbrains.asm4.commons.InstructionAdapter v)
Description copied from class: StackValue
Put this value to the top of the stack.

Specified by:
put in class StackValue

moveToTopOfStack

public void moveToTopOfStack(org.jetbrains.asm4.Type type,
                             org.jetbrains.asm4.commons.InstructionAdapter v,
                             int depth)
Description copied from class: StackValue
This method is called to put the value on the top of the JVM stack if depth other values have been put on the JVM stack after this value was generated.

Overrides:
moveToTopOfStack in class StackValue
Parameters:
type - the type as which the value should be put
v - the visitor used to genClassOrObject the instructions
depth - the number of new values put onto the stack