• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef V8_HEAP_STRESS_MARKING_OBSERVER_H_
6 #define V8_HEAP_STRESS_MARKING_OBSERVER_H_
7 
8 #include "src/heap/heap.h"
9 
10 namespace v8 {
11 namespace internal {
12 
13 class StressMarkingObserver : public AllocationObserver {
14  public:
15   explicit StressMarkingObserver(Heap& heap);
16 
17   void Step(int bytes_allocated, Address soon_object, size_t size) override;
18 
19  private:
20   Heap& heap_;
21 };
22 
23 }  // namespace internal
24 }  // namespace v8
25 
26 #endif  // V8_HEAP_STRESS_MARKING_OBSERVER_H_
27