| 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 4698 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4709 | 4709 | 
| 4710 | 4710 | 
| 4711 // The cache for maps used by normalized (dictionary mode) objects. | 4711 // The cache for maps used by normalized (dictionary mode) objects. | 
| 4712 // Such maps do not have property descriptors, so a typical program | 4712 // Such maps do not have property descriptors, so a typical program | 
| 4713 // needs very limited number of distinct normalized maps. | 4713 // needs very limited number of distinct normalized maps. | 
| 4714 class NormalizedMapCache: public FixedArray { | 4714 class NormalizedMapCache: public FixedArray { | 
| 4715  public: | 4715  public: | 
| 4716   static const int kEntries = 64; | 4716   static const int kEntries = 64; | 
| 4717 | 4717 | 
| 4718   static Handle<Map> Get(Handle<NormalizedMapCache> cache, | 4718   static Handle<Map> Get(Handle<NormalizedMapCache> cache, | 
| 4719                          Handle<JSObject> object, | 4719                          Handle<Map> fast_map, | 
| 4720                          PropertyNormalizationMode mode); | 4720                          PropertyNormalizationMode mode); | 
| 4721 | 4721 | 
| 4722   void Clear(); | 4722   void Clear(); | 
| 4723 | 4723 | 
| 4724   // Casting | 4724   // Casting | 
| 4725   static inline NormalizedMapCache* cast(Object* obj); | 4725   static inline NormalizedMapCache* cast(Object* obj); | 
| 4726 | 4726 | 
| 4727   DECLARE_VERIFIER(NormalizedMapCache) | 4727   DECLARE_VERIFIER(NormalizedMapCache) | 
| 4728 }; | 4728 }; | 
| 4729 | 4729 | 
| (...skipping 6294 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 11024     } else { | 11024     } else { | 
| 11025       value &= ~(1 << bit_position); | 11025       value &= ~(1 << bit_position); | 
| 11026     } | 11026     } | 
| 11027     return value; | 11027     return value; | 
| 11028   } | 11028   } | 
| 11029 }; | 11029 }; | 
| 11030 | 11030 | 
| 11031 } }  // namespace v8::internal | 11031 } }  // namespace v8::internal | 
| 11032 | 11032 | 
| 11033 #endif  // V8_OBJECTS_H_ | 11033 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|