Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 5afb690ee286115282df7ef94bac945e6dbb9c4e..b8c1e93c48471bb3beb1a76b89ec01ed4c4ae7de 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -1502,7 +1502,6 @@ class Object : public MaybeObject { |
| inline bool HasSpecificClassOf(String* name); |
| - MUST_USE_RESULT MaybeObject* ToObject(Isolate* isolate); // ECMA-262 9.9. |
| bool BooleanValue(); // ECMA-262 9.2. |
| // Convert to a JSObject if needed. |
| @@ -2225,7 +2224,6 @@ class JSObject: public JSReceiver { |
| // Requires: HasFastElements(). |
| static Handle<FixedArray> EnsureWritableFastElements( |
| Handle<JSObject> object); |
| - MUST_USE_RESULT inline MaybeObject* EnsureWritableFastElements(); |
| // Collects elements starting at index 0. |
| // Undefined values are placed after non-undefined values. |
| @@ -2509,9 +2507,6 @@ class JSObject: public JSReceiver { |
| Handle<JSObject> object, |
| int capacity, |
| int length); |
| - MUST_USE_RESULT MaybeObject* SetFastDoubleElementsCapacityAndLength( |
| - int capacity, |
| - int length); |
| // Lookup interceptors are used for handling properties controlled by host |
| // objects. |
| @@ -3066,9 +3061,6 @@ class FixedArray: public FixedArrayBase { |
| void Shrink(int length); |
| // Copy operations. |
|
Hannes Payer (out of office)
2014/04/28 15:25:24
operation
Yang
2014/04/28 15:32:18
Done.
|
| - MUST_USE_RESULT inline MaybeObject* Copy(); |
| - MUST_USE_RESULT MaybeObject* CopySize(int new_length, |
| - PretenureFlag pretenure = NOT_TENURED); |
| static Handle<FixedArray> CopySize(Handle<FixedArray> array, |
| int new_length, |
| PretenureFlag pretenure = NOT_TENURED); |
| @@ -3167,9 +3159,6 @@ class FixedDoubleArray: public FixedArrayBase { |
| // Checking for the hole. |
| inline bool is_the_hole(int index); |
| - // Copy operations |
| - MUST_USE_RESULT inline MaybeObject* Copy(); |
| - |
| // Garbage collection support. |
| inline static int SizeFor(int length) { |
| return kHeaderSize + length * kDoubleSize; |
| @@ -3259,9 +3248,6 @@ class ConstantPoolArray: public FixedArrayBase { |
| int number_of_heap_ptr_entries, |
| int number_of_int32_entries); |
| - // Copy operations |
| - MUST_USE_RESULT inline MaybeObject* Copy(); |
| - |
| // Garbage collection support. |
| inline static int SizeFor(int number_of_int64_entries, |
| int number_of_code_ptr_entries, |
| @@ -5296,9 +5282,9 @@ class DeoptimizationInputData: public FixedArray { |
| } |
| // Allocates a DeoptimizationInputData. |
| - MUST_USE_RESULT static MaybeObject* Allocate(Isolate* isolate, |
| - int deopt_entry_count, |
| - PretenureFlag pretenure); |
| + static Handle<DeoptimizationInputData> New(Isolate* isolate, |
| + int deopt_entry_count, |
| + PretenureFlag pretenure); |
| // Casting. |
| static inline DeoptimizationInputData* cast(Object* obj); |
| @@ -5343,9 +5329,9 @@ class DeoptimizationOutputData: public FixedArray { |
| } |
| // Allocates a DeoptimizationOutputData. |
| - MUST_USE_RESULT static MaybeObject* Allocate(Isolate* isolate, |
| - int number_of_deopt_points, |
| - PretenureFlag pretenure); |
| + static Handle<DeoptimizationOutputData> New(Isolate* isolate, |
| + int number_of_deopt_points, |
| + PretenureFlag pretenure); |
| // Casting. |
| static inline DeoptimizationOutputData* cast(Object* obj); |