Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.cpp

Issue 2774473003: Simplify pre+post GC ThreadState steps. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index cd0ca6064b90af3a7bfe41b0a35f779154f7610a..c45a94ae355f4853b4c10bb70d8138e6869536bc 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -280,12 +280,12 @@ class TestGCScope {
explicit TestGCScope(BlinkGC::StackState state)
: m_state(ThreadState::current()), m_safePointScope(state) {
ASSERT(m_state->checkThread());
- m_state->heap().preGC();
+ m_state->preGC();
}
~TestGCScope() {
- m_state->heap().postGC(BlinkGC::GCWithSweep);
- m_state->heap().preSweep(BlinkGC::GCWithSweep);
+ m_state->postGC(BlinkGC::GCWithSweep);
+ m_state->preSweep(BlinkGC::GCWithSweep);
}
private:
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698