| 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 "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
| (...skipping 3466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3477 // Transfer a complete descriptor from the src descriptor array to this | 3477 // Transfer a complete descriptor from the src descriptor array to this |
| 3478 // descriptor array. | 3478 // descriptor array. |
| 3479 void CopyFrom(int index, | 3479 void CopyFrom(int index, |
| 3480 DescriptorArray* src, | 3480 DescriptorArray* src, |
| 3481 const WhitenessWitness&); | 3481 const WhitenessWitness&); |
| 3482 | 3482 |
| 3483 inline void Set(int descriptor_number, | 3483 inline void Set(int descriptor_number, |
| 3484 Descriptor* desc, | 3484 Descriptor* desc, |
| 3485 const WhitenessWitness&); | 3485 const WhitenessWitness&); |
| 3486 | 3486 |
| 3487 inline void Append(Descriptor* desc, const WhitenessWitness&); | |
| 3488 | |
| 3489 // Swap first and second descriptor. | 3487 // Swap first and second descriptor. |
| 3490 inline void SwapSortedKeys(int first, int second); | 3488 inline void SwapSortedKeys(int first, int second); |
| 3491 | 3489 |
| 3492 DISALLOW_IMPLICIT_CONSTRUCTORS(DescriptorArray); | 3490 DISALLOW_IMPLICIT_CONSTRUCTORS(DescriptorArray); |
| 3493 }; | 3491 }; |
| 3494 | 3492 |
| 3495 | 3493 |
| 3496 enum SearchMode { ALL_ENTRIES, VALID_ENTRIES }; | 3494 enum SearchMode { ALL_ENTRIES, VALID_ENTRIES }; |
| 3497 | 3495 |
| 3498 template<SearchMode search_mode, typename T> | 3496 template<SearchMode search_mode, typename T> |
| (...skipping 7656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11155 } else { | 11153 } else { |
| 11156 value &= ~(1 << bit_position); | 11154 value &= ~(1 << bit_position); |
| 11157 } | 11155 } |
| 11158 return value; | 11156 return value; |
| 11159 } | 11157 } |
| 11160 }; | 11158 }; |
| 11161 | 11159 |
| 11162 } } // namespace v8::internal | 11160 } } // namespace v8::internal |
| 11163 | 11161 |
| 11164 #endif // V8_OBJECTS_H_ | 11162 #endif // V8_OBJECTS_H_ |
| OLD | NEW |