Skip to content

Commit

Permalink
Improve documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
chumer committed Feb 8, 2023
1 parent b3e720f commit f9c149c
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1222,12 +1222,14 @@ private StructuredGraph lookupGraph(InliningPhaseContext context, Invoke invoke,
* CompilerDirectives.inInterpreter() here we ensure that the call to
* inInterpreter() is later skipped by the host inlining phase.
*
* Alternatively we could just return true in the host compiler directive
* method, but that would require us to introduce a new runtime compilation
* graph builder plugin.
* Alternatively we could just return true in
* HostCompilerDirectives.inInterpreterFastPath() instead of calling
* CompilerDirectives.inInterpreter() to achieve the same result, but that would
* require us to introduce a new Truffle compiler graph builder plugin, that
* intrinsifies inInterpreterFastPath() to be false during runtime compilation.
*
* By solving this here we ensure that this behavior is coupled with the
* TruffleHostInlining phase.
* By solving this with force inlining here we ensure that this behavior is
* coupled with the TruffleHostInlining phase.
*/
int foundCount = 0;
for (MethodCallTargetNode target : graph.getNodes(MethodCallTargetNode.TYPE)) {
Expand Down Expand Up @@ -1433,8 +1435,8 @@ static final class CallTree implements Comparable<CallTree> {
final boolean forceShallowInline;

/**
* True if this method contains a deopt in its first block. Note that we also treat
* exceptions as deopts.
* Set to a value other than {@link BackPropagation#NOTHING} if this method contains a deopt
* or an unwind in its first block.
*/
BackPropagation propagates = BackPropagation.NOTHING;

Expand Down

0 comments on commit f9c149c

Please sign in to comment.