Skip to content

Commit

Permalink
[GR-3157] Trace constant roots.
Browse files Browse the repository at this point in the history
  • Loading branch information
cstancu committed Mar 8, 2017
2 parents fde4a7c + f61e0db commit 2f7198e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.graalvm.compiler.core.common.type.StampFactory;
import org.graalvm.compiler.core.common.type.StampPair;
import org.graalvm.compiler.nodes.CallTargetNode;
import org.graalvm.compiler.nodes.ConstantNode;
import org.graalvm.compiler.nodes.CallTargetNode.InvokeKind;
import org.graalvm.compiler.nodes.FixedGuardNode;
import org.graalvm.compiler.nodes.LogicNode;
Expand Down Expand Up @@ -259,4 +260,9 @@ default ValueNode nullCheckedValue(ValueNode value, DeoptimizationAction action)
}
return value;
}

@SuppressWarnings("unused")
default void notifyReplacedCall(ResolvedJavaMethod targetMethod, ConstantNode node) {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ protected InjectedDependencies createExecute(ProcessingEnvironment env, PrintWri

out.printf(" ConstantNode node = ConstantNode.forConstant(constant, %s, %s);\n", deps.use(WellKnownDependency.META_ACCESS), deps.use(WellKnownDependency.STRUCTURED_GRAPH));
out.printf(" b.push(JavaKind.%s, node);\n", getReturnKind(intrinsicMethod));
out.printf(" b.notifyReplacedCall(targetMethod, node);\n");
out.printf(" return true;\n");

return deps;
Expand Down

0 comments on commit 2f7198e

Please sign in to comment.