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 249681 106557b12647c0b240f20b0fc7fa78763d8bcfd5
parent 249680 ec7123fe5e5aedeb604eca553476e002c4976fce
child 249682 fba66e1d63eeaec7db260c34c1774eaf9f164400
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstill, lmandel
bugs1128196
milestone37.0a2
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;
     }