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

Side by Side Diff: src/objects.h

Issue 198943002: Simplify GetEnumPropertyKeys and avoid trimming fixed arrays in large object space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix filter Created 6 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/handles.cc ('k') | src/objects.cc » ('j') | no next file with comments »
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 3998 matching lines...) Expand 10 before | Expand all | Expand 10 after
4009 4009
4010 4010
4011 class NameDictionary: public Dictionary<NameDictionaryShape, Name*> { 4011 class NameDictionary: public Dictionary<NameDictionaryShape, Name*> {
4012 public: 4012 public:
4013 static inline NameDictionary* cast(Object* obj) { 4013 static inline NameDictionary* cast(Object* obj) {
4014 ASSERT(obj->IsDictionary()); 4014 ASSERT(obj->IsDictionary());
4015 return reinterpret_cast<NameDictionary*>(obj); 4015 return reinterpret_cast<NameDictionary*>(obj);
4016 } 4016 }
4017 4017
4018 // Copies enumerable keys to preallocated fixed array. 4018 // Copies enumerable keys to preallocated fixed array.
4019 FixedArray* CopyEnumKeysTo(FixedArray* storage); 4019 void CopyEnumKeysTo(FixedArray* storage);
4020 static void DoGenerateNewEnumerationIndices( 4020 static void DoGenerateNewEnumerationIndices(
4021 Handle<NameDictionary> dictionary); 4021 Handle<NameDictionary> dictionary);
4022 4022
4023 // For transforming properties of a JSObject. 4023 // For transforming properties of a JSObject.
4024 MUST_USE_RESULT MaybeObject* TransformPropertiesToFastFor( 4024 MUST_USE_RESULT MaybeObject* TransformPropertiesToFastFor(
4025 JSObject* obj, 4025 JSObject* obj,
4026 int unused_property_fields); 4026 int unused_property_fields);
4027 4027
4028 // Find entry for key, otherwise return kNotFound. Optimized version of 4028 // Find entry for key, otherwise return kNotFound. Optimized version of
4029 // HashTable::FindEntry. 4029 // HashTable::FindEntry.
(...skipping 6729 matching lines...) Expand 10 before | Expand all | Expand 10 after
10759 } else { 10759 } else {
10760 value &= ~(1 << bit_position); 10760 value &= ~(1 << bit_position);
10761 } 10761 }
10762 return value; 10762 return value;
10763 } 10763 }
10764 }; 10764 };
10765 10765
10766 } } // namespace v8::internal 10766 } } // namespace v8::internal
10767 10767
10768 #endif // V8_OBJECTS_H_ 10768 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698