mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Replace SetOrExtendBoxedOrUnboxedDenseElements with direct calls.
This commit is contained in:
parent
79dfc644d3
commit
c6c456b12b
8 changed files with 70 additions and 77 deletions
|
|
@ -349,6 +349,11 @@ enum class DenseElementResult {
|
|||
Incomplete
|
||||
};
|
||||
|
||||
enum class ShouldUpdateTypes {
|
||||
Update,
|
||||
DontUpdate
|
||||
};
|
||||
|
||||
/*
|
||||
* NativeObject specifies the internal implementation of a native object.
|
||||
*
|
||||
|
|
@ -1147,6 +1152,10 @@ class NativeObject : public ShapedObject
|
|||
elementsRangeWriteBarrierPost(dstStart, count);
|
||||
}
|
||||
|
||||
inline DenseElementResult
|
||||
setOrExtendDenseElements(JSContext* cx, uint32_t start, const Value* vp, uint32_t count,
|
||||
ShouldUpdateTypes updateTypes = ShouldUpdateTypes::Update);
|
||||
|
||||
bool shouldConvertDoubleElements() {
|
||||
return getElementsHeader()->shouldConvertDoubleElements();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue