Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: runtime/vm/coverage.h

Issue 1000933004: Display ICData entries at call sites, with links to the targets and guarded classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/observatory/test/call_site_data_test.dart ('k') | runtime/vm/coverage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
(...skipping 19 matching lines...) Expand all
30 const Class& cls, 30 const Class& cls,
31 const Function& func) const = 0; 31 const Function& func) const = 0;
32 virtual ~CoverageFilter() {} 32 virtual ~CoverageFilter() {}
33 }; 33 };
34 34
35 class CodeCoverage : public AllStatic { 35 class CodeCoverage : public AllStatic {
36 public: 36 public:
37 static void Write(Isolate* isolate); 37 static void Write(Isolate* isolate);
38 static void PrintJSON(Isolate* isolate, 38 static void PrintJSON(Isolate* isolate,
39 JSONStream* stream, 39 JSONStream* stream,
40 CoverageFilter* filter); 40 CoverageFilter* filter,
41 bool as_call_sites);
41 42
42 private: 43 private:
43 static void PrintClass(const Library& lib, 44 static void PrintClass(const Library& lib,
44 const Class& cls, 45 const Class& cls,
45 const JSONArray& arr, 46 const JSONArray& arr,
46 CoverageFilter* filter); 47 CoverageFilter* filter,
48 bool as_call_sites);
47 static void CompileAndAdd(const Function& function, 49 static void CompileAndAdd(const Function& function,
48 const JSONArray& hits_arr, 50 const JSONArray& hits_or_sites,
49 const GrowableArray<intptr_t>& pos_to_line); 51 const GrowableArray<intptr_t>& pos_to_line,
52 bool as_call_sites);
50 }; 53 };
51 54
52 } // namespace dart 55 } // namespace dart
53 56
54 #endif // VM_COVERAGE_H_ 57 #endif // VM_COVERAGE_H_
OLDNEW
« no previous file with comments | « runtime/observatory/test/call_site_data_test.dart ('k') | runtime/vm/coverage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698