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

new FastROptions.ForceSources to generate source sections for all nodes

parent 02753a4d
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,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