| 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 "globals.h" | 8 #include "src/globals.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 // Called when allocation routines fail to allocate. | 13 // Called when allocation routines fail to allocate. |
| 14 // This function should not return, but should terminate the current | 14 // This function should not return, but should terminate the current |
| 15 // processing. | 15 // processing. |
| 16 void FatalProcessOutOfMemory(const char* message); | 16 void FatalProcessOutOfMemory(const char* message); |
| 17 | 17 |
| 18 // Superclass for classes managed with new & delete. | 18 // Superclass for classes managed with new & delete. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 INLINE(static void Delete(void* p)) { Malloced::Delete(p); } | 85 INLINE(static void Delete(void* p)) { Malloced::Delete(p); } |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 | 88 |
| 89 void* AlignedAlloc(size_t size, size_t alignment); | 89 void* AlignedAlloc(size_t size, size_t alignment); |
| 90 void AlignedFree(void *ptr); | 90 void AlignedFree(void *ptr); |
| 91 | 91 |
| 92 } } // namespace v8::internal | 92 } } // namespace v8::internal |
| 93 | 93 |
| 94 #endif // V8_ALLOCATION_H_ | 94 #endif // V8_ALLOCATION_H_ |
| OLD | NEW |