Skip to content

Commit

Permalink
Resolve @Bind("$node") warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jan 20, 2025
1 parent a87c5e7 commit 63b3193
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ protected boolean hasArrayElements(@Shared("lib") @CachedLibrary(limit = "LIMIT"
@ExportMessage
@ExportMessage(name = "isArrayElementModifiable")
@TruffleBoundary
protected boolean isArrayElementReadable(final long index, @Bind("$node") final Node node, @Shared("sizeNode") @Cached final ArraySizeNode sizeNode) {
protected boolean isArrayElementReadable(final long index, @Bind final Node node, @Shared("sizeNode") @Cached final ArraySizeNode sizeNode) {
try {
return 0 <= index && index < sizeNode.execute(node, wrappedObject);
} catch (final UnsupportedSpecializationException | UnsupportedMessageException e) {
Expand All @@ -606,7 +606,7 @@ protected boolean isArrayElementInsertable(@SuppressWarnings("unused") final lon

@ExportMessage
@TruffleBoundary
protected long getArraySize(@Bind("$node") final Node node, @Shared("sizeNode") @Cached final ArraySizeNode sizeNode) throws UnsupportedMessageException {
protected long getArraySize(@Bind final Node node, @Shared("sizeNode") @Cached final ArraySizeNode sizeNode) throws UnsupportedMessageException {
try {
return sizeNode.execute(node, wrappedObject);
} catch (final UnsupportedSpecializationException e) {
Expand Down Expand Up @@ -672,7 +672,7 @@ protected static final int doTruffleObject(final TruffleObject object, @CachedLi
}

@ExportMessage
protected Object readArrayElement(final long index, @Bind("$node") final Node node, @Cached final ReadArrayElementNode readNode) throws InvalidArrayIndexException, UnsupportedMessageException {
protected Object readArrayElement(final long index, @Bind final Node node, @Cached final ReadArrayElementNode readNode) throws InvalidArrayIndexException, UnsupportedMessageException {
try {
return readNode.execute(node, wrappedObject, (int) index);
} catch (final ArrayIndexOutOfBoundsException e) {
Expand Down Expand Up @@ -741,7 +741,7 @@ protected static final Object doTruffleObject(final TruffleObject object, final
}

@ExportMessage
protected void writeArrayElement(final long index, final Object value, @Bind("$node") final Node node, @Cached final WriteArrayElementNode writeNode)
protected void writeArrayElement(final long index, final Object value, @Bind final Node node, @Cached final WriteArrayElementNode writeNode)
throws InvalidArrayIndexException, UnsupportedMessageException, UnsupportedTypeException {
try {
writeNode.execute(node, wrappedObject, (int) index, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected boolean hasMetaObject() {
}

@ExportMessage
protected Object getMetaObject(@Bind("$node") final Node node, @Cached final SqueakObjectClassNode classNode) {
protected Object getMetaObject(@Bind final Node node, @Cached final SqueakObjectClassNode classNode) {
return classNode.executeLookup(node, delegate);
}

Expand All @@ -62,7 +62,7 @@ protected abstract static class ToDisplayString {
@Specialization(guards = "guard.check(view.delegate)", assumptions = "dispatchNode.getAssumptions()", limit = "1")
protected static final Object toDisplayString(final SqueakLanguageView view, final boolean allowSideEffects,
@Cached(value = "create(view.delegate)", allowUncached = true) final LookupClassGuard guard,
@Bind("$node") final Node node,
@Bind final Node node,
@Cached(value = "create(guard)", allowUncached = true) final DispatchDirect0Node dispatchNode) {
return dispatchNode.execute(SqueakImageContext.get(node).externalSenderFrame, view.delegate);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public String toString() {

@ExportMessage
protected static final Object send(final AbstractSqueakObject receiver, final Message message, final Object[] arguments,
@SuppressWarnings("unused") @Bind("$node") final Node node,
@SuppressWarnings("unused") @Bind final Node node,
@Cached final PerformInteropSendNode performInteropSendNode) throws Exception {
final SqueakImageContext image = SqueakImageContext.get(node);
final boolean wasActive = image.interrupt.isActive();
Expand Down

0 comments on commit 63b3193

Please sign in to comment.