Bug 947782 - Use accessor methods for JSScript uint32/uint16 fields, r=jandem.

This commit is contained in:
Brian Hackett
2013-12-09 11:26:09 -08:00
parent 3cccc91f6c
commit 6a9908e138
46 changed files with 346 additions and 285 deletions

View File

@@ -1562,7 +1562,7 @@ js_NewGenerator(JSContext *cx, const FrameRegs &stackRegs)
(-1 + /* one Value included in JSGenerator */
vplen +
VALUES_PER_STACK_FRAME +
stackfp->script()->nslots) * sizeof(HeapValue);
stackfp->script()->nslots()) * sizeof(HeapValue);
JS_ASSERT(nbytes % sizeof(Value) == 0);
JS_STATIC_ASSERT(sizeof(StackFrame) % sizeof(HeapValue) == 0);