Chromium Code Reviews| Index: src/debug/debug-coverage.h |
| diff --git a/src/debug/debug-coverage.h b/src/debug/debug-coverage.h |
| index d8cae32d589c32c44496ee9c4988bd5c55420ee8..892ff4deff4ba809d946bdee7a3259d47ad6b0f6 100644 |
| --- a/src/debug/debug-coverage.h |
| +++ b/src/debug/debug-coverage.h |
| @@ -6,11 +6,14 @@ |
| #define V8_DEBUG_DEBUG_COVERAGE_H_ |
| #include <vector> |
| -#include "src/isolate.h" |
| +#include "src/allocation.h" |
|
jgruber
2017/02/09 16:08:48
This does not seem to be needed here.
Yang
2017/02/09 17:42:15
This is for the AllStatic base class.
|
| namespace v8 { |
| namespace internal { |
| +// Forward declaration. |
| +class Isolate; |
| + |
| class Coverage : public AllStatic { |
| public: |
| struct RangeEntry { |
| @@ -24,6 +27,11 @@ class Coverage : public AllStatic { |
| }; |
| static std::vector<ScriptData> Collect(Isolate* isolate); |
| + |
| + // Enable precise code coverage. This disables optimization and makes sure |
| + // invocation count is not affected by GC. |
| + static void EnablePrecise(Isolate* isolate); |
| + static void DisablePrecise(Isolate* isolate); |
| }; |
| } // namespace internal |