From 2224687d4f6bcd8e9a0aefa96b3bd142ffd763cf Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Tue, 5 Sep 2023 16:12:25 +0200 Subject: [PATCH] Register `SubstrateEnterpriseOptimizedCallTarget` for CallTargetBrowser on native TruffleSqueak built with Oracle GraalVM. --- .../de/hpi/swa/trufflesqueak/interop/JavaObjectWrapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/interop/JavaObjectWrapper.java b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/interop/JavaObjectWrapper.java index 3829bfeab..bab1c6971 100644 --- a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/interop/JavaObjectWrapper.java +++ b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/interop/JavaObjectWrapper.java @@ -173,6 +173,7 @@ private boolean ignoredForAOT(final Method method) { case "GraalTruffleRuntime": // superclass of SubstrateTruffleRuntime return !ArrayUtils.containsEqual(new String[]{"getCompileQueue", "getCompilationQueueSize", "getName", "toString"}, methodName); case "SubstrateOptimizedCallTarget": + case "SubstrateEnterpriseOptimizedCallTarget": return !ArrayUtils.containsEqual(new String[]{"getCallCount", "getCallAndLoopCount", "getCallNodes", "getKnownCallSiteCount", "getNonTrivialNodeCount", "toString"}, methodName); case "BackgroundCompileQueue": return !ArrayUtils.containsEqual(new String[]{"getQueueSize", "toString"}, methodName); @@ -226,11 +227,11 @@ protected InteropArray computeValue(final Class type) { "org.graalvm.compiler.truffle.runtime.BackgroundCompileQueue", // For CallTargetBrowser "com.oracle.svm.truffle.api.SubstrateOptimizedCallTarget", + "com.oracle.svm.enterprise.truffle.SubstrateEnterpriseOptimizedCallTarget", "org.graalvm.compiler.truffle.runtime.OptimizedCallTarget", "org.graalvm.compiler.truffle.runtime.OptimizedCallTarget$ArgumentsProfile", "org.graalvm.compiler.truffle.runtime.OptimizedCallTarget$ReturnProfile", "org.graalvm.compiler.truffle.runtime.OptimizedDirectCallNode" - }) { CLASSES_TO_MEMBERS.get(Class.forName(className)); }