diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2018-01-24 20:16:06 +0100 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-01-24 15:02:20 -0800 |
commit | 4c4af643e5042d615a60c6bbc05aee9d81b903e5 (patch) | |
tree | 3fb0a97988fe4439ae3ae06f26915d1dcf8cab92 /deps/v8/src/string-stream.cc | |
parent | fa9f31a4fda5a3782c652e56e394465805ebb50f (diff) | |
download | android-node-v8-4c4af643e5042d615a60c6bbc05aee9d81b903e5.tar.gz android-node-v8-4c4af643e5042d615a60c6bbc05aee9d81b903e5.tar.bz2 android-node-v8-4c4af643e5042d615a60c6bbc05aee9d81b903e5.zip |
deps: update V8 to 6.4.388.40
PR-URL: https://github.com/nodejs/node/pull/17489
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'deps/v8/src/string-stream.cc')
-rw-r--r-- | deps/v8/src/string-stream.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/src/string-stream.cc b/deps/v8/src/string-stream.cc index 6697191494..be508f4f45 100644 --- a/deps/v8/src/string-stream.cc +++ b/deps/v8/src/string-stream.cc @@ -48,7 +48,7 @@ bool StringStream::Put(char c) { buffer_ = new_buffer; } else { // Reached the end of the available buffer. - DCHECK(capacity_ >= 5); + DCHECK_GE(capacity_, 5); length_ = capacity_ - 1; // Indicate fullness of the stream. buffer_[length_ - 4] = '.'; buffer_[length_ - 3] = '.'; @@ -173,7 +173,7 @@ void StringStream::Add(Vector<const char> format, Vector<FmtElm> elms) { } // Verify that the buffer is 0-terminated - DCHECK(buffer_[length_] == '\0'); + DCHECK_EQ(buffer_[length_], '\0'); } @@ -242,8 +242,8 @@ Handle<String> StringStream::ToString(Isolate* isolate) { void StringStream::ClearMentionedObjectCache(Isolate* isolate) { - isolate->set_string_stream_current_security_token(NULL); - if (isolate->string_stream_debug_object_cache() == NULL) { + isolate->set_string_stream_current_security_token(nullptr); + if (isolate->string_stream_debug_object_cache() == nullptr) { isolate->set_string_stream_debug_object_cache(new DebugObjectCache()); } isolate->string_stream_debug_object_cache()->clear(); @@ -529,7 +529,7 @@ char* HeapStringAllocator::grow(unsigned* bytes) { return space_; } char* new_space = NewArray<char>(new_bytes); - if (new_space == NULL) { + if (new_space == nullptr) { return space_; } MemCopy(new_space, space_, *bytes); |