зеркало из https://github.com/mozilla/gecko-dev.git
Land bug 974751. r=jandem
This commit is contained in:
Родитель
be8bb76db2
Коммит
5ae21b87ef
|
@ -568,6 +568,7 @@ JSFunction::trace(JSTracer *trc)
|
|||
// - their compartment isn't currently executing scripts or being
|
||||
// debugged
|
||||
// - they are not in the self-hosting compartment
|
||||
// - their 'arguments' object can't escape
|
||||
// - they aren't generators
|
||||
// - they don't have JIT code attached
|
||||
// - they don't have child functions
|
||||
|
|
|
@ -1233,6 +1233,7 @@ class JSScript : public js::gc::BarrieredCell<JSScript>
|
|||
|
||||
bool isRelazifiable() const {
|
||||
return (selfHosted() || lazyScript) &&
|
||||
!(analyzedArgsUsage() && needsArgsObj()) &&
|
||||
!isGenerator() && !hasBaselineScript() && !hasAnyIonScript();
|
||||
}
|
||||
void setLazyScript(js::LazyScript *lazy) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче