mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1079844 - Rename JS_ARRAYBUFFER_NEUTERED_FLAG to use detachment terminology. r=sfink
--HG-- extra : rebase_source : 73a7c001e495600b6581e78a21dde8ca14bf4fde
This commit is contained in:
parent
b84abf01a3
commit
8264393c32
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user