mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 898356 Part 10 -- Barrier updates to private data for typed object views r=terrence
This commit is contained in:
parent
276c1cd4ed
commit
bddb4a0f97
@ -1418,7 +1418,7 @@ TypedObject::attach(ArrayBufferObject &buffer, int32_t offset)
|
||||
JS_ASSERT(offset + size() <= buffer.byteLength());
|
||||
|
||||
buffer.addView(this);
|
||||
setPrivate(buffer.dataPointer() + offset);
|
||||
InitArrayBufferViewDataPointer(this, &buffer, offset);
|
||||
setReservedSlot(JS_TYPEDOBJ_SLOT_BYTEOFFSET, Int32Value(offset));
|
||||
setReservedSlot(JS_TYPEDOBJ_SLOT_OWNER, ObjectValue(buffer));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user