@@ -2,37 +2,7 @@ diff --git a/src/inspector/v8-console.cc b/src/inspector/v8-console.cc
22index f608d678505e..882be746310d 100644
33--- a/src/inspector/v8-console.cc
44+++ b/src/inspector/v8-console.cc
5- @@ -70,37 +70,37 @@ class ConsoleHelper {
6-
7- void reportCall(ConsoleAPIType type) {
8- if (!m_info.Length()) return;
9- - std::vector<v8::Local<v8::Value>> arguments;
10- + v8::LocalVector<v8::Value> arguments(m_isolate);
11- arguments.reserve(m_info.Length());
12- for (int i = 0; i < m_info.Length(); ++i) arguments.push_back(m_info[i]);
13- - reportCall(type, arguments);
14- + reportCall(type, {arguments.begin(), arguments.end()});
15- }
16-
17- void reportCallWithDefaultArgument(ConsoleAPIType type,
18- const String16& message) {
19- - std::vector<v8::Local<v8::Value>> arguments;
20- + v8::LocalVector<v8::Value> arguments(m_isolate);
21- arguments.reserve(m_info.Length());
22- for (int i = 0; i < m_info.Length(); ++i) arguments.push_back(m_info[i]);
23- if (!m_info.Length()) arguments.push_back(toV8String(m_isolate, message));
24- - reportCall(type, arguments);
25- + reportCall(type, {arguments.begin(), arguments.end()});
26- }
27-
28- void reportCallAndReplaceFirstArgument(ConsoleAPIType type,
29- const String16& message) {
30- - std::vector<v8::Local<v8::Value>> arguments;
31- + v8::LocalVector<v8::Value> arguments(m_isolate);
32- arguments.push_back(toV8String(m_isolate, message));
33- for (int i = 1; i < m_info.Length(); ++i) arguments.push_back(m_info[i]);
34- - reportCall(type, arguments);
35- + reportCall(type, {arguments.begin(), arguments.end()});
5+ @@ -94,8 +94,8 @@ reportCall(type, {arguments.begin(), arguments.end()});
366 }
377
388 void reportCallWithArgument(ConsoleAPIType type, const String16& message) {
@@ -43,12 +13,6 @@ index f608d678505e..882be746310d 100644
4313 reportCall(type, arguments);
4414 }
4515
46- void reportCall(ConsoleAPIType type,
47- - const std::vector<v8::Local<v8::Value>>& arguments) {
48- + v8::MemorySpan<const v8::Local<v8::Value>> arguments) {
49- if (!m_groupId) return;
50- std::unique_ptr<V8ConsoleMessage> message =
51- V8ConsoleMessage::createForConsoleAPI(
5216@@ -116,8 +116,8 @@ class ConsoleHelper {
5317 id)) {
5418 return;
0 commit comments