Sun SPOT API
Green Release  


com.sun.squawk.vm
Class SC

java.lang.Object
  extended by com.sun.squawk.vm.SC

public class SC
extends Object

This class contains the offsets that define that define the layout of the array (of type "[-local-") that implements a stack for a thread.


Field Summary
static int guard
          This is a word that is always unused.
static int lastBCI
          The bytecode index of the next instruction to be executed in the inner most activation frame's method.
static int lastFP
          The pointer to the inner most activation frame in the stack.
static int limit
          The offset of the stack limit (i.e.
static int next
          The index of the pointer to the next stack chunk in a list of stack chunks.
static int owner
          The index of the pointer to the VMThread instance that owns this chunk.
 
Constructor Summary
SC()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public static final int next
The index of the pointer to the next stack chunk in a list of stack chunks. This is only used by a generational collector.

See Also:
Constant Field Values

owner

public static final int owner
The index of the pointer to the VMThread instance that owns this chunk.

See Also:
Constant Field Values

lastFP

public static final int lastFP
The pointer to the inner most activation frame in the stack.

See Also:
Constant Field Values

lastBCI

public static final int lastBCI
The bytecode index of the next instruction to be executed in the inner most activation frame's method.

See Also:
Constant Field Values

guard

public static final int guard
This is a word that is always unused. If this word is ever non-zero then an overflow of the stack has occurred.

See Also:
Constant Field Values

limit

public static final int limit
The offset of the stack limit (i.e. the last slot that can be used without overwriting one of the header slots defined above). : : | parmN | 8 +------------------+ + | returnIP | 7 | +------------------+ | | returnFP | 6 } FIXED_FRAME_SIZE +------------------+ | sl -->| MP | 5 | +==================+ + | guard | 4 +------------------+ | lastBCI | 3 +------------------+ | lastFP | 2 +------------------+ | owner | 1 +------------------+ | next | 0 +------------------+

See Also:
Constant Field Values
Constructor Detail

SC

public SC()

Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.