Skip to content

Commit

Permalink
Add TruffleBoundary.
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Dec 23, 2024
1 parent 32bd042 commit 36e39c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.enso.interpreter.runtime.builtin;

import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.Bind;
import com.oracle.truffle.api.dsl.Cached;
import com.oracle.truffle.api.dsl.Fallback;
Expand Down Expand Up @@ -98,6 +99,7 @@ public static Type uncached(BuiltinObject receiver, @Bind("$node") Node node) {
return getBuiltinType(receiver, ctx).getType();
}

@TruffleBoundary
public static Builtin getBuiltinType(BuiltinObject receiver, EnsoContext ctx) {
return ctx.getBuiltins().getBuiltinType(receiver.builtinName());
}
Expand Down

0 comments on commit 36e39c2

Please sign in to comment.