comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java @ 16958:997899955e72

Instrumentation: removed ExecutionContext parameter from probe method in Instrumentable SL/Instrumentation: SLRootNode's now store SLContext. New method added to SLStatementNode to find the root node and get its SLContext
author David Piorkowski <david.piorkowski@oracle.com>
date Tue, 26 Aug 2014 11:00:30 -0700
parents 7661cc464239
children e01b0b9a5f88
comparison
equal deleted inserted replaced
16955:7ef0a2355540 16958:997899955e72
128 /* Instantiate the builtin node. This node performs the actual functionality. */ 128 /* Instantiate the builtin node. This node performs the actual functionality. */
129 SLBuiltinNode builtinBodyNode = factory.createNode(argumentNodes, this); 129 SLBuiltinNode builtinBodyNode = factory.createNode(argumentNodes, this);
130 /* The name of the builtin function is specified via an annotation on the node class. */ 130 /* The name of the builtin function is specified via an annotation on the node class. */
131 String name = builtinBodyNode.getClass().getAnnotation(NodeInfo.class).shortName(); 131 String name = builtinBodyNode.getClass().getAnnotation(NodeInfo.class).shortName();
132 /* Wrap the builtin in a RootNode. Truffle requires all AST to start with a RootNode. */ 132 /* Wrap the builtin in a RootNode. Truffle requires all AST to start with a RootNode. */
133 SLRootNode rootNode = new SLRootNode(new FrameDescriptor(), builtinBodyNode, name); 133 SLRootNode rootNode = new SLRootNode(this, new FrameDescriptor(), builtinBodyNode, name);
134 134
135 /* Register the builtin function in our function registry. */ 135 /* Register the builtin function in our function registry. */
136 getFunctionRegistry().register(name, rootNode); 136 getFunctionRegistry().register(name, rootNode);
137 } 137 }
138 138