Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/passes/Asyncify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,16 @@
// really know what are doing, and need to optimize every bit of speed
// and size.
//
// As with --asyncify-imports, you can use a response file here.
//
// --pass-arg=asyncify-whitelist@name1,name2,name3
//
// If the whitelist is provided, then only the functions in the list
// will be instrumented. Like the blacklist, getting this wrong will
// break your application.
//
// As with --asyncify-imports, you can use a response file here.
//
// TODO When wasm has GC, extending the live ranges of locals can keep things
// alive unnecessarily. We may want to set locals to null at the end
// of their original range.
Expand Down Expand Up @@ -1047,9 +1051,13 @@ struct Asyncify : public Pass {
auto ignoreIndirect =
runner->options.getArgumentOrDefault("asyncify-ignore-indirect", "");
String::Split blacklist(
runner->options.getArgumentOrDefault("asyncify-blacklist", ""), ",");
String::trim(read_possible_response_file(
runner->options.getArgumentOrDefault("asyncify-blacklist", ""))),
",");
String::Split whitelist(
runner->options.getArgumentOrDefault("asyncify-whitelist", ""), ",");
String::trim(read_possible_response_file(
runner->options.getArgumentOrDefault("asyncify-whitelist", ""))),
",");

blacklist = handleBracketingOperators(blacklist);
whitelist = handleBracketingOperators(whitelist);
Expand Down