| Index: src/allocation.cc
|
| diff --git a/src/allocation.cc b/src/allocation.cc
|
| index 96fd71f11bd3d55be11d7f157ee885e838c430be..8a03a9cf91f7ec996f76c24ef8571700cea03201 100644
|
| --- a/src/allocation.cc
|
| +++ b/src/allocation.cc
|
| @@ -9,6 +9,7 @@
|
| #include "src/base/logging.h"
|
| #include "src/base/platform/platform.h"
|
| #include "src/utils.h"
|
| +#include "src/v8.h"
|
|
|
| #if V8_LIBC_BIONIC
|
| #include <malloc.h> // NOLINT
|
| @@ -20,7 +21,7 @@ namespace internal {
|
| void* Malloced::New(size_t size) {
|
| void* result = malloc(size);
|
| if (result == NULL) {
|
| - v8::internal::FatalProcessOutOfMemory("Malloced operator new");
|
| + V8::FatalProcessOutOfMemory("Malloced operator new");
|
| }
|
| return result;
|
| }
|
| @@ -31,11 +32,6 @@ void Malloced::Delete(void* p) {
|
| }
|
|
|
|
|
| -void Malloced::FatalProcessOutOfMemory() {
|
| - v8::internal::FatalProcessOutOfMemory("Out of memory");
|
| -}
|
| -
|
| -
|
| #ifdef DEBUG
|
|
|
| static void* invalid = static_cast<void*>(NULL);
|
| @@ -96,7 +92,7 @@ void* AlignedAlloc(size_t size, size_t alignment) {
|
| #else
|
| if (posix_memalign(&ptr, alignment, size)) ptr = NULL;
|
| #endif
|
| - if (ptr == NULL) FatalProcessOutOfMemory("AlignedAlloc");
|
| + if (ptr == NULL) V8::FatalProcessOutOfMemory("AlignedAlloc");
|
| return ptr;
|
| }
|
|
|
|
|