Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_COVERAGE_H_ | 5 #ifndef VM_COVERAGE_H_ |
| 6 #define VM_COVERAGE_H_ | 6 #define VM_COVERAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
| 10 #include "vm/object.h" | |
|
Ivan Posva
2013/09/27 20:19:54
Why don't you forward declare class Array below?
Michael Lippautz (Google)
2013/09/27 21:46:50
Done.
| |
| 10 | 11 |
| 11 namespace dart { | 12 namespace dart { |
| 12 | 13 |
| 13 DECLARE_FLAG(charp, coverage_dir); | 14 DECLARE_FLAG(charp, coverage_dir); |
| 14 | 15 |
| 15 // Forward declarations. | 16 // Forward declarations. |
| 16 class Class; | 17 class Class; |
| 17 class Isolate; | 18 class Isolate; |
| 18 class JSONArray; | 19 class JSONArray; |
| 19 | 20 |
| 20 class CodeCoverage : public AllStatic { | 21 class CodeCoverage : public AllStatic { |
| 21 public: | 22 public: |
| 22 static void Write(Isolate* isolate); | 23 static void Write(Isolate* isolate); |
| 23 | 24 |
| 24 private: | 25 private: |
| 25 static void PrintClass(const Class& cls, const JSONArray& arr); | 26 static void PrintClass(const Class& cls, const JSONArray& arr); |
| 27 static int PrintFunctionsInSource(const String& source, | |
| 28 const Array& functions, | |
| 29 int index, | |
| 30 const JSONArray& hits_arr); | |
| 26 }; | 31 }; |
| 27 | 32 |
| 28 } // namespace dart | 33 } // namespace dart |
| 29 | 34 |
| 30 #endif // VM_COVERAGE_H_ | 35 #endif // VM_COVERAGE_H_ |
| OLD | NEW |