Skip to content

Commit

Permalink
Add more TruffleBoundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjordan committed May 2, 2021
1 parent ce24d18 commit 50172e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public void executeExceptionalCtrlFlow(VirtualFrame frame, Throwable exception,
* @param key of the current InstrumentableNode
* @return the value of this key
*/
@TruffleBoundary
public Object getAttribute(String key) {
Object result = null;
try {
Expand Down Expand Up @@ -290,6 +291,7 @@ private static boolean isModuleInvocation(Object[] args) {
return false;
}

@TruffleBoundary
protected static void checkForSymbolicLocation(Node node, Object[] args) {
if (GlobalConfiguration.SYMBOLIC_LOCATIONS) {
RootNode root = node.getRootNode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public String getFunctionName() {
* @return the source of the instrumented node (or its closest parent), or null if no source is
* available
*/
@TruffleBoundary
public Source getSource() {
if (isRegularExpression() || this.isBuiltin) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private Object getConfig() {
}

@ExportMessage
@TruffleBoundary
final Object invokeMember(String identifier, Object[] arguments) throws ArityException, UnsupportedTypeException {
ApiMember api;
try {
Expand Down

0 comments on commit 50172e7

Please sign in to comment.