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

Unified Diff: src/vm/object_memory.cc

Issue 1263043007: Add ImmutableHeap class consisting of parts (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Addressed comments, merged other CL about allocation budget in space Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/vm/object_memory.cc
diff --git a/src/vm/object_memory.cc b/src/vm/object_memory.cc
index b942da5f93137a6041228d52571060c2da5d6c47..0925223c0f39d83e13759ba0d85f87619b40af8e 100644
--- a/src/vm/object_memory.cc
+++ b/src/vm/object_memory.cc
@@ -122,6 +122,10 @@ void Space::AdjustAllocationBudget() {
allocation_budget_ = Utils::Maximum(512 * KB, Used());
}
+void Space::SetAllocationBudget(int new_budget) {
+ allocation_budget_ = new_budget;
+}
+
void Space::PrependSpace(Space* space) {
bool was_empty = is_empty();
« src/vm/immutable_heap.h ('K') | « src/vm/object_memory.h ('k') | src/vm/vm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698