Bug 791608 (part 4) - Fix compile warnings about ObjectImpl::getClass(). r=jwalden.

--HG--
extra : rebase_source : dc15218ede7135a3487cb31997e532abccd0d256
This commit is contained in:
Nicholas Nethercote 2012-09-17 17:16:57 -07:00
parent e0b4a1beaa
commit 8faad9e827
2 changed files with 1 additions and 13 deletions

View File

@ -5698,7 +5698,7 @@ JSObject::makeLazyType(JSContext *cx)
if (self->isSlowArray())
type->flags |= OBJECT_FLAG_NON_DENSE_ARRAY | OBJECT_FLAG_NON_PACKED_ARRAY;
if (IsTypedArrayProto(self))
if (IsTypedArrayProtoClass(self->getClass()))
type->flags |= OBJECT_FLAG_NON_TYPED_ARRAY;
self->type_ = type;

View File

@ -286,18 +286,6 @@ IsTypedArrayProtoClass(const Class *clasp)
clasp < &TypedArray::protoClasses[TypedArray::TYPE_MAX];
}
inline bool
IsTypedArray(JSObject *obj)
{
return IsTypedArrayClass(obj->getClass());
}
inline bool
IsTypedArrayProto(JSObject *obj)
{
return IsTypedArrayProtoClass(obj->getClass());
}
class DataViewObject : public JSObject
{
public: