diff options
Diffstat (limited to 'src/3rdparty/v8/src/allocation.h')
-rw-r--r-- | src/3rdparty/v8/src/allocation.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/3rdparty/v8/src/allocation.h b/src/3rdparty/v8/src/allocation.h index 31067dd..45bde4c 100644 --- a/src/3rdparty/v8/src/allocation.h +++ b/src/3rdparty/v8/src/allocation.h @@ -104,7 +104,7 @@ char* StrNDup(const char* str, int n); // and free. Used as the default policy for lists. class FreeStoreAllocationPolicy { public: - INLINE(static void* New(size_t size)) { return Malloced::New(size); } + INLINE(void* New(size_t size)) { return Malloced::New(size); } INLINE(static void Delete(void* p)) { Malloced::Delete(p); } }; @@ -117,12 +117,6 @@ class PreallocatedStorage { explicit PreallocatedStorage(size_t size); size_t size() { return size_; } - // TODO(isolates): Get rid of these-- we'll have to change the allocator - // interface to include a pointer to an isolate to do this - // efficiently. - static inline void* New(size_t size); - static inline void Delete(void* p); - private: size_t size_; PreallocatedStorage* previous_; @@ -137,6 +131,12 @@ class PreallocatedStorage { }; +struct PreallocatedStorageAllocationPolicy { + INLINE(void* New(size_t size)); + INLINE(static void Delete(void* ptr)); +}; + + } } // namespace v8::internal #endif // V8_ALLOCATION_H_ |