V8 Project
v8::internal::Malloced Class Reference

#include <allocation.h>

+ Inheritance diagram for v8::internal::Malloced:
+ Collaboration diagram for v8::internal::Malloced:

Public Member Functions

void * operator new (size_t size)
 
void operator delete (void *p)
 

Static Public Member Functions

static void FatalProcessOutOfMemory ()
 
static void * New (size_t size)
 
static void Delete (void *p)
 

Detailed Description

Definition at line 19 of file allocation.h.

Member Function Documentation

◆ Delete()

void v8::internal::Malloced::Delete ( void *  p)
static

Definition at line 29 of file allocation.cc.

29  {
30  free(p);
31 }

Referenced by v8::internal::FreeStoreAllocationPolicy::INLINE(), and operator delete().

+ Here is the caller graph for this function:

◆ FatalProcessOutOfMemory()

void v8::internal::Malloced::FatalProcessOutOfMemory ( )
static

Definition at line 34 of file allocation.cc.

34  {
36 }
void FatalProcessOutOfMemory(const char *message)

References v8::internal::FatalProcessOutOfMemory().

Referenced by v8::internal::NewArray().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ New()

void * v8::internal::Malloced::New ( size_t  size)
static

Definition at line 20 of file allocation.cc.

20  {
21  void* result = malloc(size);
22  if (result == NULL) {
23  v8::internal::FatalProcessOutOfMemory("Malloced operator new");
24  }
25  return result;
26 }
enable harmony numeric enable harmony object literal extensions Optimize object size
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

References v8::internal::FatalProcessOutOfMemory(), NULL, and size.

Referenced by v8::internal::FreeStoreAllocationPolicy::INLINE(), and operator new().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator delete()

void v8::internal::Malloced::operator delete ( void *  p)
inline

Definition at line 22 of file allocation.h.

22 { Delete(p); }
static void Delete(void *p)
Definition: allocation.cc:29

References Delete().

+ Here is the call graph for this function:

◆ operator new()

void* v8::internal::Malloced::operator new ( size_t  size)
inline

Definition at line 21 of file allocation.h.

21 { return New(size); }
static void * New(size_t size)
Definition: allocation.cc:20

References New(), and size.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: