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 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 } | 1093 } |
1094 | 1094 |
1095 PromotionQueue* promotion_queue() { return &promotion_queue_; } | 1095 PromotionQueue* promotion_queue() { return &promotion_queue_; } |
1096 | 1096 |
1097 #ifdef DEBUG | 1097 #ifdef DEBUG |
1098 // Utility used with flag gc-greedy. | 1098 // Utility used with flag gc-greedy. |
1099 void GarbageCollectionGreedyCheck(); | 1099 void GarbageCollectionGreedyCheck(); |
1100 #endif | 1100 #endif |
1101 | 1101 |
1102 void AddGCPrologueCallback( | 1102 void AddGCPrologueCallback( |
1103 GCEpilogueCallback callback, GCType gc_type_filter); | 1103 GCPrologueCallback callback, GCType gc_type_filter); |
1104 void RemoveGCPrologueCallback(GCEpilogueCallback callback); | 1104 void RemoveGCPrologueCallback(GCPrologueCallback callback); |
1105 | 1105 |
1106 void AddGCEpilogueCallback( | 1106 void AddGCEpilogueCallback( |
1107 GCEpilogueCallback callback, GCType gc_type_filter); | 1107 GCEpilogueCallback callback, GCType gc_type_filter); |
1108 void RemoveGCEpilogueCallback(GCEpilogueCallback callback); | 1108 void RemoveGCEpilogueCallback(GCEpilogueCallback callback); |
1109 | 1109 |
1110 void SetGlobalGCPrologueCallback(GCCallback callback) { | 1110 void SetGlobalGCPrologueCallback(GCCallback callback) { |
1111 ASSERT((callback == NULL) ^ (global_gc_prologue_callback_ == NULL)); | 1111 ASSERT((callback == NULL) ^ (global_gc_prologue_callback_ == NULL)); |
1112 global_gc_prologue_callback_ = callback; | 1112 global_gc_prologue_callback_ = callback; |
1113 } | 1113 } |
1114 void SetGlobalGCEpilogueCallback(GCCallback callback) { | 1114 void SetGlobalGCEpilogueCallback(GCCallback callback) { |
(...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2772 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2772 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2773 | 2773 |
2774 private: | 2774 private: |
2775 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2775 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2776 }; | 2776 }; |
2777 #endif // DEBUG || LIVE_OBJECT_LIST | 2777 #endif // DEBUG || LIVE_OBJECT_LIST |
2778 | 2778 |
2779 } } // namespace v8::internal | 2779 } } // namespace v8::internal |
2780 | 2780 |
2781 #endif // V8_HEAP_H_ | 2781 #endif // V8_HEAP_H_ |
OLD | NEW |