| Index: test/cctest/cctest.h
|
| diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
|
| index ceb9f58157ad9bb471729ee302513c46988572bc..c712286b31ffc1d9284c4deffe3d5b3b289a16f0 100644
|
| --- a/test/cctest/cctest.h
|
| +++ b/test/cctest/cctest.h
|
| @@ -602,28 +602,6 @@ static inline void EmptyMessageQueues(v8::Isolate* isolate) {
|
| }
|
|
|
|
|
| -// Helper class for new allocations tracking and checking.
|
| -// To use checking of JS allocations tracking in a test,
|
| -// just create an instance of this class.
|
| -class HeapObjectsTracker {
|
| - public:
|
| - HeapObjectsTracker() {
|
| - heap_profiler_ = i::Isolate::Current()->heap_profiler();
|
| - CHECK_NOT_NULL(heap_profiler_);
|
| - heap_profiler_->StartHeapObjectsTracking(true);
|
| - }
|
| -
|
| - ~HeapObjectsTracker() {
|
| - i::Isolate::Current()->heap()->CollectAllAvailableGarbage();
|
| - CHECK_EQ(0, heap_profiler_->heap_object_map()->FindUntrackedObjects());
|
| - heap_profiler_->StopHeapObjectsTracking();
|
| - }
|
| -
|
| - private:
|
| - i::HeapProfiler* heap_profiler_;
|
| -};
|
| -
|
| -
|
| class InitializedHandleScope {
|
| public:
|
| InitializedHandleScope()
|
|
|