Bug 1079844 - Rename JS_ARRAYBUFFER_NEUTERED_FLAG to use detachment terminology. r=sfink

This commit is contained in:
Jeff Walden 2016-01-24 23:41:39 -08:00
parent 477cc37aff
commit 39f64bcf63
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ function IsDetachedBuffer(buffer) {
return false;
var flags = UnsafeGetInt32FromReservedSlot(buffer, JS_ARRAYBUFFER_FLAGS_SLOT);
return (flags & JS_ARRAYBUFFER_NEUTERED_FLAG) !== 0;
return (flags & JS_ARRAYBUFFER_DETACHED_FLAG) !== 0;
}
function GetAttachedArrayBuffer(tarray) {

View File

@ -28,7 +28,7 @@
#define JS_ARRAYBUFFER_FLAGS_SLOT 3
#define JS_ARRAYBUFFER_NEUTERED_FLAG 0x4
#define JS_ARRAYBUFFER_DETACHED_FLAG 0x4
///////////////////////////////////////////////////////////////////////////
// Slots for typed prototypes

View File

@ -159,7 +159,7 @@ class ArrayBufferObject : public ArrayBufferObjectMaybeShared
TYPED_OBJECT_VIEWS = 0x20
};
static_assert(JS_ARRAYBUFFER_NEUTERED_FLAG == DETACHED,
static_assert(JS_ARRAYBUFFER_DETACHED_FLAG == DETACHED,
"self-hosted code with burned-in constants must use the "
"correct DETACHED bit value");
public: