summaryrefslogtreecommitdiff
path: root/deps/v8/src/profiler/sampling-heap-profiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/profiler/sampling-heap-profiler.cc')
-rw-r--r--deps/v8/src/profiler/sampling-heap-profiler.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/deps/v8/src/profiler/sampling-heap-profiler.cc b/deps/v8/src/profiler/sampling-heap-profiler.cc
index 4501cd6f79..48c3f73958 100644
--- a/deps/v8/src/profiler/sampling-heap-profiler.cc
+++ b/deps/v8/src/profiler/sampling-heap-profiler.cc
@@ -6,7 +6,7 @@
#include <stdint.h>
#include <memory>
-#include "src/api.h"
+#include "src/api-inl.h"
#include "src/base/ieee754.h"
#include "src/base/utils/random-number-generator.h"
#include "src/frames-inl.h"
@@ -99,7 +99,16 @@ void SamplingHeapProfiler::SampleObject(Address soon_object, size_t size) {
Sample* sample = new Sample(size, node, loc, this);
samples_.emplace(sample);
sample->global.SetWeak(sample, OnWeakCallback, WeakCallbackType::kParameter);
+#if __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated"
+#endif
+ // MarkIndependent is marked deprecated but we still rely on it here
+ // temporarily.
sample->global.MarkIndependent();
+#if __clang__
+#pragma clang diagnostic pop
+#endif
}
void SamplingHeapProfiler::OnWeakCallback(