Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile whamm monitor by default #234

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

thelongmarch-azx
Copy link
Contributor

No description provided.

@thelongmarch-azx thelongmarch-azx marked this pull request as ready for review November 27, 2024 02:30
@@ -204,6 +204,15 @@ component ExecuteOptions {
}
return false;
}
// Returns the execution strategy for a given flag, or default if not found.
def getMode(name: string) -> ExecutionStrategy {
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe "getModeOrDefault"?

@@ -43,8 +43,8 @@ component MonitorOptions {
if (Strings.endsWith(name, ".wasm")) {
var engine = Engine.new();
engine.extensions = Extension.set.all;

var result = engine.loadWasmFile(name); // TODO: limits
var tiering_override = ExecuteOptions.getMode("spc");
Copy link
Owner

Choose a reason for hiding this comment

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

We should probably use the jit mode, because spc will fail for unsupported extensions (opcodes), and jit will fall back to the interpreter.

Copy link
Owner

@titzer titzer left a comment

Choose a reason for hiding this comment

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

lgtm

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.

2 participants