Chromium Code Reviews| Index: Source/web/WebHeap.cpp |
| diff --git a/Source/web/WebHeap.cpp b/Source/web/WebHeap.cpp |
| index d814b2dca22a295a8c0fda0b5f7adc9fa63ac4d7..4e02209d409da2f1ab7688162959bd0d16ed8d8b 100644 |
| --- a/Source/web/WebHeap.cpp |
| +++ b/Source/web/WebHeap.cpp |
| @@ -31,7 +31,7 @@ |
| #include "config.h" |
| #include "public/web/WebHeap.h" |
| -#include "platform/heap/ThreadState.h" |
| +#include "platform/heap/Handle.h" |
| namespace blink { |
| @@ -45,4 +45,20 @@ WebHeap::SafePointScope::~SafePointScope() |
| ThreadState::current()->leaveSafePoint(); |
| } |
| +void WebHeap::collectGarbage() |
|
Mads Ager (chromium)
2014/09/09 14:14:27
You are landing these changes in a separate change
|
| +{ |
| + Heap::collectGarbage(ThreadState::HeapPointersOnStack); |
| +} |
| + |
| +void WebHeap::collectGarbageWithNoPointersOnStack() |
| +{ |
| + Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); |
| +} |
| + |
| +void WebHeap::collectAllGarbage() |
| +{ |
| + Heap::collectAllGarbage(); |
| +} |
| + |
| + |
| } // namespace blink |