Commit e83758de authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

Rename SuspendableObjectsInfo -> PausableObjectsInfo

This CL is part of the giant CL https://chromium-review.googlesource.com/c/chromium/src/+/748663

Bug: 780378
Change-Id: I7b191160836f22a620d5a33d88c4d9a8a955705d
Reviewed-on: https://chromium-review.googlesource.com/749122Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513117}
parent 85203eaf
...@@ -92,38 +92,38 @@ intptr_t RetainedDOMInfo::GetEquivalenceClass() { ...@@ -92,38 +92,38 @@ intptr_t RetainedDOMInfo::GetEquivalenceClass() {
return reinterpret_cast<intptr_t>(root_.Get()); return reinterpret_cast<intptr_t>(root_.Get());
} }
SuspendableObjectsInfo::SuspendableObjectsInfo( PausableObjectsInfo::PausableObjectsInfo(
int number_of_objects_with_pending_activity) int number_of_objects_with_pending_activity)
: number_of_objects_with_pending_activity_( : number_of_objects_with_pending_activity_(
number_of_objects_with_pending_activity) {} number_of_objects_with_pending_activity) {}
SuspendableObjectsInfo::~SuspendableObjectsInfo() {} PausableObjectsInfo::~PausableObjectsInfo() {}
void SuspendableObjectsInfo::Dispose() { void PausableObjectsInfo::Dispose() {
delete this; delete this;
} }
bool SuspendableObjectsInfo::IsEquivalent(v8::RetainedObjectInfo* other) { bool PausableObjectsInfo::IsEquivalent(v8::RetainedObjectInfo* other) {
return this == other; return this == other;
} }
intptr_t SuspendableObjectsInfo::GetHash() { intptr_t PausableObjectsInfo::GetHash() {
return PtrHash<void>::GetHash(this); return PtrHash<void>::GetHash(this);
} }
const char* SuspendableObjectsInfo::GetGroupLabel() { const char* PausableObjectsInfo::GetGroupLabel() {
return "(Pending activities group)"; return "(Pending activities group)";
} }
const char* SuspendableObjectsInfo::GetLabel() { const char* PausableObjectsInfo::GetLabel() {
return "Pending activities"; return "Pending activities";
} }
intptr_t SuspendableObjectsInfo::GetElementCount() { intptr_t PausableObjectsInfo::GetElementCount() {
return number_of_objects_with_pending_activity_; return number_of_objects_with_pending_activity_;
} }
intptr_t SuspendableObjectsInfo::GetEquivalenceClass() { intptr_t PausableObjectsInfo::GetEquivalenceClass() {
return reinterpret_cast<intptr_t>(this); return reinterpret_cast<intptr_t>(this);
} }
......
...@@ -63,10 +63,10 @@ class RetainedDOMInfo final : public RetainedObjectInfo { ...@@ -63,10 +63,10 @@ class RetainedDOMInfo final : public RetainedObjectInfo {
UntracedMember<Node> root_; UntracedMember<Node> root_;
}; };
class SuspendableObjectsInfo final : public RetainedObjectInfo { class PausableObjectsInfo final : public RetainedObjectInfo {
public: public:
explicit SuspendableObjectsInfo(int number_of_objects_with_pending_activity); explicit PausableObjectsInfo(int number_of_objects_with_pending_activity);
~SuspendableObjectsInfo() override; ~PausableObjectsInfo() override;
void Dispose() override; void Dispose() override;
bool IsEquivalent(v8::RetainedObjectInfo* other) override; bool IsEquivalent(v8::RetainedObjectInfo* other) override;
intptr_t GetHash() override; intptr_t GetHash() override;
......
...@@ -168,7 +168,7 @@ class HeapSnaphotWrapperVisitor : public ScriptWrappableVisitor, ...@@ -168,7 +168,7 @@ class HeapSnaphotWrapperVisitor : public ScriptWrappableVisitor,
AbortTracing(); AbortTracing();
groups_.push_back( groups_.push_back(
std::make_pair(new SuspendableObjectsInfo(found_v8_wrappers_.size()), std::make_pair(new PausableObjectsInfo(found_v8_wrappers_.size()),
std::move(found_v8_wrappers_))); std::move(found_v8_wrappers_)));
} }
......
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