Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index f730d2f53591916e35e12f1a2ef4dc2eab1395f0..34edd0a7419ad64f56c875aca0298d3b9f79c8b1 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2420,7 +2420,8 @@ class JSObject: public JSReceiver { |
static inline void EnsureCanContainHeapObjectElements(Handle<JSObject> obj); |
// Makes sure that this object can contain the specified elements. |
- MUST_USE_RESULT inline MaybeObject* EnsureCanContainElements( |
+ static inline void EnsureCanContainElements( |
+ Handle<JSObject> object, |
Object** elements, |
uint32_t count, |
EnsureElementsMode mode); |
@@ -2429,21 +2430,12 @@ class JSObject: public JSReceiver { |
Handle<FixedArrayBase> elements, |
uint32_t length, |
EnsureElementsMode mode); |
- MUST_USE_RESULT inline MaybeObject* EnsureCanContainElements( |
- FixedArrayBase* elements, |
- uint32_t length, |
- EnsureElementsMode mode); |
static void EnsureCanContainElements( |
Handle<JSObject> object, |
Arguments* arguments, |
uint32_t first_arg, |
uint32_t arg_count, |
EnsureElementsMode mode); |
- MUST_USE_RESULT MaybeObject* EnsureCanContainElements( |
- Arguments* arguments, |
- uint32_t first_arg, |
- uint32_t arg_count, |
- EnsureElementsMode mode); |
// Would we convert a fast elements array to dictionary mode given |
// an access at key? |