Skip to content
Snippets Groups Projects
Commit 55bd020f authored by Lukas Stadler's avatar Lukas Stadler
Browse files

Merge pull request #557 in G/fastr from...

Merge pull request #557 in G/fastr from ~LUKAS.STADLER_ORACLE.COM/fastr:feature/force_sources to master

* commit '806c6a62':
  new FastROptions.ForceSources to generate source sections for all nodes
parents 6131790f 806c6a62
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,11 @@ public final class RASTBuilder implements RCodeBuilder<RSyntaxNode> {
FrameDescriptor descriptor = new FrameDescriptor();
FrameSlotChangeMonitor.initializeFunctionFrameDescriptor(name != null && !name.isEmpty() ? name : "<function>", descriptor);
FunctionDefinitionNode rootNode = FunctionDefinitionNode.create(source, descriptor, argSourceSections, saveArguments, body, formals, name, argPostProcess);
if (FastROptions.ForceSources.getBooleanValue()) {
// forces source sections to be generated
rootNode.getSourceSection();
}
return Truffle.getRuntime().createCallTarget(rootNode);
}
......
......@@ -53,6 +53,7 @@ public enum FastROptions {
RefCountIncrementOnly("Disable reference count decrements for experimental state transition implementation", false),
UseInternalGraphics("Whether the internal (Java) graphics subsystem should be used", false),
UseSpecials("Whether the fast-path special call nodes should be created for simple enough arguments.", true),
ForceSources("Generate source sections for unserialized code", false),
// Promises optimizations
EagerEval("If enabled, overrides all other EagerEval switches (see EagerEvalHelper)", false),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment