-
Notifications
You must be signed in to change notification settings - Fork 40
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
base: master
Are you sure you want to change the base?
Conversation
src/engine/Execute.v3
Outdated
@@ -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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "getModeOrDefault"?
src/monitors/MonitorOptions.v3
Outdated
@@ -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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.