Search in sources :

Example 11 with StackFrame

use of org.mmtk.harness.lang.runtime.StackFrame in project JikesRVM by JikesRVM.

the class ExitOp method exec.

@Override
public void exec(Env env) {
    StackFrame frame = env.top();
    int rval = frame.get(operand).getIntValue();
    if (rval == 0) {
        Main.exitWithSuccess();
    }
    Main.exitWithFailure(rval);
}
Also used : StackFrame(org.mmtk.harness.lang.runtime.StackFrame)

Aggregations

StackFrame (org.mmtk.harness.lang.runtime.StackFrame)11 ObjectReference (org.vmmagic.unboxed.ObjectReference)5 OutOfMemory (org.mmtk.harness.exception.OutOfMemory)2 ObjectValue (org.mmtk.harness.lang.runtime.ObjectValue)2 ArrayList (java.util.ArrayList)1 Value (org.mmtk.harness.lang.runtime.Value)1