aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/profiler
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-11-08 15:39:11 +0100
committerMichaël Zasso <targos@protonmail.com>2019-11-08 15:46:25 +0100
commit6ca81ad72a3c6fdf16c683335be748f22aaa9a0d (patch)
tree33c8ee75f729aed76c2c0b89c63f9bf1b4dd66aa /deps/v8/src/profiler
parent1eee0b8bf8bba39b600fb16a9223e545e3bac2bc (diff)
downloadandroid-node-v8-6ca81ad72a3c6fdf16c683335be748f22aaa9a0d.tar.gz
android-node-v8-6ca81ad72a3c6fdf16c683335be748f22aaa9a0d.tar.bz2
android-node-v8-6ca81ad72a3c6fdf16c683335be748f22aaa9a0d.zip
deps: update V8 to 7.9.317.20
PR-URL: https://github.com/nodejs/node/pull/30020 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'deps/v8/src/profiler')
-rw-r--r--deps/v8/src/profiler/heap-snapshot-generator.cc3
-rw-r--r--deps/v8/src/profiler/heap-snapshot-generator.h1
-rw-r--r--deps/v8/src/profiler/profile-generator-inl.h2
-rw-r--r--deps/v8/src/profiler/profile-generator.cc2
-rw-r--r--deps/v8/src/profiler/profiler-listener.cc9
-rw-r--r--deps/v8/src/profiler/sampling-heap-profiler.cc5
-rw-r--r--deps/v8/src/profiler/tracing-cpu-profiler.h2
7 files changed, 13 insertions, 11 deletions
diff --git a/deps/v8/src/profiler/heap-snapshot-generator.cc b/deps/v8/src/profiler/heap-snapshot-generator.cc
index 75b6aa7b77..42e7220702 100644
--- a/deps/v8/src/profiler/heap-snapshot-generator.cc
+++ b/deps/v8/src/profiler/heap-snapshot-generator.cc
@@ -1306,8 +1306,7 @@ void V8HeapExplorer::ExtractPropertyReferences(JSObject js_obj,
Isolate* isolate = js_obj.GetIsolate();
if (js_obj.HasFastProperties()) {
DescriptorArray descs = js_obj.map().instance_descriptors();
- int real_size = js_obj.map().NumberOfOwnDescriptors();
- for (int i = 0; i < real_size; i++) {
+ for (InternalIndex i : js_obj.map().IterateOwnDescriptors()) {
PropertyDetails details = descs.GetDetails(i);
switch (details.location()) {
case kField: {
diff --git a/deps/v8/src/profiler/heap-snapshot-generator.h b/deps/v8/src/profiler/heap-snapshot-generator.h
index 360ed1f009..e6c72ffcf9 100644
--- a/deps/v8/src/profiler/heap-snapshot-generator.h
+++ b/deps/v8/src/profiler/heap-snapshot-generator.h
@@ -6,6 +6,7 @@
#define V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_
#include <deque>
+#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <vector>
diff --git a/deps/v8/src/profiler/profile-generator-inl.h b/deps/v8/src/profiler/profile-generator-inl.h
index bb5ef0da5b..e3dc193db2 100644
--- a/deps/v8/src/profiler/profile-generator-inl.h
+++ b/deps/v8/src/profiler/profile-generator-inl.h
@@ -7,6 +7,8 @@
#include "src/profiler/profile-generator.h"
+#include <memory>
+
namespace v8 {
namespace internal {
diff --git a/deps/v8/src/profiler/profile-generator.cc b/deps/v8/src/profiler/profile-generator.cc
index f5f7184613..c8fe890b58 100644
--- a/deps/v8/src/profiler/profile-generator.cc
+++ b/deps/v8/src/profiler/profile-generator.cc
@@ -517,7 +517,7 @@ CpuProfile::CpuProfile(CpuProfiler* profiler, const char* title,
DisallowHeapAllocation no_gc;
i::Address raw_filter_context =
reinterpret_cast<i::Address>(options_.raw_filter_context());
- context_filter_ = base::make_unique<ContextFilter>(raw_filter_context);
+ context_filter_ = std::make_unique<ContextFilter>(raw_filter_context);
}
}
diff --git a/deps/v8/src/profiler/profiler-listener.cc b/deps/v8/src/profiler/profiler-listener.cc
index b00c1f5cfd..13641bfd41 100644
--- a/deps/v8/src/profiler/profiler-listener.cc
+++ b/deps/v8/src/profiler/profiler-listener.cc
@@ -165,11 +165,10 @@ void ProfilerListener::CodeCreateEvent(CodeEventListener::LogEventsAndTags tag,
SourcePosition(pos_info.shared->StartPosition()),
pos_info.shared);
- std::unique_ptr<CodeEntry> inline_entry =
- base::make_unique<CodeEntry>(
- tag, GetFunctionName(*pos_info.shared), resource_name,
- start_pos_info.line + 1, start_pos_info.column + 1, nullptr,
- code.InstructionStart(), inline_is_shared_cross_origin);
+ std::unique_ptr<CodeEntry> inline_entry = std::make_unique<CodeEntry>(
+ tag, GetFunctionName(*pos_info.shared), resource_name,
+ start_pos_info.line + 1, start_pos_info.column + 1, nullptr,
+ code.InstructionStart(), inline_is_shared_cross_origin);
inline_entry->FillFunctionInfo(*pos_info.shared);
// Create a canonical CodeEntry for each inlined frame and then re-use
diff --git a/deps/v8/src/profiler/sampling-heap-profiler.cc b/deps/v8/src/profiler/sampling-heap-profiler.cc
index de19d39eba..f5aa1dc3a0 100644
--- a/deps/v8/src/profiler/sampling-heap-profiler.cc
+++ b/deps/v8/src/profiler/sampling-heap-profiler.cc
@@ -9,7 +9,6 @@
#include "src/api/api-inl.h"
#include "src/base/ieee754.h"
-#include "src/base/template-utils.h"
#include "src/base/utils/random-number-generator.h"
#include "src/execution/frames-inl.h"
#include "src/execution/isolate.h"
@@ -89,7 +88,7 @@ void SamplingHeapProfiler::SampleObject(Address soon_object, size_t size) {
AllocationNode* node = AddStack();
node->allocations_[size]++;
auto sample =
- base::make_unique<Sample>(size, node, loc, this, next_sample_id());
+ std::make_unique<Sample>(size, node, loc, this, next_sample_id());
sample->global.SetWeak(sample.get(), OnWeakCallback,
WeakCallbackType::kParameter);
samples_.emplace(sample.get(), std::move(sample));
@@ -126,7 +125,7 @@ SamplingHeapProfiler::AllocationNode* SamplingHeapProfiler::FindOrAddChildNode(
DCHECK_EQ(strcmp(child->name_, name), 0);
return child;
}
- auto new_child = base::make_unique<AllocationNode>(
+ auto new_child = std::make_unique<AllocationNode>(
parent, name, script_id, start_position, next_node_id());
return parent->AddChildNode(id, std::move(new_child));
}
diff --git a/deps/v8/src/profiler/tracing-cpu-profiler.h b/deps/v8/src/profiler/tracing-cpu-profiler.h
index d5888f54a3..7a8fabe958 100644
--- a/deps/v8/src/profiler/tracing-cpu-profiler.h
+++ b/deps/v8/src/profiler/tracing-cpu-profiler.h
@@ -5,6 +5,8 @@
#ifndef V8_PROFILER_TRACING_CPU_PROFILER_H_
#define V8_PROFILER_TRACING_CPU_PROFILER_H_
+#include <memory>
+
#include "include/v8-platform.h"
#include "src/base/atomic-utils.h"
#include "src/base/macros.h"