Commit 90f05b64 authored by mlippautz's avatar mlippautz Committed by Commit bot

[v8] Allow querying the number of wrappers that still need to be traced

BUG=chromium:468240

Review-Url: https://codereview.chromium.org/2288253003
Cr-Commit-Position: refs/heads/master@{#415281}
parent 83ae78ab
...@@ -55,6 +55,11 @@ void ScriptWrappableVisitor::AbortTracing() ...@@ -55,6 +55,11 @@ void ScriptWrappableVisitor::AbortTracing()
performCleanup(); performCleanup();
} }
size_t ScriptWrappableVisitor::NumberOfWrappersToTrace()
{
return m_markingDeque.size();
}
void ScriptWrappableVisitor::performCleanup() void ScriptWrappableVisitor::performCleanup()
{ {
for (auto header : m_headersToUnmark) { for (auto header : m_headersToUnmark) {
......
...@@ -101,6 +101,7 @@ public: ...@@ -101,6 +101,7 @@ public:
void TraceEpilogue() override; void TraceEpilogue() override;
void AbortTracing() override; void AbortTracing() override;
void EnterFinalPause() override; void EnterFinalPause() override;
size_t NumberOfWrappersToTrace() override;
void dispatchTraceWrappers(const ScriptWrappable*) const override; void dispatchTraceWrappers(const ScriptWrappable*) const override;
#define DECLARE_DISPATCH_TRACE_WRAPPERS(className) \ #define DECLARE_DISPATCH_TRACE_WRAPPERS(className) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment