48 : allocation_size_(0),
49 segment_bytes_allocated_(0),
80 int size_with_redzone =
81 #ifdef V8_USE_ADDRESS_SANITIZER
93 #ifdef V8_USE_ADDRESS_SANITIZER
102 return reinterpret_cast<void*
>(result);
109 static const unsigned char kZapDeadByte = 0xcd;
123 int size = current->size();
128 memset(current, kZapDeadByte,
size);
130 DeleteSegment(current,
size);
147 memset(start, kZapDeadByte, keep->
capacity());
161 static const unsigned char kZapDeadByte = 0xcd;
186 if (result !=
NULL) {
195 void Zone::DeleteSegment(Segment* segment,
int size) {
212 const size_t old_size = (head ==
NULL) ? 0 : head->
size();
214 const size_t new_size_no_overhead =
size + (old_size << 1);
215 size_t new_size = kSegmentOverhead + new_size_no_overhead;
216 const size_t min_new_size = kSegmentOverhead +
static_cast<size_t>(
size);
218 if (new_size_no_overhead <
static_cast<size_t>(
size) ||
219 new_size < static_cast<size_t>(kSegmentOverhead)) {
232 if (new_size > INT_MAX) {
236 Segment* segment = NewSegment(
static_cast<int>(new_size));
237 if (segment ==
NULL) {
static void * New(size_t size)
static void Delete(void *p)
Address address(int n) const
void Initialize(Segment *next, int size)
static void FatalProcessOutOfMemory(const char *location, bool take_snapshot=false)
static const int kMaximumSegmentSize
static const int kAlignment
void adjust_segment_bytes_allocated(int delta)
int segment_bytes_allocated_
static const int kMinimumSegmentSize
unsigned allocation_size_
static const int kMaximumKeptSegmentSize
Address NewExpand(int size)
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
#define DCHECK(condition)
T RoundDown(T x, intptr_t m)
bool IsAddressAligned(Address addr, intptr_t alignment, int offset=0)
static LifetimePosition Max(LifetimePosition a, LifetimePosition b)
static void RoundUp(Vector< char > buffer, int *length, int *decimal_point)
static const int kASanRedzoneBytes
Debugger support for the V8 JavaScript engine.
#define ASAN_UNPOISON_MEMORY_REGION(start, size)