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

Side by Side Diff: src/objects.h

Issue 9317119: Consolidated property counting methods a bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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/handles.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 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 void LocalLookupRealNamedProperty(String* name, LookupResult* result); 1800 void LocalLookupRealNamedProperty(String* name, LookupResult* result);
1801 void LookupRealNamedProperty(String* name, LookupResult* result); 1801 void LookupRealNamedProperty(String* name, LookupResult* result);
1802 void LookupRealNamedPropertyInPrototypes(String* name, LookupResult* result); 1802 void LookupRealNamedPropertyInPrototypes(String* name, LookupResult* result);
1803 void LookupCallbackSetterInPrototypes(String* name, LookupResult* result); 1803 void LookupCallbackSetterInPrototypes(String* name, LookupResult* result);
1804 MUST_USE_RESULT MaybeObject* SetElementWithCallbackSetterInPrototypes( 1804 MUST_USE_RESULT MaybeObject* SetElementWithCallbackSetterInPrototypes(
1805 uint32_t index, Object* value, bool* found, StrictModeFlag strict_mode); 1805 uint32_t index, Object* value, bool* found, StrictModeFlag strict_mode);
1806 void LookupCallback(String* name, LookupResult* result); 1806 void LookupCallback(String* name, LookupResult* result);
1807 1807
1808 // Returns the number of properties on this object filtering out properties 1808 // Returns the number of properties on this object filtering out properties
1809 // with the specified attributes (ignoring interceptors). 1809 // with the specified attributes (ignoring interceptors).
1810 int NumberOfLocalProperties(PropertyAttributes filter); 1810 int NumberOfLocalProperties(PropertyAttributes filter = NONE);
1811 // Returns the number of enumerable properties (ignoring interceptors).
1812 int NumberOfEnumProperties();
1813 // Fill in details for properties into storage starting at the specified 1811 // Fill in details for properties into storage starting at the specified
1814 // index. 1812 // index.
1815 void GetLocalPropertyNames(FixedArray* storage, int index); 1813 void GetLocalPropertyNames(FixedArray* storage, int index);
1816 1814
1817 // Returns the number of properties on this object filtering out properties 1815 // Returns the number of properties on this object filtering out properties
1818 // with the specified attributes (ignoring interceptors). 1816 // with the specified attributes (ignoring interceptors).
1819 int NumberOfLocalElements(PropertyAttributes filter); 1817 int NumberOfLocalElements(PropertyAttributes filter);
1820 // Returns the number of enumerable elements (ignoring interceptors). 1818 // Returns the number of enumerable elements (ignoring interceptors).
1821 int NumberOfEnumElements(); 1819 int NumberOfEnumElements();
1822 // Returns the number of elements on this object filtering out elements 1820 // Returns the number of elements on this object filtering out elements
(...skipping 2808 matching lines...) Expand 10 before | Expand all | Expand 10 after
4631 // Returns a copy of the map, with all transitions dropped from the 4629 // Returns a copy of the map, with all transitions dropped from the
4632 // instance descriptors. 4630 // instance descriptors.
4633 MUST_USE_RESULT MaybeObject* CopyDropTransitions(); 4631 MUST_USE_RESULT MaybeObject* CopyDropTransitions();
4634 4632
4635 // Returns the property index for name (only valid for FAST MODE). 4633 // Returns the property index for name (only valid for FAST MODE).
4636 int PropertyIndexFor(String* name); 4634 int PropertyIndexFor(String* name);
4637 4635
4638 // Returns the next free property index (only valid for FAST MODE). 4636 // Returns the next free property index (only valid for FAST MODE).
4639 int NextFreePropertyIndex(); 4637 int NextFreePropertyIndex();
4640 4638
4641 // Returns the number of properties described in instance_descriptors. 4639 // Returns the number of properties described in instance_descriptors
4642 int NumberOfDescribedProperties(); 4640 // filtering out properties with the specified attributes.
4641 int NumberOfDescribedProperties(PropertyAttributes filter = NONE);
4643 4642
4644 // Casting. 4643 // Casting.
4645 static inline Map* cast(Object* obj); 4644 static inline Map* cast(Object* obj);
4646 4645
4647 // Locate an accessor in the instance descriptor. 4646 // Locate an accessor in the instance descriptor.
4648 AccessorDescriptor* FindAccessor(String* name); 4647 AccessorDescriptor* FindAccessor(String* name);
4649 4648
4650 // Code cache operations. 4649 // Code cache operations.
4651 4650
4652 // Clears the code cache. 4651 // Clears the code cache.
(...skipping 3593 matching lines...) Expand 10 before | Expand all | Expand 10 after
8246 } else { 8245 } else {
8247 value &= ~(1 << bit_position); 8246 value &= ~(1 << bit_position);
8248 } 8247 }
8249 return value; 8248 return value;
8250 } 8249 }
8251 }; 8250 };
8252 8251
8253 } } // namespace v8::internal 8252 } } // namespace v8::internal
8254 8253
8255 #endif // V8_OBJECTS_H_ 8254 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698