Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1189)

Side by Side Diff: src/heap.h

Issue 10836234: Fix typo in Add|RemoveGCPrologueCallback (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698