Skip to content

Commit

Permalink
wasm adapted for member objects interop.
Browse files Browse the repository at this point in the history
  • Loading branch information
entlicher committed Oct 18, 2024
1 parent 82b6bec commit 1c8161f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* Represents an instantiated WebAssembly module.
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings("static-method")
@SuppressWarnings({"static-method", "truffle-abstract-export", "deprecation"})
public final class WasmInstance extends RuntimeState implements TruffleObject {

private List<LinkAction> linkActions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
import com.oracle.truffle.api.profiles.InlinedBranchProfile;

@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"static-method"})
@SuppressWarnings({"static-method", "truffle-abstract-export", "deprecation"})
public final class WasmScope implements TruffleObject {
private final WasmContext context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import com.oracle.truffle.api.library.ExportMessage;

@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export", "deprecation"})
public class Dictionary implements TruffleObject {
private final EconomicMap<String, Object> members;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ private static Object requireImportObject(Object importObject) {
return importObject;
}

@SuppressWarnings("deprecation")
private static Object getImportObjectMemberInParentContext(Object importObject, ImportDescriptor descriptor, WasmContext context) {
TruffleContext parentContext = context.environment().getContext().getParent();
Object prev = parentContext.enter(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
* Represents an object scope in the debug environment.
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings("static-method")
@SuppressWarnings({"static-method", "truffle-abstract-export", "deprecation"})
public final class DebugObjectDisplayValue extends DebugDisplayValue implements TruffleObject {
private final DebugContext context;
private final DebugLocation location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import com.oracle.truffle.api.nodes.Node;

@ExportLibrary(InteropLibrary.class)
@SuppressWarnings("static-method")
@SuppressWarnings({"static-method", "truffle-abstract-export", "deprecation"})
public final class WasmException extends AbstractTruffleException {
private static final long serialVersionUID = -84137683950579647L;

Expand Down

0 comments on commit 1c8161f

Please sign in to comment.