Search in sources :

Example 1 with Value

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

the class PrintOp method exec.

@Override
public void exec(Env env) {
    StringBuffer buf = new StringBuffer();
    Value[] operandValues = getOperandValues(env.top());
    for (Value val : operandValues) {
        buf.append(val.toString());
    }
    System.err.println(buf.toString());
}
Also used : Value(org.mmtk.harness.lang.runtime.Value)

Example 2 with Value

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

the class CallIntrinsicOp method exec.

@Override
public void exec(Env env) {
    StackFrame frame = env.top();
    Value[] actuals = getOperandValues(frame);
    if (hasResult) {
        setResult(frame, method.eval(env, actuals));
    } else {
        method.exec(env, actuals);
    }
}
Also used : StackFrame(org.mmtk.harness.lang.runtime.StackFrame) Value(org.mmtk.harness.lang.runtime.Value)

Aggregations

Value (org.mmtk.harness.lang.runtime.Value)2 StackFrame (org.mmtk.harness.lang.runtime.StackFrame)1