Bug 1128196 - Don't relazify scripts with a TypeScript. r=till, a=lmandel
authorJan de Mooij <jdemooij@mozilla.com>
Tue, 10 Feb 2015 09:40:46 +0100
changeset 243750 2f97ce37f5c4
parent 243749 519db3f2d282
child 243751 3287468f6460
push id4461
push userryanvm@gmail.com
push date2015-02-10 22:06 +0000
treeherdermozilla-beta@2f97ce37f5c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstill, lmandel
bugs1128196
milestone36.0
Bug 1128196 - Don't relazify scripts with a TypeScript. r=till, a=lmandel
js/src/jsscript.h
--- a/js/src/jsscript.h
+++ b/js/src/jsscript.h
@@ -1412,17 +1412,17 @@ class JSScript : public js::gc::TenuredC
     uint8_t *baselineOrIonRawPointer() const {
         return baselineOrIonRaw;
     }
     static size_t offsetOfBaselineOrIonSkipArgCheck() {
         return offsetof(JSScript, baselineOrIonSkipArgCheck);
     }
 
     bool isRelazifiable() const {
-        return (selfHosted() || lazyScript) &&
+        return (selfHosted() || lazyScript) && !types_ &&
                !isGenerator() && !hasBaselineScript() && !hasAnyIonScript();
     }
     void setLazyScript(js::LazyScript *lazy) {
         lazyScript = lazy;
     }
     js::LazyScript *maybeLazyScript() {
         return lazyScript;
     }