comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/instrument/SLInstrumentTestRunner.java @ 18411:dc2e000bed40

SL: add basic support for creating objects and accessing properties
author Andreas Woess <andreas.woess@jku.at>
date Tue, 18 Nov 2014 23:02:58 +0100
parents 997899955e72
children e3c95cbbb50c
comparison
equal deleted inserted replaced
18410:f444ef4684ec 18411:dc2e000bed40
211 // everything of interest. Parsing must occur before accepting the visitors since 211 // everything of interest. Parsing must occur before accepting the visitors since
212 // the visitor which creates our instrumentation points expects a complete AST. 212 // the visitor which creates our instrumentation points expects a complete AST.
213 213
214 for (SLFunction function : functionList) { 214 for (SLFunction function : functionList) {
215 RootCallTarget rootCallTarget = function.getCallTarget(); 215 RootCallTarget rootCallTarget = function.getCallTarget();
216 rootCallTarget.getRootNode().accept(new SLInstrumenter()); 216 if (rootCallTarget != null) {
217 rootCallTarget.getRootNode().accept(new SLInstrumenter());
218 }
217 } 219 }
218 220
219 // We iterate over all tags the SLInsturmenter tagged as assignments and attach our 221 // We iterate over all tags the SLInsturmenter tagged as assignments and attach our
220 // test instrument to those. 222 // test instrument to those.
221 for (Probe probe : slContext.findProbesTaggedAs(StandardSyntaxTag.ASSIGNMENT)) { 223 for (Probe probe : slContext.findProbesTaggedAs(StandardSyntaxTag.ASSIGNMENT)) {