From c2999d8be0e6cafccaa2e8e32294c8afc6ffdca3 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 11 Dec 2012 17:48:40 -0800 Subject: [PATCH] Bug 816250 - Make it harder to break the JSScript size constraints. r=luke. --- js/src/jsscript.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/src/jsscript.h b/js/src/jsscript.h index 182a6d5b960..103e82f040d 100644 --- a/js/src/jsscript.h +++ b/js/src/jsscript.h @@ -379,6 +379,8 @@ struct JSScript : public js::gc::Cell js::ScriptSource *scriptSource_; /* source code */ #ifdef JS_METHODJIT JITScriptSet *mJITInfo; +#else + void *mJITInfoPad; #endif js::HeapPtrFunction function_; js::HeapPtrObject enclosingScope_; @@ -479,9 +481,14 @@ struct JSScript : public js::gc::Cell #ifdef JS_METHODJIT bool debugMode:1; /* script was compiled in debug mode */ bool failedBoundsCheck:1; /* script has had hoisted bounds checks fail */ +#else + bool debugModePad:1; + bool failedBoundsCheckPad:1; #endif #ifdef JS_ION bool failedShapeGuard:1; /* script has had hoisted shape guard fail */ +#else + bool failedShapeGuardPad:1; #endif bool invalidatedIdempotentCache:1; /* idempotent cache has triggered invalidation */ bool isGenerator:1; /* is a generator */