Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Side by Side Diff: src/objects.h

Issue 9572014: Recfactor core HasElement functionality into ElementsAccessors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename parameter Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/elements.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 // Element with given index is stored in fast backing store. 1738 // Element with given index is stored in fast backing store.
1739 FAST_ELEMENT, 1739 FAST_ELEMENT,
1740 1740
1741 // Element with given index is stored in slow backing store. 1741 // Element with given index is stored in slow backing store.
1742 DICTIONARY_ELEMENT 1742 DICTIONARY_ELEMENT
1743 }; 1743 };
1744 1744
1745 LocalElementType HasLocalElement(uint32_t index); 1745 LocalElementType HasLocalElement(uint32_t index);
1746 1746
1747 bool HasElementWithInterceptor(JSReceiver* receiver, uint32_t index); 1747 bool HasElementWithInterceptor(JSReceiver* receiver, uint32_t index);
1748 bool HasElementPostInterceptor(JSReceiver* receiver, uint32_t index);
1749 1748
1750 MUST_USE_RESULT MaybeObject* SetFastElement(uint32_t index, 1749 MUST_USE_RESULT MaybeObject* SetFastElement(uint32_t index,
1751 Object* value, 1750 Object* value,
1752 StrictModeFlag strict_mode, 1751 StrictModeFlag strict_mode,
1753 bool check_prototype); 1752 bool check_prototype);
1754 1753
1755 MUST_USE_RESULT MaybeObject* SetDictionaryElement( 1754 MUST_USE_RESULT MaybeObject* SetDictionaryElement(
1756 uint32_t index, 1755 uint32_t index,
1757 Object* value, 1756 Object* value,
1758 PropertyAttributes attributes, 1757 PropertyAttributes attributes,
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2138 2137
2139 MUST_USE_RESULT MaybeObject* DeleteElementWithInterceptor(uint32_t index); 2138 MUST_USE_RESULT MaybeObject* DeleteElementWithInterceptor(uint32_t index);
2140 2139
2141 MUST_USE_RESULT MaybeObject* DeleteFastElement(uint32_t index); 2140 MUST_USE_RESULT MaybeObject* DeleteFastElement(uint32_t index);
2142 MUST_USE_RESULT MaybeObject* DeleteDictionaryElement(uint32_t index, 2141 MUST_USE_RESULT MaybeObject* DeleteDictionaryElement(uint32_t index,
2143 DeleteMode mode); 2142 DeleteMode mode);
2144 2143
2145 bool ReferencesObjectFromElements(FixedArray* elements, 2144 bool ReferencesObjectFromElements(FixedArray* elements,
2146 ElementsKind kind, 2145 ElementsKind kind,
2147 Object* object); 2146 Object* object);
2148 bool HasElementInElements(FixedArray* elements,
2149 ElementsKind kind,
2150 uint32_t index);
2151 2147
2152 // Returns true if most of the elements backing storage is used. 2148 // Returns true if most of the elements backing storage is used.
2153 bool HasDenseElements(); 2149 bool HasDenseElements();
2154 2150
2155 // Gets the current elements capacity and the number of used elements. 2151 // Gets the current elements capacity and the number of used elements.
2156 void GetElementsCapacityAndUsage(int* capacity, int* used); 2152 void GetElementsCapacityAndUsage(int* capacity, int* used);
2157 2153
2158 bool CanSetCallback(String* name); 2154 bool CanSetCallback(String* name);
2159 MUST_USE_RESULT MaybeObject* SetElementCallback( 2155 MUST_USE_RESULT MaybeObject* SetElementCallback(
2160 uint32_t index, 2156 uint32_t index,
(...skipping 6292 matching lines...) Expand 10 before | Expand all | Expand 10 after
8453 } else { 8449 } else {
8454 value &= ~(1 << bit_position); 8450 value &= ~(1 << bit_position);
8455 } 8451 }
8456 return value; 8452 return value;
8457 } 8453 }
8458 }; 8454 };
8459 8455
8460 } } // namespace v8::internal 8456 } } // namespace v8::internal
8461 8457
8462 #endif // V8_OBJECTS_H_ 8458 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698