| 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 4837 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4848   // |transitioned_map| when its elements_kind is changed to |elements_kind|. | 4848   // |transitioned_map| when its elements_kind is changed to |elements_kind|. | 
| 4849   MUST_USE_RESULT MaybeObject* AddElementsTransition( | 4849   MUST_USE_RESULT MaybeObject* AddElementsTransition( | 
| 4850       ElementsKind elements_kind, Map* transitioned_map); | 4850       ElementsKind elements_kind, Map* transitioned_map); | 
| 4851 | 4851 | 
| 4852   // Returns the transitioned map for this map with the most generic | 4852   // Returns the transitioned map for this map with the most generic | 
| 4853   // elements_kind that's found in |candidates|, or null handle if no match is | 4853   // elements_kind that's found in |candidates|, or null handle if no match is | 
| 4854   // found at all. | 4854   // found at all. | 
| 4855   Handle<Map> FindTransitionedMap(MapHandleList* candidates); | 4855   Handle<Map> FindTransitionedMap(MapHandleList* candidates); | 
| 4856   Map* FindTransitionedMap(MapList* candidates); | 4856   Map* FindTransitionedMap(MapList* candidates); | 
| 4857 | 4857 | 
|  | 4858   // Zaps the contents of backing data structures in debug mode. Note that the | 
|  | 4859   // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects | 
|  | 4860   // holding weak references when incremental marking is used. | 
|  | 4861 #ifdef DEBUG | 
|  | 4862   void ZapInstanceDescriptors(); | 
|  | 4863   void ZapPrototypeTransitions(); | 
|  | 4864 #endif | 
| 4858 | 4865 | 
| 4859   // Dispatched behavior. | 4866   // Dispatched behavior. | 
| 4860 #ifdef OBJECT_PRINT | 4867 #ifdef OBJECT_PRINT | 
| 4861   inline void MapPrint() { | 4868   inline void MapPrint() { | 
| 4862     MapPrint(stdout); | 4869     MapPrint(stdout); | 
| 4863   } | 4870   } | 
| 4864   void MapPrint(FILE* out); | 4871   void MapPrint(FILE* out); | 
| 4865 #endif | 4872 #endif | 
| 4866 #ifdef DEBUG | 4873 #ifdef DEBUG | 
| 4867   void MapVerify(); | 4874   void MapVerify(); | 
| (...skipping 3792 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 8660     } else { | 8667     } else { | 
| 8661       value &= ~(1 << bit_position); | 8668       value &= ~(1 << bit_position); | 
| 8662     } | 8669     } | 
| 8663     return value; | 8670     return value; | 
| 8664   } | 8671   } | 
| 8665 }; | 8672 }; | 
| 8666 | 8673 | 
| 8667 } }  // namespace v8::internal | 8674 } }  // namespace v8::internal | 
| 8668 | 8675 | 
| 8669 #endif  // V8_OBJECTS_H_ | 8676 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|