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

Unified Diff: src/isolate.cc

Issue 10448007: Split an allocation policy into an allocator and a deallocator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make TemplateHashMapImpl consistent with the rest of the approach. Created 8 years, 7 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
« no previous file with comments | « src/isolate.h ('k') | src/list.h » ('j') | src/list.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 0c97abd89e8e186722834fad855f9adc4141783b..38d381edc4d49964799ec0878d84d43ade52621c 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -256,7 +256,7 @@ void Isolate::PreallocatedStorageInit(size_t size) {
void* Isolate::PreallocatedStorageNew(size_t size) {
if (!preallocated_storage_preallocated_) {
- return FreeStoreAllocationPolicy::New(size);
+ return FreeStoreAllocator().New(size);
}
ASSERT(free_list_.next_ != &free_list_);
ASSERT(free_list_.previous_ != &free_list_);
@@ -302,7 +302,7 @@ void Isolate::PreallocatedStorageDelete(void* p) {
return;
}
if (!preallocated_storage_preallocated_) {
- FreeStoreAllocationPolicy::Delete(p);
+ FreeStoreDeallocator().Delete(p);
return;
}
PreallocatedStorage* storage = reinterpret_cast<PreallocatedStorage*>(p) - 1;
« no previous file with comments | « src/isolate.h ('k') | src/list.h » ('j') | src/list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698