| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3951 | 3951 |
| 3952 | 3952 |
| 3953 class NameDictionary: public Dictionary<NameDictionaryShape, Name*> { | 3953 class NameDictionary: public Dictionary<NameDictionaryShape, Name*> { |
| 3954 public: | 3954 public: |
| 3955 static inline NameDictionary* cast(Object* obj) { | 3955 static inline NameDictionary* cast(Object* obj) { |
| 3956 ASSERT(obj->IsDictionary()); | 3956 ASSERT(obj->IsDictionary()); |
| 3957 return reinterpret_cast<NameDictionary*>(obj); | 3957 return reinterpret_cast<NameDictionary*>(obj); |
| 3958 } | 3958 } |
| 3959 | 3959 |
| 3960 // Copies enumerable keys to preallocated fixed array. | 3960 // Copies enumerable keys to preallocated fixed array. |
| 3961 FixedArray* CopyEnumKeysTo(FixedArray* storage); | 3961 void CopyEnumKeysTo(FixedArray* storage); |
| 3962 static void DoGenerateNewEnumerationIndices( | 3962 static void DoGenerateNewEnumerationIndices( |
| 3963 Handle<NameDictionary> dictionary); | 3963 Handle<NameDictionary> dictionary); |
| 3964 | 3964 |
| 3965 // For transforming properties of a JSObject. | 3965 // For transforming properties of a JSObject. |
| 3966 MUST_USE_RESULT MaybeObject* TransformPropertiesToFastFor( | 3966 MUST_USE_RESULT MaybeObject* TransformPropertiesToFastFor( |
| 3967 JSObject* obj, | 3967 JSObject* obj, |
| 3968 int unused_property_fields); | 3968 int unused_property_fields); |
| 3969 | 3969 |
| 3970 // Find entry for key, otherwise return kNotFound. Optimized version of | 3970 // Find entry for key, otherwise return kNotFound. Optimized version of |
| 3971 // HashTable::FindEntry. | 3971 // HashTable::FindEntry. |
| (...skipping 6791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10763 } else { | 10763 } else { |
| 10764 value &= ~(1 << bit_position); | 10764 value &= ~(1 << bit_position); |
| 10765 } | 10765 } |
| 10766 return value; | 10766 return value; |
| 10767 } | 10767 } |
| 10768 }; | 10768 }; |
| 10769 | 10769 |
| 10770 } } // namespace v8::internal | 10770 } } // namespace v8::internal |
| 10771 | 10771 |
| 10772 #endif // V8_OBJECTS_H_ | 10772 #endif // V8_OBJECTS_H_ |
| OLD | NEW |