| 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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  631   // Marks the object black and pushes it on the marking stack. |  631   // Marks the object black and pushes it on the marking stack. | 
|  632   // This is for non-incremental marking. |  632   // This is for non-incremental marking. | 
|  633   INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); |  633   INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); | 
|  634  |  634  | 
|  635   INLINE(bool MarkObjectWithoutPush(HeapObject* object)); |  635   INLINE(bool MarkObjectWithoutPush(HeapObject* object)); | 
|  636   INLINE(void MarkObjectAndPush(HeapObject* value)); |  636   INLINE(void MarkObjectAndPush(HeapObject* value)); | 
|  637  |  637  | 
|  638   // Marks the object black.  This is for non-incremental marking. |  638   // Marks the object black.  This is for non-incremental marking. | 
|  639   INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); |  639   INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); | 
|  640  |  640  | 
|  641   // Clears the cache of ICs related to this map. |  | 
|  642   INLINE(void ClearCacheOnMap(Map* map)); |  | 
|  643  |  | 
|  644   void ProcessNewlyMarkedObject(HeapObject* obj); |  641   void ProcessNewlyMarkedObject(HeapObject* obj); | 
|  645  |  642  | 
|  646   // Creates back pointers for all map transitions, stores them in |  643   // Creates back pointers for all map transitions, stores them in | 
|  647   // the prototype field.  The original prototype pointers are restored |  644   // the prototype field.  The original prototype pointers are restored | 
|  648   // in ClearNonLiveTransitions().  All JSObject maps |  645   // in ClearNonLiveTransitions().  All JSObject maps | 
|  649   // connected by map transitions have the same prototype object, which |  646   // connected by map transitions have the same prototype object, which | 
|  650   // is why we can use this field temporarily for back pointers. |  647   // is why we can use this field temporarily for back pointers. | 
|  651   void CreateBackPointers(); |  648   void CreateBackPointers(); | 
|  652  |  649  | 
|  653   // Mark a Map and its DescriptorArray together, skipping transitions. |  650   // Mark a Map and its DescriptorArray together, skipping transitions. | 
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  763  |  760  | 
|  764   friend class Heap; |  761   friend class Heap; | 
|  765 }; |  762 }; | 
|  766  |  763  | 
|  767  |  764  | 
|  768 const char* AllocationSpaceName(AllocationSpace space); |  765 const char* AllocationSpaceName(AllocationSpace space); | 
|  769  |  766  | 
|  770 } }  // namespace v8::internal |  767 } }  // namespace v8::internal | 
|  771  |  768  | 
|  772 #endif  // V8_MARK_COMPACT_H_ |  769 #endif  // V8_MARK_COMPACT_H_ | 
| OLD | NEW |