Land bug 974751. r=jandem

This commit is contained in:
Till Schneidereit 2014-02-28 17:22:47 +13:00
parent 02cca576b9
commit 2df2e3c79e
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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) {