summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-07-13 23:10:10 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:42 -0400
commit1e700e18f082c81b68452c805d1805e2a3dcfae2 (patch)
treefc625bace8afe6f5da4a310045b3fcf82222b7c8 /js
parentdc42f5e41ee9d235d74c46ab4df9fadadc0f043e (diff)
downloaduxp-1e700e18f082c81b68452c805d1805e2a3dcfae2.tar.gz
Bug 1364573 - Don't relazify class default constructors.
Because of the wacko way we handle toString offsets for class default constructors, those offsets cannot be recovered if we relazify the functions. Luckily there's no reason to relazify them, their JSScripts are very small: either a single 'retrval' for non-derived, and still fairly small for derived.
Diffstat (limited to 'js')
-rw-r--r--js/src/jsscript.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/jsscript.h b/js/src/jsscript.h
index 23ad447180..85eb2938d3 100644
--- a/js/src/jsscript.h
+++ b/js/src/jsscript.h
@@ -1494,6 +1494,7 @@ class JSScript : public js::gc::TenuredCell
bool isRelazifiable() const {
return (selfHosted() || lazyScript) && !hasInnerFunctions_ && !types_ &&
!isGenerator() && !hasBaselineScript() && !hasAnyIonScript() &&
+ !isDefaultClassConstructor() &&
!doNotRelazify_;
}
void setLazyScript(js::LazyScript* lazy) {