Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 795b429a924628626d87d34d973b20126a18447e..0f2659acf5319f33b22bce821d67181cf7602db4 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -1352,10 +1352,6 @@ class Object { |
| // allow kMaxUInt32. |
| inline bool ToArrayIndex(uint32_t* index); |
| - // Returns true if this is a JSValue containing a string and the index is |
| - // < the length of the string. Used to implement [] on strings. |
| - inline bool IsStringObjectWithCharacterAt(uint32_t index); |
| - |
| DECLARE_VERIFIER(Object) |
| #ifdef VERIFY_HEAP |
| // Verify a pointer is a valid object pointer. |
| @@ -2031,6 +2027,7 @@ class JSObject: public JSReceiver { |
| // ElementsKind. |
| inline bool HasFastHoleyElements(); |
| inline bool HasSloppyArgumentsElements(); |
| + inline bool HasStringWrapperElements(); |
| inline bool HasDictionaryElements(); |
| inline bool HasFixedTypedArrayElements(); |
| @@ -2048,6 +2045,8 @@ class JSObject: public JSReceiver { |
| inline bool HasFastArgumentsElements(); |
| inline bool HasSlowArgumentsElements(); |
| + inline bool HasFastStringWrapperElements(); |
| + inline bool HasSlowStringWrapperElements(); |
| inline SeededNumberDictionary* element_dictionary(); // Gets slow elements. |
| // Requires: HasFastElements(). |
| @@ -2635,7 +2634,8 @@ class FixedArray: public FixedArrayBase { |
| public: |
| // Setter and getter for elements. |
| inline Object* get(int index) const; |
| - static inline Handle<Object> get(Handle<FixedArray> array, int index); |
| + static inline Handle<Object> get(FixedArray* array, int index, |
|
Jakob Kummerow
2016/01/26 14:21:24
Taking a raw pointer allows some callers to skip c
|
| + Isolate* isolate); |
| // Setter that uses write barrier. |
| inline void set(int index, Object* value); |
| inline bool is_the_hole(int index); |
| @@ -2722,7 +2722,8 @@ class FixedDoubleArray: public FixedArrayBase { |
| // Setter and getter for elements. |
| inline double get_scalar(int index); |
| inline uint64_t get_representation(int index); |
| - static inline Handle<Object> get(Handle<FixedDoubleArray> array, int index); |
| + static inline Handle<Object> get(FixedDoubleArray* array, int index, |
| + Isolate* isolate); |
| inline void set(int index, double value); |
| inline void set_the_hole(int index); |
| @@ -4558,7 +4559,7 @@ class FixedTypedArray: public FixedTypedArrayBase { |
| DECLARE_CAST(FixedTypedArray<Traits>) |
| inline ElementType get_scalar(int index); |
| - static inline Handle<Object> get(Handle<FixedTypedArray> array, int index); |
| + static inline Handle<Object> get(FixedTypedArray* array, int index); |
| inline void set(int index, ElementType value); |
| static inline ElementType from_int(int value); |
| @@ -5655,6 +5656,7 @@ class Map: public HeapObject { |
| inline bool has_fast_double_elements(); |
| inline bool has_fast_elements(); |
| inline bool has_sloppy_arguments_elements(); |
| + inline bool has_fast_string_wrapper_elements(); |
| inline bool has_fixed_typed_array_elements(); |
| inline bool has_dictionary_elements(); |