| 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 7192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7203 return key; | 7203 return key; |
| 7204 } | 7204 } |
| 7205 | 7205 |
| 7206 | 7206 |
| 7207 Handle<FixedArray> NameDictionary::DoGenerateNewEnumerationIndices( | 7207 Handle<FixedArray> NameDictionary::DoGenerateNewEnumerationIndices( |
| 7208 Handle<NameDictionary> dictionary) { | 7208 Handle<NameDictionary> dictionary) { |
| 7209 return DerivedDictionary::GenerateNewEnumerationIndices(dictionary); | 7209 return DerivedDictionary::GenerateNewEnumerationIndices(dictionary); |
| 7210 } | 7210 } |
| 7211 | 7211 |
| 7212 | 7212 |
| 7213 template <typename Dictionary> |
| 7214 bool GlobalDictionaryShape::IsDeleted(Dictionary* dict, int entry) { |
| 7215 DCHECK(dict->ValueAt(entry)->IsPropertyCell()); |
| 7216 return PropertyCell::cast(dict->ValueAt(entry))->value()->IsTheHole(); |
| 7217 } |
| 7218 |
| 7219 |
| 7213 bool ObjectHashTableShape::IsMatch(Handle<Object> key, Object* other) { | 7220 bool ObjectHashTableShape::IsMatch(Handle<Object> key, Object* other) { |
| 7214 return key->SameValue(other); | 7221 return key->SameValue(other); |
| 7215 } | 7222 } |
| 7216 | 7223 |
| 7217 | 7224 |
| 7218 uint32_t ObjectHashTableShape::Hash(Handle<Object> key) { | 7225 uint32_t ObjectHashTableShape::Hash(Handle<Object> key) { |
| 7219 return Smi::cast(key->GetHash())->value(); | 7226 return Smi::cast(key->GetHash())->value(); |
| 7220 } | 7227 } |
| 7221 | 7228 |
| 7222 | 7229 |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7655 #undef READ_SHORT_FIELD | 7662 #undef READ_SHORT_FIELD |
| 7656 #undef WRITE_SHORT_FIELD | 7663 #undef WRITE_SHORT_FIELD |
| 7657 #undef READ_BYTE_FIELD | 7664 #undef READ_BYTE_FIELD |
| 7658 #undef WRITE_BYTE_FIELD | 7665 #undef WRITE_BYTE_FIELD |
| 7659 #undef NOBARRIER_READ_BYTE_FIELD | 7666 #undef NOBARRIER_READ_BYTE_FIELD |
| 7660 #undef NOBARRIER_WRITE_BYTE_FIELD | 7667 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7661 | 7668 |
| 7662 } } // namespace v8::internal | 7669 } } // namespace v8::internal |
| 7663 | 7670 |
| 7664 #endif // V8_OBJECTS_INL_H_ | 7671 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |