mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-30 23:21:47 +00:00
More TLSF
This commit is contained in:
@ -167,6 +167,12 @@ else if (args.trapMode !== "allow") {
|
||||
if (args.optimize)
|
||||
module.optimize();
|
||||
|
||||
if (args.runPasses) {
|
||||
if (typeof args.runPasses === "string")
|
||||
args.runPasses = args.runPasses.split(",");
|
||||
module.runPasses(args.runPasses.map(pass => pass.trim()));
|
||||
}
|
||||
|
||||
var hasOutput = false;
|
||||
|
||||
if (args.outFile != null) {
|
||||
|
10
bin/asc.json
10
bin/asc.json
@ -58,11 +58,15 @@
|
||||
"trapMode": {
|
||||
"desc": [
|
||||
"Sets the trap mode to use.",
|
||||
"allow Allow trapping operations. This is the default.",
|
||||
"clamp Replace trapping operations with clamping semantics.",
|
||||
"js Replace trapping operations with JS semantics."
|
||||
" allow Allow trapping operations. This is the default.",
|
||||
" clamp Replace trapping operations with clamping semantics.",
|
||||
" js Replace trapping operations with JS semantics."
|
||||
],
|
||||
"type": "string",
|
||||
"default": "allow"
|
||||
},
|
||||
"runPasses": {
|
||||
"desc": "Specifies additional Binaryen passes to run.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user