28 #ifndef V8_ALLOCATION_H_
29 #define V8_ALLOCATION_H_
44 void*
operator new(
size_t size) {
return New(size); }
45 void operator delete(
void* p) {
Delete(p); }
48 static void*
New(
size_t size);
49 static void Delete(
void* p);
63 void*
operator new(
size_t size);
64 void operator delete(
void* p);
66 #define BASE_EMBEDDED : public Embedded
76 void*
operator new(
size_t size);
77 void operator delete(
void* p);
84 T* result =
new T[size];
99 char*
StrDup(
const char* str);
100 char*
StrNDup(
const char* str,
int n);
118 size_t size() {
return size_; }
135 INLINE(
void* New(
size_t size));
136 INLINE(
static void Delete(
void* ptr));
142 #endif // V8_ALLOCATION_H_
static void Delete(void *p)
PreallocatedStorage(size_t size)
static void * New(size_t size)
INLINE(void *New(size_t size))
char * StrNDup(const char *str, int n)
static void FatalProcessOutOfMemory()
T * NewArray(size_t size)
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName)
#define T(name, string, precedence)
void FatalProcessOutOfMemory(const char *message)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination trace on stack replacement optimize closures functions with arguments object optimize functions containing for in loops profiler considers IC stability primitive functions trigger their own optimization re try self optimization if it failed insert an interrupt check at function exit execution budget before interrupt is triggered call count before self optimization self_optimization count_based_interrupts weighted_back_edges trace_opt emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 enable use of ARMv7 instructions if enable use of MIPS FPU instructions if NULL
char * StrDup(const char *str)
void DeleteArray(T *array)
INLINE(void *New(size_t size))
INLINE(static void Delete(void *p))