| 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);
|
| }
|
|
|
|
|
|
|