V8 Project
|
#include <regexp-stack.h>
Classes | |
struct | ThreadLocal |
Public Member Functions | |
Address | stack_base () |
size_t | stack_capacity () |
Address * | limit_address () |
Address | EnsureCapacity (size_t size) |
char * | ArchiveStack (char *to) |
char * | RestoreStack (char *from) |
void | FreeThreadResources () |
Static Public Member Functions | |
static int | ArchiveSpacePerThread () |
Static Public Attributes | |
static const int | kStackLimitSlack = 32 |
Private Member Functions | |
RegExpStack () | |
~RegExpStack () | |
Address | memory_address () |
Address | memory_size_address () |
void | Reset () |
DISALLOW_COPY_AND_ASSIGN (RegExpStack) | |
Private Attributes | |
ThreadLocal | thread_local_ |
Isolate * | isolate_ |
Static Private Attributes | |
static const uintptr_t | kMemoryTop = static_cast<uintptr_t>(-1) |
static const size_t | kMinimumStackSize = 1 * KB |
static const size_t | kMaximumStackSize = 64 * MB |
Friends | |
class | ExternalReference |
class | Isolate |
class | RegExpStackScope |
Definition at line 35 of file regexp-stack.h.
|
private |
Definition at line 25 of file regexp-stack.cc.
|
private |
Definition at line 30 of file regexp-stack.cc.
References v8::internal::RegExpStack::ThreadLocal::Free(), and thread_local_.
|
inlinestatic |
Definition at line 63 of file regexp-stack.h.
Referenced by v8::internal::ArchiveSpacePerThread().
char * v8::internal::RegExpStack::ArchiveStack | ( | char * | to | ) |
Definition at line 35 of file regexp-stack.cc.
References v8::internal::MemCopy(), size, thread_local_, and to().
Referenced by v8::internal::ThreadManager::EagerlyArchiveThread().
|
private |
Address v8::internal::RegExpStack::EnsureCapacity | ( | size_t | size | ) |
Definition at line 66 of file regexp-stack.cc.
References v8::internal::DeleteArray(), kMaximumStackSize, kMinimumStackSize, v8::internal::kPointerSize, kStackLimitSlack, v8::internal::RegExpStack::ThreadLocal::limit_, v8::internal::MemCopy(), v8::internal::RegExpStack::ThreadLocal::memory_, v8::internal::RegExpStack::ThreadLocal::memory_size_, NULL, size, and thread_local_.
Referenced by v8::internal::NativeRegExpMacroAssembler::GrowStack(), and v8::internal::RegExpStackScope::RegExpStackScope().
|
inline |
Definition at line 68 of file regexp-stack.h.
References v8::internal::RegExpStack::ThreadLocal::Free(), and thread_local_.
Referenced by v8::internal::ThreadManager::FreeThreadResources().
|
inline |
Definition at line 56 of file regexp-stack.h.
References v8::internal::RegExpStack::ThreadLocal::limit_, and thread_local_.
|
inlineprivate |
Definition at line 99 of file regexp-stack.h.
References v8::internal::RegExpStack::ThreadLocal::memory_, and thread_local_.
|
inlineprivate |
Definition at line 104 of file regexp-stack.h.
References v8::internal::RegExpStack::ThreadLocal::memory_size_, and thread_local_.
|
private |
Definition at line 50 of file regexp-stack.cc.
References v8::internal::DeleteArray(), kMinimumStackSize, v8::internal::RegExpStack::ThreadLocal::memory_, v8::internal::RegExpStack::ThreadLocal::memory_size_, and thread_local_.
Referenced by v8::internal::RegExpStackScope::~RegExpStackScope().
char * v8::internal::RegExpStack::RestoreStack | ( | char * | from | ) |
Definition at line 43 of file regexp-stack.cc.
References v8::internal::MemCopy(), size, and thread_local_.
Referenced by v8::internal::ThreadManager::RestoreThread().
|
inline |
Definition at line 43 of file regexp-stack.h.
References DCHECK, v8::internal::RegExpStack::ThreadLocal::memory_, v8::internal::RegExpStack::ThreadLocal::memory_size_, and thread_local_.
Referenced by v8::internal::NativeRegExpMacroAssembler::Execute(), and v8::internal::NativeRegExpMacroAssembler::GrowStack().
|
inline |
Definition at line 49 of file regexp-stack.h.
References v8::internal::RegExpStack::ThreadLocal::memory_size_, and thread_local_.
Referenced by v8::internal::NativeRegExpMacroAssembler::GrowStack().
|
friend |
Definition at line 116 of file regexp-stack.h.
|
friend |
Definition at line 117 of file regexp-stack.h.
|
friend |
Definition at line 118 of file regexp-stack.h.
|
private |
Definition at line 114 of file regexp-stack.h.
Referenced by v8::internal::Isolate::Init().
|
staticprivate |
Definition at line 81 of file regexp-stack.h.
Referenced by EnsureCapacity().
Definition at line 75 of file regexp-stack.h.
Referenced by v8::internal::RegExpStack::ThreadLocal::Clear().
|
staticprivate |
Definition at line 78 of file regexp-stack.h.
Referenced by EnsureCapacity(), and Reset().
|
static |
Definition at line 40 of file regexp-stack.h.
Referenced by EnsureCapacity().
|
private |
Definition at line 113 of file regexp-stack.h.
Referenced by ArchiveStack(), EnsureCapacity(), FreeThreadResources(), limit_address(), memory_address(), memory_size_address(), Reset(), RestoreStack(), stack_base(), stack_capacity(), and ~RegExpStack().