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

Unified Diff: src/allocation-inl.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/allocation.h ('k') | src/arm/lithium-arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/allocation-inl.h
diff --git a/src/allocation-inl.h b/src/allocation-inl.h
index 04a3fe667abca7fd54c46926033217b413ebcbab..7bc48f03316b3d6316a837a55edc807f377add55 100644
--- a/src/allocation-inl.h
+++ b/src/allocation-inl.h
@@ -34,13 +34,17 @@ namespace v8 {
namespace internal {
-void* PreallocatedStorage::New(size_t size) {
- return Isolate::Current()->PreallocatedStorageNew(size);
+PreallocatedStorageAllocator::PreallocatedStorageAllocator()
+ : isolate_(Isolate::Current()) {}
+
+
+void* PreallocatedStorageAllocator::New(size_t size) {
+ return isolate_->PreallocatedStorageNew(size);
}
-void PreallocatedStorage::Delete(void* p) {
- return Isolate::Current()->PreallocatedStorageDelete(p);
+void PreallocatedStorageAllocator::Delete(void* p) {
+ return isolate_->PreallocatedStorageDelete(p);
}
« no previous file with comments | « src/allocation.h ('k') | src/arm/lithium-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698