| 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 #include "vm/service.h" | 5 #include "vm/service.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
| 9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
| 10 | 10 |
| (...skipping 2293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2304 NULL, | 2304 NULL, |
| 2305 }; | 2305 }; |
| 2306 | 2306 |
| 2307 | 2307 |
| 2308 static bool GetCoverage(Thread* thread, JSONStream* js) { | 2308 static bool GetCoverage(Thread* thread, JSONStream* js) { |
| 2309 // TODO(rmacnak): Remove this response; it is subsumed by GetCallSiteData. | 2309 // TODO(rmacnak): Remove this response; it is subsumed by GetCallSiteData. |
| 2310 return GetHitsOrSites(thread, js, false); | 2310 return GetHitsOrSites(thread, js, false); |
| 2311 } | 2311 } |
| 2312 | 2312 |
| 2313 | 2313 |
| 2314 static const char* kCallSitesStr = "CallSites"; | 2314 static const char* kCallSitesStr = "_CallSites"; |
| 2315 static const char* kCoverageStr = "Coverage"; | 2315 static const char* kCoverageStr = "Coverage"; |
| 2316 | 2316 |
| 2317 | 2317 |
| 2318 static const char* const report_enum_names[] = { | 2318 static const char* const report_enum_names[] = { |
| 2319 kCallSitesStr, | 2319 kCallSitesStr, |
| 2320 kCoverageStr, | 2320 kCoverageStr, |
| 2321 NULL, | 2321 NULL, |
| 2322 }; | 2322 }; |
| 2323 | 2323 |
| 2324 | 2324 |
| (...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3862 const ServiceMethodDescriptor& method = service_methods_[i]; | 3862 const ServiceMethodDescriptor& method = service_methods_[i]; |
| 3863 if (strcmp(method_name, method.name) == 0) { | 3863 if (strcmp(method_name, method.name) == 0) { |
| 3864 return &method; | 3864 return &method; |
| 3865 } | 3865 } |
| 3866 } | 3866 } |
| 3867 return NULL; | 3867 return NULL; |
| 3868 } | 3868 } |
| 3869 | 3869 |
| 3870 | 3870 |
| 3871 } // namespace dart | 3871 } // namespace dart |
| OLD | NEW |