| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |