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

Side by Side Diff: src/objects.h

Issue 1146913002: Change hash table capacity defaults. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/heap/heap.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 3407 matching lines...) Expand 10 before | Expand all | Expand 10 after
3418 if (Shape::UsesSeed) { 3418 if (Shape::UsesSeed) {
3419 return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object); 3419 return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object);
3420 } else { 3420 } else {
3421 return Shape::HashForObject(key, object); 3421 return Shape::HashForObject(key, object);
3422 } 3422 }
3423 } 3423 }
3424 3424
3425 // Returns a new HashTable object. 3425 // Returns a new HashTable object.
3426 MUST_USE_RESULT static Handle<Derived> New( 3426 MUST_USE_RESULT static Handle<Derived> New(
3427 Isolate* isolate, int at_least_space_for, 3427 Isolate* isolate, int at_least_space_for,
3428 MinimumCapacity capacity_option = USE_DEFAULT_MINIMUM_CAPACITY, 3428 MinimumCapacity capacity_option = USE_CUSTOM_MINIMUM_CAPACITY,
3429 PretenureFlag pretenure = NOT_TENURED); 3429 PretenureFlag pretenure = NOT_TENURED);
3430 3430
3431 DECLARE_CAST(HashTable) 3431 DECLARE_CAST(HashTable)
3432 3432
3433 // Garbage collection support. 3433 // Garbage collection support.
3434 void IteratePrefix(ObjectVisitor* visitor); 3434 void IteratePrefix(ObjectVisitor* visitor);
3435 void IterateElements(ObjectVisitor* visitor); 3435 void IterateElements(ObjectVisitor* visitor);
3436 3436
3437 // Find entry for key otherwise return kNotFound. 3437 // Find entry for key otherwise return kNotFound.
3438 inline int FindEntry(Key key); 3438 inline int FindEntry(Key key);
(...skipping 7673 matching lines...) Expand 10 before | Expand all | Expand 10 after
11112 } else { 11112 } else {
11113 value &= ~(1 << bit_position); 11113 value &= ~(1 << bit_position);
11114 } 11114 }
11115 return value; 11115 return value;
11116 } 11116 }
11117 }; 11117 };
11118 11118
11119 } } // namespace v8::internal 11119 } } // namespace v8::internal
11120 11120
11121 #endif // V8_OBJECTS_H_ 11121 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698