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 3110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3121 | 3121 |
3122 | 3122 |
3123 class StringDictionary: public Dictionary<StringDictionaryShape, String*> { | 3123 class StringDictionary: public Dictionary<StringDictionaryShape, String*> { |
3124 public: | 3124 public: |
3125 static inline StringDictionary* cast(Object* obj) { | 3125 static inline StringDictionary* cast(Object* obj) { |
3126 ASSERT(obj->IsDictionary()); | 3126 ASSERT(obj->IsDictionary()); |
3127 return reinterpret_cast<StringDictionary*>(obj); | 3127 return reinterpret_cast<StringDictionary*>(obj); |
3128 } | 3128 } |
3129 | 3129 |
3130 // Copies enumerable keys to preallocated fixed array. | 3130 // Copies enumerable keys to preallocated fixed array. |
3131 void CopyEnumKeysTo(FixedArray* storage); | 3131 FixedArray* CopyEnumKeysTo(FixedArray* storage); |
3132 static void DoGenerateNewEnumerationIndices( | 3132 static void DoGenerateNewEnumerationIndices( |
3133 Handle<StringDictionary> dictionary); | 3133 Handle<StringDictionary> dictionary); |
3134 | 3134 |
3135 // For transforming properties of a JSObject. | 3135 // For transforming properties of a JSObject. |
3136 MUST_USE_RESULT MaybeObject* TransformPropertiesToFastFor( | 3136 MUST_USE_RESULT MaybeObject* TransformPropertiesToFastFor( |
3137 JSObject* obj, | 3137 JSObject* obj, |
3138 int unused_property_fields); | 3138 int unused_property_fields); |
3139 | 3139 |
3140 // Find entry for key, otherwise return kNotFound. Optimized version of | 3140 // Find entry for key, otherwise return kNotFound. Optimized version of |
3141 // HashTable::FindEntry. | 3141 // HashTable::FindEntry. |
(...skipping 5808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8950 } else { | 8950 } else { |
8951 value &= ~(1 << bit_position); | 8951 value &= ~(1 << bit_position); |
8952 } | 8952 } |
8953 return value; | 8953 return value; |
8954 } | 8954 } |
8955 }; | 8955 }; |
8956 | 8956 |
8957 } } // namespace v8::internal | 8957 } } // namespace v8::internal |
8958 | 8958 |
8959 #endif // V8_OBJECTS_H_ | 8959 #endif // V8_OBJECTS_H_ |
OLD | NEW |