Skip to content

Commit cc4067d

Browse files
committed
Resolve @Bind("$node") warning
1 parent 360f3ab commit cc4067d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/interop/JavaObjectWrapper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ protected boolean hasArrayElements(@Shared("lib") @CachedLibrary(limit = "LIMIT"
591591
@ExportMessage
592592
@ExportMessage(name = "isArrayElementModifiable")
593593
@TruffleBoundary
594-
protected boolean isArrayElementReadable(final long index, @Bind("$node") final Node node, @Shared("sizeNode") @Cached final ArraySizeNode sizeNode) {
594+
protected boolean isArrayElementReadable(final long index, @Bind final Node node, @Shared("sizeNode") @Cached final ArraySizeNode sizeNode) {
595595
try {
596596
return 0 <= index && index < sizeNode.execute(node, wrappedObject);
597597
} catch (final UnsupportedSpecializationException | UnsupportedMessageException e) {
@@ -606,7 +606,7 @@ protected boolean isArrayElementInsertable(@SuppressWarnings("unused") final lon
606606

607607
@ExportMessage
608608
@TruffleBoundary
609-
protected long getArraySize(@Bind("$node") final Node node, @Shared("sizeNode") @Cached final ArraySizeNode sizeNode) throws UnsupportedMessageException {
609+
protected long getArraySize(@Bind final Node node, @Shared("sizeNode") @Cached final ArraySizeNode sizeNode) throws UnsupportedMessageException {
610610
try {
611611
return sizeNode.execute(node, wrappedObject);
612612
} catch (final UnsupportedSpecializationException e) {
@@ -672,7 +672,7 @@ protected static final int doTruffleObject(final TruffleObject object, @CachedLi
672672
}
673673

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

743743
@ExportMessage
744-
protected void writeArrayElement(final long index, final Object value, @Bind("$node") final Node node, @Cached final WriteArrayElementNode writeNode)
744+
protected void writeArrayElement(final long index, final Object value, @Bind final Node node, @Cached final WriteArrayElementNode writeNode)
745745
throws InvalidArrayIndexException, UnsupportedMessageException, UnsupportedTypeException {
746746
try {
747747
writeNode.execute(node, wrappedObject, (int) index, value);

src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/interop/SqueakLanguageView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected boolean hasMetaObject() {
5252
}
5353

5454
@ExportMessage
55-
protected Object getMetaObject(@Bind("$node") final Node node, @Cached final SqueakObjectClassNode classNode) {
55+
protected Object getMetaObject(@Bind final Node node, @Cached final SqueakObjectClassNode classNode) {
5656
return classNode.executeLookup(node, delegate);
5757
}
5858

@@ -62,7 +62,7 @@ protected abstract static class ToDisplayString {
6262
@Specialization(guards = "guard.check(view.delegate)", assumptions = "dispatchNode.getAssumptions()", limit = "1")
6363
protected static final Object toDisplayString(final SqueakLanguageView view, final boolean allowSideEffects,
6464
@Cached(value = "create(view.delegate)", allowUncached = true) final LookupClassGuard guard,
65-
@Bind("$node") final Node node,
65+
@Bind final Node node,
6666
@Cached(value = "create(guard)", allowUncached = true) final DispatchDirect0Node dispatchNode) {
6767
return dispatchNode.execute(SqueakImageContext.get(node).externalSenderFrame, view.delegate);
6868
}

src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/model/AbstractSqueakObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public String toString() {
6363

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

0 commit comments

Comments
 (0)