| 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 // Review notes: |     5 // Review notes: | 
|     6 // |     6 // | 
|     7 // - The use of macros in these inline functions may seem superfluous |     7 // - The use of macros in these inline functions may seem superfluous | 
|     8 // but it is absolutely needed to make sure gcc generates optimal |     8 // but it is absolutely needed to make sure gcc generates optimal | 
|     9 // code. gcc is not happy when attempting to inline too deep. |     9 // code. gcc is not happy when attempting to inline too deep. | 
|    10 // |    10 // | 
| (...skipping 3226 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3237          Marking::Color(array) == Marking::WHITE_OBJECT); |  3237          Marking::Color(array) == Marking::WHITE_OBJECT); | 
|  3238 } |  3238 } | 
|  3239  |  3239  | 
|  3240  |  3240  | 
|  3241 DescriptorArray::WhitenessWitness::~WhitenessWitness() { |  3241 DescriptorArray::WhitenessWitness::~WhitenessWitness() { | 
|  3242   marking_->LeaveNoMarkingScope(); |  3242   marking_->LeaveNoMarkingScope(); | 
|  3243 } |  3243 } | 
|  3244  |  3244  | 
|  3245  |  3245  | 
|  3246 int HashTableBase::ComputeCapacity(int at_least_space_for) { |  3246 int HashTableBase::ComputeCapacity(int at_least_space_for) { | 
|  3247   const int kMinCapacity = 32; |  3247   const int kMinCapacity = 4; | 
|  3248   int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2); |  3248   int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2); | 
|  3249   if (capacity < kMinCapacity) { |  3249   if (capacity < kMinCapacity) { | 
|  3250     capacity = kMinCapacity;  // Guarantee min capacity. |  3250     capacity = kMinCapacity;  // Guarantee min capacity. | 
|  3251   } |  3251   } | 
|  3252   return capacity; |  3252   return capacity; | 
|  3253 } |  3253 } | 
|  3254  |  3254  | 
|  3255  |  3255  | 
|  3256 int HashTableBase::ComputeCapacityForSerialization(int at_least_space_for) { |  3256 int HashTableBase::ComputeCapacityForSerialization(int at_least_space_for) { | 
|  3257   return base::bits::RoundUpToPowerOfTwo32(at_least_space_for); |  3257   return base::bits::RoundUpToPowerOfTwo32(at_least_space_for); | 
| (...skipping 4284 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  7542 #undef READ_SHORT_FIELD |  7542 #undef READ_SHORT_FIELD | 
|  7543 #undef WRITE_SHORT_FIELD |  7543 #undef WRITE_SHORT_FIELD | 
|  7544 #undef READ_BYTE_FIELD |  7544 #undef READ_BYTE_FIELD | 
|  7545 #undef WRITE_BYTE_FIELD |  7545 #undef WRITE_BYTE_FIELD | 
|  7546 #undef NOBARRIER_READ_BYTE_FIELD |  7546 #undef NOBARRIER_READ_BYTE_FIELD | 
|  7547 #undef NOBARRIER_WRITE_BYTE_FIELD |  7547 #undef NOBARRIER_WRITE_BYTE_FIELD | 
|  7548  |  7548  | 
|  7549 } }  // namespace v8::internal |  7549 } }  // namespace v8::internal | 
|  7550  |  7550  | 
|  7551 #endif  // V8_OBJECTS_INL_H_ |  7551 #endif  // V8_OBJECTS_INL_H_ | 
| OLD | NEW |