OLD | NEW |
(Empty) | |
| 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_DEBUG_DEBUG_COVERAGE_H_ |
| 6 #define V8_DEBUG_DEBUG_COVERAGE_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "src/allocation.h" |
| 11 #include "src/base/macros.h" |
| 12 |
| 13 namespace v8 { |
| 14 namespace internal { |
| 15 |
| 16 // Forward declaration. |
| 17 class Isolate; |
| 18 |
| 19 class Coverage : public AllStatic { |
| 20 public: |
| 21 struct RangeEntry { |
| 22 int end_position; |
| 23 uint32_t count; |
| 24 }; |
| 25 |
| 26 struct ScriptData { |
| 27 ScriptData(int s, std::vector<RangeEntry> e) |
| 28 : script_id(s), entries(std::move(e)) {} |
| 29 int script_id; |
| 30 std::vector<RangeEntry> entries; |
| 31 }; |
| 32 |
| 33 static std::vector<ScriptData> Collect(Isolate* isolate); |
| 34 }; |
| 35 |
| 36 } // namespace internal |
| 37 } // namespace v8 |
| 38 |
| 39 #endif // V8_DEBUG_DEBUG_COVERAGE_H_ |
OLD | NEW |