зеркало из https://github.com/mozilla/gecko-dev.git
Mac bustage fix for bug 556187. r=brendan via IRC.
This commit is contained in:
Родитель
e1d31d5039
Коммит
3d9a75a481
|
@ -393,8 +393,10 @@ struct JSObject {
|
|||
static const uint32 JSSLOT_ARRAY_COUNT = JSSLOT_PRIVATE + 1;
|
||||
static const uint32 JSSLOT_ARRAY_UNUSED = JSSLOT_PRIVATE + 2;
|
||||
|
||||
// This must remain true; see comment in js_MakeArraySlow().
|
||||
JS_STATIC_ASSERT(JSSLOT_ARRAY_LENGTH == JSSLOT_PRIVATE);
|
||||
// This assertion must remain true; see comment in js_MakeArraySlow().
|
||||
// (Nb: This method is never called, it just contains a static assertion.
|
||||
// The static assertion isn't inline because that doesn't work on Mac.)
|
||||
inline void staticAssertArrayLengthIsInPrivateSlot();
|
||||
|
||||
public:
|
||||
inline uint32 getArrayLength() const;
|
||||
|
|
|
@ -81,6 +81,11 @@ JSObject::setSlotMT(JSContext *cx, uintN slot, jsval value)
|
|||
#endif
|
||||
}
|
||||
|
||||
inline void JSObject::staticAssertArrayLengthIsInPrivateSlot()
|
||||
{
|
||||
JS_STATIC_ASSERT(JSSLOT_ARRAY_LENGTH == JSSLOT_PRIVATE);
|
||||
}
|
||||
|
||||
inline uint32
|
||||
JSObject::getArrayLength() const
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче