Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 16595:618d92152d3c
SL: Added support for instrumentation.
author | David Piorkowski <david.piorkowski@oracle.com> |
---|---|
date | Thu, 24 Jul 2014 16:14:44 -0700 |
parents | 247a6c2fc382 |
children | 0fc43b066eee |
comparison
equal
deleted
inserted
replaced
16592:8084d44c78d3 | 16595:618d92152d3c |
---|---|
150 | 150 |
151 /* Parse the SL source file. */ | 151 /* Parse the SL source file. */ |
152 if (sourceCallback != null) { | 152 if (sourceCallback != null) { |
153 sourceCallback.startLoading(source); | 153 sourceCallback.startLoading(source); |
154 } | 154 } |
155 Parser.parseSL(context, source); | 155 Parser.parseSL(context, source, null); |
156 if (sourceCallback != null) { | 156 if (sourceCallback != null) { |
157 sourceCallback.endLoading(source); | 157 sourceCallback.endLoading(source); |
158 } | 158 } |
159 /* Lookup our main entry point, which is per definition always named "main". */ | 159 /* Lookup our main entry point, which is per definition always named "main". */ |
160 SLFunction main = context.getFunctionRegistry().lookup("main"); | 160 SLFunction main = context.getFunctionRegistry().lookup("main"); |