OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1745 // Element with given index is stored in fast backing store. | 1745 // Element with given index is stored in fast backing store. |
1746 FAST_ELEMENT, | 1746 FAST_ELEMENT, |
1747 | 1747 |
1748 // Element with given index is stored in slow backing store. | 1748 // Element with given index is stored in slow backing store. |
1749 DICTIONARY_ELEMENT | 1749 DICTIONARY_ELEMENT |
1750 }; | 1750 }; |
1751 | 1751 |
1752 LocalElementType HasLocalElement(uint32_t index); | 1752 LocalElementType HasLocalElement(uint32_t index); |
1753 | 1753 |
1754 bool HasElementWithInterceptor(JSReceiver* receiver, uint32_t index); | 1754 bool HasElementWithInterceptor(JSReceiver* receiver, uint32_t index); |
1755 bool HasElementPostInterceptor(JSReceiver* receiver, uint32_t index); | |
1756 | 1755 |
1757 MUST_USE_RESULT MaybeObject* SetFastElement(uint32_t index, | 1756 MUST_USE_RESULT MaybeObject* SetFastElement(uint32_t index, |
1758 Object* value, | 1757 Object* value, |
1759 StrictModeFlag strict_mode, | 1758 StrictModeFlag strict_mode, |
1760 bool check_prototype); | 1759 bool check_prototype); |
1761 | 1760 |
1762 MUST_USE_RESULT MaybeObject* SetDictionaryElement( | 1761 MUST_USE_RESULT MaybeObject* SetDictionaryElement( |
1763 uint32_t index, | 1762 uint32_t index, |
1764 Object* value, | 1763 Object* value, |
1765 PropertyAttributes attributes, | 1764 PropertyAttributes attributes, |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2145 | 2144 |
2146 MUST_USE_RESULT MaybeObject* DeleteElementWithInterceptor(uint32_t index); | 2145 MUST_USE_RESULT MaybeObject* DeleteElementWithInterceptor(uint32_t index); |
2147 | 2146 |
2148 MUST_USE_RESULT MaybeObject* DeleteFastElement(uint32_t index); | 2147 MUST_USE_RESULT MaybeObject* DeleteFastElement(uint32_t index); |
2149 MUST_USE_RESULT MaybeObject* DeleteDictionaryElement(uint32_t index, | 2148 MUST_USE_RESULT MaybeObject* DeleteDictionaryElement(uint32_t index, |
2150 DeleteMode mode); | 2149 DeleteMode mode); |
2151 | 2150 |
2152 bool ReferencesObjectFromElements(FixedArray* elements, | 2151 bool ReferencesObjectFromElements(FixedArray* elements, |
2153 ElementsKind kind, | 2152 ElementsKind kind, |
2154 Object* object); | 2153 Object* object); |
2155 bool HasElementInElements(FixedArray* elements, | |
2156 ElementsKind kind, | |
2157 uint32_t index); | |
2158 | 2154 |
2159 // Returns true if most of the elements backing storage is used. | 2155 // Returns true if most of the elements backing storage is used. |
2160 bool HasDenseElements(); | 2156 bool HasDenseElements(); |
2161 | 2157 |
2162 // Gets the current elements capacity and the number of used elements. | 2158 // Gets the current elements capacity and the number of used elements. |
2163 void GetElementsCapacityAndUsage(int* capacity, int* used); | 2159 void GetElementsCapacityAndUsage(int* capacity, int* used); |
2164 | 2160 |
2165 bool CanSetCallback(String* name); | 2161 bool CanSetCallback(String* name); |
2166 MUST_USE_RESULT MaybeObject* SetElementCallback( | 2162 MUST_USE_RESULT MaybeObject* SetElementCallback( |
2167 uint32_t index, | 2163 uint32_t index, |
(...skipping 6297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8465 } else { | 8461 } else { |
8466 value &= ~(1 << bit_position); | 8462 value &= ~(1 << bit_position); |
8467 } | 8463 } |
8468 return value; | 8464 return value; |
8469 } | 8465 } |
8470 }; | 8466 }; |
8471 | 8467 |
8472 } } // namespace v8::internal | 8468 } } // namespace v8::internal |
8473 | 8469 |
8474 #endif // V8_OBJECTS_H_ | 8470 #endif // V8_OBJECTS_H_ |
OLD | NEW |