Bug 889146 (part 4) - Rename DataView as DataViewObject in comments, where appropriate. r=sfink.

--HG--
extra : rebase_source : 917e1a47c6bc53f8021b03e70582a1a6745fc309
This commit is contained in:
Nicholas Nethercote 2013-07-02 12:48:35 -07:00
Родитель 8f27c095d6
Коммит 892574f1d8
2 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -600,8 +600,8 @@ ArrayBufferObject::createDataViewForThisImpl(JSContext *cx, CallArgs args)
Rooted<JSObject*> buffer(cx, &args.thisv().toObject());
/*
* Pop off the passed-along prototype and delegate to normal DataView
* object construction.
* Pop off the passed-along prototype and delegate to normal DataViewObject
* construction.
*/
CallArgs frobbedArgs = CallArgsFromVp(args.length() - 1, args.base());
return DataViewObject::construct(cx, buffer, frobbedArgs, proto);
@ -1339,7 +1339,7 @@ js::ClampDoubleToUint8(const double x)
}
/*
* This method is used to trace TypedArray and DataView objects. We need a
* This method is used to trace TypedArray and DataViewObjects. We need a
* custom tracer because some of an ArrayBufferViewObject's reserved slots are
* weak references, and some need to be updated specially during moving GCs.
*/
@ -3804,7 +3804,7 @@ DataViewObject::initClass(JSContext *cx)
/*
* Create a helper function to implement the craziness of
* |new DataView(new otherWindow.ArrayBuffer())|, and install it in the
* global for use by the DataView constructor.
* global for use by the DataViewObject constructor.
*/
RootedFunction fun(cx, NewFunction(cx, NullPtr(), ArrayBufferObject::createDataViewForThis,
0, JSFunction::NATIVE_FUN, global, NullPtr()));

Просмотреть файл

@ -39,9 +39,10 @@ typedef Vector<ArrayBufferObject *, 0, SystemAllocPolicy> ArrayBufferVector;
* ArrayBufferObject
*
* This class holds the underlying raw buffer that the various
* ArrayBufferViewObject subclasses (DataView and the TypedArrays) access. It
* can be created explicitly and passed to an ArrayBufferViewObject subclass,
* or can be created implicitly by constructing a TypedArray with a size.
* ArrayBufferViewObject subclasses (DataViewObject and the TypedArrays)
* access. It can be created explicitly and passed to an ArrayBufferViewObject
* subclass, or can be created implicitly by constructing a TypedArray with a
* size.
*/
class ArrayBufferObject : public JSObject
{