| 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 6109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6120 return NameDictionary::cast(properties()); | 6120 return NameDictionary::cast(properties()); |
| 6121 } | 6121 } |
| 6122 | 6122 |
| 6123 | 6123 |
| 6124 SeededNumberDictionary* JSObject::element_dictionary() { | 6124 SeededNumberDictionary* JSObject::element_dictionary() { |
| 6125 ASSERT(HasDictionaryElements()); | 6125 ASSERT(HasDictionaryElements()); |
| 6126 return SeededNumberDictionary::cast(elements()); | 6126 return SeededNumberDictionary::cast(elements()); |
| 6127 } | 6127 } |
| 6128 | 6128 |
| 6129 | 6129 |
| 6130 Handle<JSSetIterator> JSSetIterator::Create( | |
| 6131 Handle<OrderedHashSet> table, | |
| 6132 int kind) { | |
| 6133 return CreateInternal(table->GetIsolate()->set_iterator_map(), table, kind); | |
| 6134 } | |
| 6135 | |
| 6136 | |
| 6137 Handle<JSMapIterator> JSMapIterator::Create( | |
| 6138 Handle<OrderedHashMap> table, | |
| 6139 int kind) { | |
| 6140 return CreateInternal(table->GetIsolate()->map_iterator_map(), table, kind); | |
| 6141 } | |
| 6142 | |
| 6143 | |
| 6144 bool Name::IsHashFieldComputed(uint32_t field) { | 6130 bool Name::IsHashFieldComputed(uint32_t field) { |
| 6145 return (field & kHashNotComputedMask) == 0; | 6131 return (field & kHashNotComputedMask) == 0; |
| 6146 } | 6132 } |
| 6147 | 6133 |
| 6148 | 6134 |
| 6149 bool Name::HasHashCode() { | 6135 bool Name::HasHashCode() { |
| 6150 return IsHashFieldComputed(hash_field()); | 6136 return IsHashFieldComputed(hash_field()); |
| 6151 } | 6137 } |
| 6152 | 6138 |
| 6153 | 6139 |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6869 #undef READ_SHORT_FIELD | 6855 #undef READ_SHORT_FIELD |
| 6870 #undef WRITE_SHORT_FIELD | 6856 #undef WRITE_SHORT_FIELD |
| 6871 #undef READ_BYTE_FIELD | 6857 #undef READ_BYTE_FIELD |
| 6872 #undef WRITE_BYTE_FIELD | 6858 #undef WRITE_BYTE_FIELD |
| 6873 #undef NOBARRIER_READ_BYTE_FIELD | 6859 #undef NOBARRIER_READ_BYTE_FIELD |
| 6874 #undef NOBARRIER_WRITE_BYTE_FIELD | 6860 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 6875 | 6861 |
| 6876 } } // namespace v8::internal | 6862 } } // namespace v8::internal |
| 6877 | 6863 |
| 6878 #endif // V8_OBJECTS_INL_H_ | 6864 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |