diff options
Diffstat (limited to 'deps/v8/src/regexp/regexp-stack.cc')
-rw-r--r-- | deps/v8/src/regexp/regexp-stack.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/deps/v8/src/regexp/regexp-stack.cc b/deps/v8/src/regexp/regexp-stack.cc index 34f9127f2f..64a694cd42 100644 --- a/deps/v8/src/regexp/regexp-stack.cc +++ b/deps/v8/src/regexp/regexp-stack.cc @@ -21,11 +21,7 @@ RegExpStackScope::~RegExpStackScope() { regexp_stack_->Reset(); } - -RegExpStack::RegExpStack() - : isolate_(NULL) { -} - +RegExpStack::RegExpStack() : isolate_(nullptr) {} RegExpStack::~RegExpStack() { thread_local_.Free(); @@ -64,7 +60,7 @@ void RegExpStack::ThreadLocal::Free() { Address RegExpStack::EnsureCapacity(size_t size) { - if (size > kMaximumStackSize) return NULL; + if (size > kMaximumStackSize) return nullptr; if (size < kMinimumStackSize) size = kMinimumStackSize; if (thread_local_.memory_size_ < size) { Address new_memory = NewArray<byte>(static_cast<int>(size)); |