Index: src/debug/debug-coverage.h |
diff --git a/src/debug/debug-coverage.h b/src/debug/debug-coverage.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d8cae32d589c32c44496ee9c4988bd5c55420ee8 |
--- /dev/null |
+++ b/src/debug/debug-coverage.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2017 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef V8_DEBUG_DEBUG_COVERAGE_H_ |
+#define V8_DEBUG_DEBUG_COVERAGE_H_ |
+ |
+#include <vector> |
+#include "src/isolate.h" |
jgruber
2017/02/09 15:43:22
Nit: We can do a forward declaration of Isolate he
|
+ |
+namespace v8 { |
+namespace internal { |
+ |
+class Coverage : public AllStatic { |
+ public: |
+ struct RangeEntry { |
+ int end_position; |
+ uint32_t count; |
+ }; |
+ |
+ struct ScriptData { |
+ int script_id; |
+ std::vector<RangeEntry> entries; |
+ }; |
+ |
+ static std::vector<ScriptData> Collect(Isolate* isolate); |
+}; |
+ |
+} // namespace internal |
+} // namespace v8 |
+ |
+#endif // V8_DEBUG_DEBUG_COVERAGE_H_ |