OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ALLOCATION_H_ | 5 #ifndef V8_ALLOCATION_H_ |
6 #define V8_ALLOCATION_H_ | 6 #define V8_ALLOCATION_H_ |
7 | 7 |
8 #include "src/globals.h" | 8 #include "src/globals.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 class FreeStoreAllocationPolicy { | 81 class FreeStoreAllocationPolicy { |
82 public: | 82 public: |
83 INLINE(void* New(size_t size)) { return Malloced::New(size); } | 83 INLINE(void* New(size_t size)) { return Malloced::New(size); } |
84 INLINE(static void Delete(void* p)) { Malloced::Delete(p); } | 84 INLINE(static void Delete(void* p)) { Malloced::Delete(p); } |
85 }; | 85 }; |
86 | 86 |
87 | 87 |
88 void* AlignedAlloc(size_t size, size_t alignment); | 88 void* AlignedAlloc(size_t size, size_t alignment); |
89 void AlignedFree(void *ptr); | 89 void AlignedFree(void *ptr); |
90 | 90 |
91 } } // namespace v8::internal | 91 } // namespace internal |
| 92 } // namespace v8 |
92 | 93 |
93 #endif // V8_ALLOCATION_H_ | 94 #endif // V8_ALLOCATION_H_ |
OLD | NEW |