28 #ifndef V8_REGEXP_STACK_H_
29 #define V8_REGEXP_STACK_H_
67 ASSERT(thread_local_.memory_size_ != 0);
68 return thread_local_.memory_ + thread_local_.memory_size_;
87 return static_cast<int>(
sizeof(ThreadLocal));
98 static const uintptr_t kMemoryTop =
static_cast<uintptr_t
>(-1);
101 static const size_t kMinimumStackSize = 1 *
KB;
104 static const size_t kMaximumStackSize = 64 *
MB;
108 ThreadLocal() { Clear(); }
116 limit_ =
reinterpret_cast<Address>(kMemoryTop);
123 return reinterpret_cast<Address>(&thread_local_.memory_);
127 Address memory_size_address() {
128 return reinterpret_cast<Address>(&thread_local_.memory_size_);
136 ThreadLocal thread_local_;
148 #endif // V8_REGEXP_STACK_H_
Address EnsureCapacity(size_t size)
static int ArchiveSpacePerThread()
void FreeThreadResources()
#define ASSERT(condition)
RegExpStack * stack() const
RegExpStackScope(Isolate *isolate)
friend class ExternalReference
char * ArchiveStack(char *to)
char * RestoreStack(char *from)
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Address * limit_address()
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
static const int kStackLimitSlack