Skip to content

Commit

Permalink
Address warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jan 3, 2025
1 parent 56011ba commit 4c87f28
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected static final Object doSendGeneric(final Node node, final AbstractSquea
@Cached final LookupMethodNode lookupNode,
@Cached final SqueakObjectClassNode classNode,
@Shared("wrapNode") @Cached final WrapToSqueakNode wrapNode,
@Cached final IndirectCallNode callNode) throws Exception {
@Cached(inline = false) final IndirectCallNode callNode) throws Exception {
final SqueakImageContext image = SqueakImageContext.get(node);
if (message.getLibraryClass() == InteropLibrary.class) {
final NativeObject selector = image.toInteropSelector(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ protected static final Object doDirect(final VirtualFrame frame, final Object re

@ReportPolymorphism.Megamorphic
@Specialization(replaces = "doDirect")
@SuppressWarnings("truffle-static-method")
protected final Object doIndirect(final VirtualFrame frame, final Object receiver,
@Bind("this") final Node node,
@Cached final SqueakObjectClassNode classNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ protected static final Object doDirect(final VirtualFrame frame, final Object re

@ReportPolymorphism.Megamorphic
@Specialization(replaces = "doDirect")
@SuppressWarnings("truffle-static-method")
protected final Object doIndirect(final VirtualFrame frame, final Object receiver, final Object arg1,
@Bind("this") final Node node,
@Cached final SqueakObjectClassNode classNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ protected static final Object doDirect(final VirtualFrame frame, final Object re

@ReportPolymorphism.Megamorphic
@Specialization(replaces = "doDirect")
@SuppressWarnings("truffle-static-method")
protected final Object doIndirect(final VirtualFrame frame, final Object receiver, final Object arg1, final Object arg2,
@Bind("this") final Node node,
@Cached final SqueakObjectClassNode classNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ protected static final Object doDirect(final VirtualFrame frame, final Object re

@ReportPolymorphism.Megamorphic
@Specialization(replaces = "doDirect")
@SuppressWarnings("truffle-static-method")
protected final Object doIndirect(final VirtualFrame frame, final Object receiver, final Object arg1, final Object arg2, final Object arg3,
@Bind("this") final Node node,
@Cached final SqueakObjectClassNode classNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ protected static final Object doDirect(final VirtualFrame frame, final Object re

@ReportPolymorphism.Megamorphic
@Specialization(replaces = "doDirect")
@SuppressWarnings("truffle-static-method")
protected final Object doIndirect(final VirtualFrame frame, final Object receiver, final Object arg1, final Object arg2, final Object arg3, final Object arg4,
@Bind("this") final Node node,
@Cached final SqueakObjectClassNode classNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ protected static final Object doDirect(final VirtualFrame frame, final Object re

@ReportPolymorphism.Megamorphic
@Specialization(replaces = "doDirect")
@SuppressWarnings("truffle-static-method")
protected final Object doIndirect(final VirtualFrame frame, final Object receiver, final Object arg1, final Object arg2, final Object arg3, final Object arg4, final Object arg5,
@Bind("this") final Node node,
@Cached final SqueakObjectClassNode classNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ protected static final Object doDirect(final VirtualFrame frame, final Object re

@ReportPolymorphism.Megamorphic
@Specialization(replaces = "doDirect")
@SuppressWarnings("truffle-static-method")
protected final Object doIndirect(final VirtualFrame frame, final Object receiver, final Object[] arguments,
@Bind("this") final Node node,
@Cached final SqueakObjectClassNode classNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected static final Object doContextOrMarker(final VirtualFrame frame,
@Specialization(replaces = "doContextOrMarker")
protected static final Object doContext(final VirtualFrame frame,
@Bind("this") final Node node,
@Cached final GetOrCreateContextNode getOrCreateContextNode) {
@Cached(inline = true) final GetOrCreateContextNode getOrCreateContextNode) {
return getOrCreateContextNode.executeGet(frame, node);
}
}

0 comments on commit 4c87f28

Please sign in to comment.