Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: src/allocation.cc

Issue 897213003: Remove obsolete Malloced::FatalProcessOutOfMemory. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/allocation.h ('k') | src/serialize.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/allocation.h ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698