Skip to content

Commit

Permalink
Replace @Bind("$node") with @Bind.
Browse files Browse the repository at this point in the history
  • Loading branch information
woess committed Dec 5, 2024
1 parent 036df1e commit f9ddbba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ boolean hasBufferElements() {

@ExportMessage
long getBufferSize(
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) {
if (isDetached()) {
Expand All @@ -614,7 +614,7 @@ long getBufferSize(

@ExportMessage
void readBuffer(long byteOffset, byte[] destination, int destinationOffset, int length,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -626,7 +626,7 @@ void readBuffer(long byteOffset, byte[] destination, int destinationOffset, int

@ExportMessage
byte readBufferByte(long byteOffset,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -638,7 +638,7 @@ byte readBufferByte(long byteOffset,

@ExportMessage
short readBufferShort(ByteOrder order, long byteOffset,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -650,7 +650,7 @@ short readBufferShort(ByteOrder order, long byteOffset,

@ExportMessage
int readBufferInt(ByteOrder order, long byteOffset,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -662,7 +662,7 @@ int readBufferInt(ByteOrder order, long byteOffset,

@ExportMessage
long readBufferLong(ByteOrder order, long byteOffset,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -674,7 +674,7 @@ long readBufferLong(ByteOrder order, long byteOffset,

@ExportMessage
float readBufferFloat(ByteOrder order, long byteOffset,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -686,7 +686,7 @@ float readBufferFloat(ByteOrder order, long byteOffset,

@ExportMessage
double readBufferDouble(ByteOrder order, long byteOffset,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -703,7 +703,7 @@ boolean isBufferWritable(@CachedLibrary(limit = "InteropLibraryLimit") @Cached.S

@ExportMessage
void writeBufferByte(long byteOffset, byte value,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -715,7 +715,7 @@ void writeBufferByte(long byteOffset, byte value,

@ExportMessage
void writeBufferShort(ByteOrder order, long byteOffset, short value,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -727,7 +727,7 @@ void writeBufferShort(ByteOrder order, long byteOffset, short value,

@ExportMessage
void writeBufferInt(ByteOrder order, long byteOffset, int value,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -739,7 +739,7 @@ void writeBufferInt(ByteOrder order, long byteOffset, int value,

@ExportMessage
void writeBufferLong(ByteOrder order, long byteOffset, long value,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -751,7 +751,7 @@ void writeBufferLong(ByteOrder order, long byteOffset, long value,

@ExportMessage
void writeBufferFloat(ByteOrder order, long byteOffset, float value,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand All @@ -763,7 +763,7 @@ void writeBufferFloat(ByteOrder order, long byteOffset, float value,

@ExportMessage
void writeBufferDouble(ByteOrder order, long byteOffset, double value,
@Bind("$node") Node node,
@Bind Node node,
@Cached @Cached.Shared("errorBranch") InlinedBranchProfile errorBranch,
@CachedLibrary(limit = "InteropLibraryLimit") @Cached.Shared("interop") InteropLibrary interop) throws UnsupportedMessageException, InvalidBufferOffsetException {
if (isDetached()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static final boolean isExecutable(@SuppressWarnings("unused") WebAssembly

@ExportMessage
public final Object execute(Object[] args,
@Bind("$node") Node node,
@Bind Node node,
@Cached ToWebAssemblyValueNode toWebAssemblyValueNode,
@Cached ToJSValueNode toJSValueNode,
@Cached(value = "createCall()", uncached = "getUncachedCall()") JSFunctionCallNode callNode,
Expand Down

0 comments on commit f9ddbba

Please sign in to comment.