diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-13 11:42:21 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-18 10:26:06 +0000 |
commit | 8d2929313f6f8be66770f1137fa54a0825a3c768 (patch) | |
tree | 3a14a57d160379b0d41136d7cf9ae0b1c57e57b3 /js/src/vm/UnboxedObject-inl.h | |
parent | 3c878b1e3bbb043b22ab032bce1fe111b8062ca9 (diff) | |
download | UXP-8d2929313f6f8be66770f1137fa54a0825a3c768.tar UXP-8d2929313f6f8be66770f1137fa54a0825a3c768.tar.gz UXP-8d2929313f6f8be66770f1137fa54a0825a3c768.tar.lz UXP-8d2929313f6f8be66770f1137fa54a0825a3c768.tar.xz UXP-8d2929313f6f8be66770f1137fa54a0825a3c768.zip |
Clean up and rename MoveBoxedOrUnboxedDenseElements.
Diffstat (limited to 'js/src/vm/UnboxedObject-inl.h')
-rw-r--r-- | js/src/vm/UnboxedObject-inl.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/js/src/vm/UnboxedObject-inl.h b/js/src/vm/UnboxedObject-inl.h index 069527141..193ca75c8 100644 --- a/js/src/vm/UnboxedObject-inl.h +++ b/js/src/vm/UnboxedObject-inl.h @@ -210,22 +210,6 @@ SetOrExtendBoxedOrUnboxedDenseElements(ExclusiveContext* cx, JSObject* obj, return DenseElementResult::Success; } -static inline DenseElementResult -MoveBoxedOrUnboxedDenseElements(JSContext* cx, JSObject* obj, uint32_t dstStart, uint32_t srcStart, - uint32_t length) -{ - MOZ_ASSERT(obj->isNative()); - - if (obj->as<NativeObject>().denseElementsAreFrozen()) - return DenseElementResult::Incomplete; - - if (!obj->as<NativeObject>().maybeCopyElementsForWrite(cx)) - return DenseElementResult::Failure; - obj->as<NativeObject>().moveDenseElements(dstStart, srcStart, length); - - return DenseElementResult::Success; -} - } // namespace js #endif // vm_UnboxedObject_inl_h |