Skip to content

Commit

Permalink
Do not override the deprecated isCaptureFramesForTrace(Node).
Browse files Browse the repository at this point in the history
(cherry picked from commit db7545b)
  • Loading branch information
iamstolis authored and woess committed Aug 3, 2024
1 parent 3fbfef5 commit 8f85f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
import com.oracle.truffle.api.instrumentation.ProbeNode;
import com.oracle.truffle.api.instrumentation.StandardTags;
import com.oracle.truffle.api.instrumentation.Tag;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.object.HiddenKey;
import com.oracle.truffle.api.profiles.ConditionProfile;
import com.oracle.truffle.js.nodes.JavaScriptBaseNode;
Expand Down Expand Up @@ -213,7 +212,7 @@ private TryCatchNode.GetErrorObjectNode getErrorObject() {
}

@Override
public boolean isCaptureFramesForTrace(@SuppressWarnings("unused") Node currentNode) {
public boolean isCaptureFramesForTrace(@SuppressWarnings("unused") boolean compiledFrame) {
return context.isOptionAsyncStackTraces();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import com.oracle.truffle.api.TruffleStackTraceElement;
import com.oracle.truffle.api.frame.Frame;
import com.oracle.truffle.api.frame.FrameDescriptor;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.NodeInfo;
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.api.source.SourceSection;
Expand Down Expand Up @@ -109,7 +108,7 @@ public boolean isResumption() {
}

@Override
public boolean isCaptureFramesForTrace(@SuppressWarnings("unused") Node currentNode) {
public boolean isCaptureFramesForTrace(@SuppressWarnings("unused") boolean compiledFrame) {
return isFunction() || isResumption();
}

Expand Down

0 comments on commit 8f85f0b

Please sign in to comment.