diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-08-29 14:20:49 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-08-30 21:02:51 +0200 |
commit | 50930a0fa08297d0ce7e67fa6594fe47937b99ff (patch) | |
tree | 96bd30c0c63790bc1992a2f241a3df94d563b283 /deps/v8/src/strings/string-stream.h | |
parent | b63e449b2eade1111b52f6559669400a4e855903 (diff) | |
download | node-new-50930a0fa08297d0ce7e67fa6594fe47937b99ff.tar.gz |
deps: update V8 to 9.3.345.16
PR-URL: https://github.com/nodejs/node/pull/39469
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/v8/src/strings/string-stream.h')
-rw-r--r-- | deps/v8/src/strings/string-stream.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/deps/v8/src/strings/string-stream.h b/deps/v8/src/strings/string-stream.h index d0624abb6e..65fab8be1c 100644 --- a/deps/v8/src/strings/string-stream.h +++ b/deps/v8/src/strings/string-stream.h @@ -8,10 +8,11 @@ #include <memory> #include "src/base/small-vector.h" +#include "src/base/strings.h" +#include "src/base/vector.h" #include "src/handles/handles.h" #include "src/objects/heap-object.h" #include "src/utils/allocation.h" -#include "src/utils/vector.h" namespace v8 { namespace internal { @@ -98,7 +99,8 @@ class StringStream final { FmtElm(const char* value) : FmtElm(C_STR) { // NOLINT data_.u_c_str_ = value; } - FmtElm(const Vector<const uc16>& value) : FmtElm(LC_STR) { // NOLINT + FmtElm(const base::Vector<const base::uc16>& value) // NOLINT + : FmtElm(LC_STR) { data_.u_lc_str_ = &value; } FmtElm(Object value) : FmtElm(OBJ) { // NOLINT @@ -126,7 +128,7 @@ class StringStream final { int u_int_; double u_double_; const char* u_c_str_; - const Vector<const uc16>* u_lc_str_; + const base::Vector<const base::uc16>* u_lc_str_; Address u_obj_; Address* u_handle_; void* u_pointer_; @@ -148,18 +150,20 @@ class StringStream final { bool Put(char c); bool Put(String str); bool Put(String str, int start, int end); - void Add(const char* format) { Add(CStrVector(format)); } - void Add(Vector<const char> format) { Add(format, Vector<FmtElm>()); } + void Add(const char* format) { Add(base::CStrVector(format)); } + void Add(base::Vector<const char> format) { + Add(format, base::Vector<FmtElm>()); + } template <typename... Args> void Add(const char* format, Args... args) { - Add(CStrVector(format), args...); + Add(base::CStrVector(format), args...); } template <typename... Args> - void Add(Vector<const char> format, Args... args) { + void Add(base::Vector<const char> format, Args... args) { FmtElm elems[]{args...}; - Add(format, ArrayVector(elems)); + Add(format, base::ArrayVector(elems)); } // Getting the message out. @@ -196,7 +200,7 @@ class StringStream final { static const int kInitialCapacity = 16; private: - void Add(Vector<const char> format, Vector<FmtElm> elms); + void Add(base::Vector<const char> format, base::Vector<FmtElm> elms); void PrintObject(Object obj); StringAllocator* allocator_; |