Bug 816250 - Make it harder to break the JSScript size constraints. r=luke.

This commit is contained in:
Nicholas Nethercote 2012-12-11 17:48:40 -08:00
parent f16b2632f7
commit c2999d8be0

View File

@ -379,6 +379,8 @@ struct JSScript : public js::gc::Cell
js::ScriptSource *scriptSource_; /* source code */ js::ScriptSource *scriptSource_; /* source code */
#ifdef JS_METHODJIT #ifdef JS_METHODJIT
JITScriptSet *mJITInfo; JITScriptSet *mJITInfo;
#else
void *mJITInfoPad;
#endif #endif
js::HeapPtrFunction function_; js::HeapPtrFunction function_;
js::HeapPtrObject enclosingScope_; js::HeapPtrObject enclosingScope_;
@ -479,9 +481,14 @@ struct JSScript : public js::gc::Cell
#ifdef JS_METHODJIT #ifdef JS_METHODJIT
bool debugMode:1; /* script was compiled in debug mode */ bool debugMode:1; /* script was compiled in debug mode */
bool failedBoundsCheck:1; /* script has had hoisted bounds checks fail */ bool failedBoundsCheck:1; /* script has had hoisted bounds checks fail */
#else
bool debugModePad:1;
bool failedBoundsCheckPad:1;
#endif #endif
#ifdef JS_ION #ifdef JS_ION
bool failedShapeGuard:1; /* script has had hoisted shape guard fail */ bool failedShapeGuard:1; /* script has had hoisted shape guard fail */
#else
bool failedShapeGuardPad:1;
#endif #endif
bool invalidatedIdempotentCache:1; /* idempotent cache has triggered invalidation */ bool invalidatedIdempotentCache:1; /* idempotent cache has triggered invalidation */
bool isGenerator:1; /* is a generator */ bool isGenerator:1; /* is a generator */