mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Land bug 974751. r=jandem
This commit is contained in:
parent
02cca576b9
commit
2df2e3c79e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user