summaryrefslogtreecommitdiffstats
path: root/js/src
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-12-01 22:39:36 +0000
committerMoonchild <moonchild@palemoon.org>2020-12-01 22:39:36 +0000
commit433ed209baa888cd8d5537f3c02d80202e338eec (patch)
tree12ca25f629c0aaecc2288fffd4e621c65958133f /js/src
parentb1bbc9286d88d4d298c7422ae3678df51800a507 (diff)
downloadUXP-433ed209baa888cd8d5537f3c02d80202e338eec.tar
UXP-433ed209baa888cd8d5537f3c02d80202e338eec.tar.gz
UXP-433ed209baa888cd8d5537f3c02d80202e338eec.tar.lz
UXP-433ed209baa888cd8d5537f3c02d80202e338eec.tar.xz
UXP-433ed209baa888cd8d5537f3c02d80202e338eec.zip
Revert "Issue #1624 - Exclude function scopes from Ion compilation."
This reverts commit bb31c1c65e8b7fcdd3a1d6b80a4fe4c1f5b3d10a.
Diffstat (limited to 'js/src')
-rw-r--r--js/src/jsscript.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/js/src/jsscript.h b/js/src/jsscript.h
index dfe0e486e..d8d28ebeb 100644
--- a/js/src/jsscript.h
+++ b/js/src/jsscript.h
@@ -1443,14 +1443,7 @@ class JSScript : public js::gc::TenuredCell
return res;
}
bool canIonCompile() const {
- // Exclude function scopes from Ion compilation.
- // This is necessary to work around an issue with module scripts causing crashes
- // with the function stack in Ion if module code is declared in-line.
- // See Issue #1624
- // XXX: Perhaps we can further fine-grain select which types of function scope
- // we have to exclude?
- return (ion != ION_DISABLED_SCRIPT &&
- !bodyScope()->is<js::FunctionScope>());
+ return ion != ION_DISABLED_SCRIPT;
}
bool isIonCompilingOffThread() const {
return ion == ION_COMPILING_SCRIPT;