diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-24 09:14:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-24 09:14:54 -0700 |
commit | 087231e369f5fc44b26be5db1b86af378a67028d (patch) | |
tree | fa782c1bd852cdb6bc267b71149a024ca1b6078c /src/settings.js | |
parent | 9971952dd5199c0b202397ae7d45d7c686c477ef (diff) |
auto-generate library stubs that abort for missing library functions, and implement DEAD_FUNCTIONS that way
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/settings.js b/src/settings.js index 8c7d1f83..c878be92 100644 --- a/src/settings.js +++ b/src/settings.js @@ -342,12 +342,7 @@ var PGO = 0; // Enables profile-guided optimization in the form of runtime check // calling PGOMonitor.dump()); var DEAD_FUNCTIONS = []; // Functions on this list are not converted to JS, and calls to // them are turned into abort()s. This is potentially useful for - // (1) reducing code size, if you know some function will never - // be called (see PGO), and also (2) ASM.js requires all declared - // functions to have a corresponding implementation (even if the - // function is never called) and will emit an error during linking if no - // implementation can be found; with this option, asm.js validation will - // succeed for that function and calls to it. + // reducing code size. // If a dead function is actually called, you will get a runtime // error. // TODO: options to lazily load such functions |