Search in sources :

Example 1 with HeapValue

use of com.oracle.truffle.api.debug.DebugValue.HeapValue in project graal by oracle.

the class DebugStackFrame method wrapHeapValue.

DebugValue wrapHeapValue(Object result) {
    LanguageInfo language;
    RootNode root = findCurrentRoot();
    if (root != null) {
        language = root.getLanguageInfo();
    } else {
        language = null;
    }
    return new HeapValue(event.getSession().getDebugger(), language, null, result);
}
Also used : LanguageInfo(com.oracle.truffle.api.nodes.LanguageInfo) RootNode(com.oracle.truffle.api.nodes.RootNode) HeapValue(com.oracle.truffle.api.debug.DebugValue.HeapValue)

Aggregations

HeapValue (com.oracle.truffle.api.debug.DebugValue.HeapValue)1 LanguageInfo (com.oracle.truffle.api.nodes.LanguageInfo)1 RootNode (com.oracle.truffle.api.nodes.RootNode)1