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 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1631 return &error_object_list_; | 1631 return &error_object_list_; |
1632 } | 1632 } |
1633 | 1633 |
1634 // Returns the current sweep generation. | 1634 // Returns the current sweep generation. |
1635 int sweep_generation() { | 1635 int sweep_generation() { |
1636 return sweep_generation_; | 1636 return sweep_generation_; |
1637 } | 1637 } |
1638 | 1638 |
1639 inline Isolate* isolate(); | 1639 inline Isolate* isolate(); |
1640 | 1640 |
1641 inline void CallGlobalGCPrologueCallback() { | 1641 void CallGCPrologueCallbacks(GCType gc_type); |
1642 if (global_gc_prologue_callback_ != NULL) global_gc_prologue_callback_(); | 1642 void CallGCEpilogueCallbacks(GCType gc_type); |
1643 } | |
1644 | |
1645 inline void CallGlobalGCEpilogueCallback() { | |
1646 if (global_gc_epilogue_callback_ != NULL) global_gc_epilogue_callback_(); | |
1647 } | |
1648 | 1643 |
1649 inline bool OldGenerationAllocationLimitReached(); | 1644 inline bool OldGenerationAllocationLimitReached(); |
1650 | 1645 |
1651 inline void DoScavengeObject(Map* map, HeapObject** slot, HeapObject* obj) { | 1646 inline void DoScavengeObject(Map* map, HeapObject** slot, HeapObject* obj) { |
1652 scavenging_visitors_table_.GetVisitor(map)(map, slot, obj); | 1647 scavenging_visitors_table_.GetVisitor(map)(map, slot, obj); |
1653 } | 1648 } |
1654 | 1649 |
1655 void QueueMemoryChunkForFree(MemoryChunk* chunk); | 1650 void QueueMemoryChunkForFree(MemoryChunk* chunk); |
1656 void FreeQueuedChunks(); | 1651 void FreeQueuedChunks(); |
1657 | 1652 |
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2897 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2892 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2898 | 2893 |
2899 private: | 2894 private: |
2900 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2895 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2901 }; | 2896 }; |
2902 #endif // DEBUG | 2897 #endif // DEBUG |
2903 | 2898 |
2904 } } // namespace v8::internal | 2899 } } // namespace v8::internal |
2905 | 2900 |
2906 #endif // V8_HEAP_H_ | 2901 #endif // V8_HEAP_H_ |
OLD | NEW |