Skip to content

Create imports through a factory that picks native or bytecode - #174

Open
andreaTP wants to merge 1 commit into
bytecodealliance:mainfrom
andreaTP:redline-import-api
Open

Create imports through a factory that picks native or bytecode#174
andreaTP wants to merge 1 commit into
bytecodealliance:mainfrom
andreaTP:redline-import-api

Conversation

@andreaTP

@andreaTP andreaTP commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Public API for redline cleanup/finalization.

@andreaTP andreaTP left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple of comments

new NameExpr("NativeMachineFactoryProvider"), "discover")));
}

private static void generateImportsMethod(ClassOrInterfaceDeclaration type) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove this generated code in favor of, maybe, another method or an instance method on ImportFactory?

/**
* Creates the memories, tables and globals a module imports.
*
* <p>Natively compiled code reaches an import through a raw address, so it can only

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is ways too long and it brings history with it which is useless for the user.
Should be very short and just tell the minimum important info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant