| 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 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2383 } | 2383 } |
| 2384 if (js->HasParam("endTokenPos")) { | 2384 if (js->HasParam("endTokenPos")) { |
| 2385 js->PrintError( | 2385 js->PrintError( |
| 2386 kInvalidParams, | 2386 kInvalidParams, |
| 2387 "%s: the 'endTokenPos' parameter requires the 'scriptId' parameter", | 2387 "%s: the 'endTokenPos' parameter requires the 'scriptId' parameter", |
| 2388 js->method()); | 2388 js->method()); |
| 2389 return true; | 2389 return true; |
| 2390 } | 2390 } |
| 2391 } | 2391 } |
| 2392 SourceReport report(report_set, compile_mode); | 2392 SourceReport report(report_set, compile_mode); |
| 2393 report.PrintJSON(js, script, start_pos, end_pos); | 2393 report.PrintJSON(js, |
| 2394 script, |
| 2395 TokenDescriptor(start_pos), |
| 2396 TokenDescriptor(end_pos)); |
| 2394 return true; | 2397 return true; |
| 2395 } | 2398 } |
| 2396 | 2399 |
| 2397 | 2400 |
| 2398 static const MethodParameter* get_call_site_data_params[] = { | 2401 static const MethodParameter* get_call_site_data_params[] = { |
| 2399 ISOLATE_PARAMETER, | 2402 ISOLATE_PARAMETER, |
| 2400 new IdParameter("targetId", false), | 2403 new IdParameter("targetId", false), |
| 2401 NULL, | 2404 NULL, |
| 2402 }; | 2405 }; |
| 2403 | 2406 |
| (...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3866 const ServiceMethodDescriptor& method = service_methods_[i]; | 3869 const ServiceMethodDescriptor& method = service_methods_[i]; |
| 3867 if (strcmp(method_name, method.name) == 0) { | 3870 if (strcmp(method_name, method.name) == 0) { |
| 3868 return &method; | 3871 return &method; |
| 3869 } | 3872 } |
| 3870 } | 3873 } |
| 3871 return NULL; | 3874 return NULL; |
| 3872 } | 3875 } |
| 3873 | 3876 |
| 3874 | 3877 |
| 3875 } // namespace dart | 3878 } // namespace dart |
| OLD | NEW |