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

Side by Side Diff: src/heap.h

Issue 227553005: Remove gc greedy mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | 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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 1290
1291 inline void decrement_scan_on_scavenge_pages() { 1291 inline void decrement_scan_on_scavenge_pages() {
1292 scan_on_scavenge_pages_--; 1292 scan_on_scavenge_pages_--;
1293 if (FLAG_gc_verbose) { 1293 if (FLAG_gc_verbose) {
1294 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); 1294 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_);
1295 } 1295 }
1296 } 1296 }
1297 1297
1298 PromotionQueue* promotion_queue() { return &promotion_queue_; } 1298 PromotionQueue* promotion_queue() { return &promotion_queue_; }
1299 1299
1300 #ifdef DEBUG
1301 // Utility used with flag gc-greedy.
1302 void GarbageCollectionGreedyCheck();
1303 #endif
1304
1305 void AddGCPrologueCallback(v8::Isolate::GCPrologueCallback callback, 1300 void AddGCPrologueCallback(v8::Isolate::GCPrologueCallback callback,
1306 GCType gc_type_filter, 1301 GCType gc_type_filter,
1307 bool pass_isolate = true); 1302 bool pass_isolate = true);
1308 void RemoveGCPrologueCallback(v8::Isolate::GCPrologueCallback callback); 1303 void RemoveGCPrologueCallback(v8::Isolate::GCPrologueCallback callback);
1309 1304
1310 void AddGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback, 1305 void AddGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback,
1311 GCType gc_type_filter, 1306 GCType gc_type_filter,
1312 bool pass_isolate = true); 1307 bool pass_isolate = true);
1313 void RemoveGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback); 1308 void RemoveGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback);
1314 1309
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after
3138 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3133 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3139 3134
3140 private: 3135 private:
3141 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3136 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3142 }; 3137 };
3143 #endif // DEBUG 3138 #endif // DEBUG
3144 3139
3145 } } // namespace v8::internal 3140 } } // namespace v8::internal
3146 3141
3147 #endif // V8_HEAP_H_ 3142 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698