Skip to content

Commit

Permalink
Hide some toDisplayString methods behind TruffleBoundary
Browse files Browse the repository at this point in the history
This fixes native-image build of engine-runner.
  • Loading branch information
Akirathan committed Nov 18, 2024
1 parent 1c56a4c commit 6dd7ac5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.enso.interpreter.node.controlflow.caseexpr;

import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.nodes.Node;
import org.enso.interpreter.runtime.EnsoContext;
import org.enso.interpreter.runtime.data.EnsoObject;
Expand Down Expand Up @@ -30,6 +31,7 @@ static BranchResult success(Object result) {
}

@Override
@TruffleBoundary
public Object toDisplayString(boolean allowSideEffects) {
return "BranchResult(" + isMatched + ")";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.enso.interpreter.node.expression.builtin.meta;

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.RootCallTarget;
import com.oracle.truffle.api.instrumentation.EventBinding;
import com.oracle.truffle.api.interop.InteropException;
Expand Down Expand Up @@ -127,6 +128,7 @@ public Object getExecutionEnvironment(IdExecutionService.Info info) {
}

@Override
@TruffleBoundary
public Object toDisplayString(boolean allowSideEffects) {
String rootName;
if (target.getRootNode() != null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.enso.interpreter.runtime.scope;

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.interop.TruffleObject;
import com.oracle.truffle.api.library.ExportLibrary;
import com.oracle.truffle.api.library.ExportMessage;
Expand Down Expand Up @@ -291,6 +292,7 @@ public String toString() {
}

@Override
@TruffleBoundary
public Object toDisplayString(boolean allowSideEffects) {
return toString();
}
Expand Down

0 comments on commit 6dd7ac5

Please sign in to comment.