Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.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 | 90c6a996f9cd |
comparison
equal
deleted
inserted
replaced
16955:7ef0a2355540 | 16958:997899955e72 |
---|---|
113 final SourceSection functionSrc = source.createSection(functionName, functionStartPos, bodyEndPos - functionStartPos); | 113 final SourceSection functionSrc = source.createSection(functionName, functionStartPos, bodyEndPos - functionStartPos); |
114 final SLStatementNode methodBlock = finishBlock(methodNodes, functionBodyStartPos, bodyEndPos - functionBodyStartPos); | 114 final SLStatementNode methodBlock = finishBlock(methodNodes, functionBodyStartPos, bodyEndPos - functionBodyStartPos); |
115 assert lexicalScope == null : "Wrong scoping of blocks in parser"; | 115 assert lexicalScope == null : "Wrong scoping of blocks in parser"; |
116 | 116 |
117 final SLFunctionBodyNode functionBodyNode = new SLFunctionBodyNode(functionSrc, methodBlock); | 117 final SLFunctionBodyNode functionBodyNode = new SLFunctionBodyNode(functionSrc, methodBlock); |
118 final SLRootNode rootNode = new SLRootNode(frameDescriptor, functionBodyNode, functionName); | 118 final SLRootNode rootNode = new SLRootNode(this.context, frameDescriptor, functionBodyNode, functionName); |
119 | 119 |
120 context.getFunctionRegistry().register(functionName, rootNode); | 120 context.getFunctionRegistry().register(functionName, rootNode); |
121 | 121 |
122 functionStartPos = 0; | 122 functionStartPos = 0; |
123 functionName = null; | 123 functionName = null; |