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 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2408 } | 2408 } |
2409 if (js->HasParam("endTokenPos")) { | 2409 if (js->HasParam("endTokenPos")) { |
2410 js->PrintError( | 2410 js->PrintError( |
2411 kInvalidParams, | 2411 kInvalidParams, |
2412 "%s: the 'endTokenPos' parameter requires the 'scriptId' parameter", | 2412 "%s: the 'endTokenPos' parameter requires the 'scriptId' parameter", |
2413 js->method()); | 2413 js->method()); |
2414 return true; | 2414 return true; |
2415 } | 2415 } |
2416 } | 2416 } |
2417 SourceReport report(report_set, compile_mode); | 2417 SourceReport report(report_set, compile_mode); |
2418 report.PrintJSON(js, script, start_pos, end_pos); | 2418 report.PrintJSON(js, |
| 2419 script, |
| 2420 TokenDescriptor(start_pos), |
| 2421 TokenDescriptor(end_pos)); |
2419 return true; | 2422 return true; |
2420 } | 2423 } |
2421 | 2424 |
2422 | 2425 |
2423 static const MethodParameter* get_call_site_data_params[] = { | 2426 static const MethodParameter* get_call_site_data_params[] = { |
2424 RUNNABLE_ISOLATE_PARAMETER, | 2427 RUNNABLE_ISOLATE_PARAMETER, |
2425 new IdParameter("targetId", false), | 2428 new IdParameter("targetId", false), |
2426 NULL, | 2429 NULL, |
2427 }; | 2430 }; |
2428 | 2431 |
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3891 const ServiceMethodDescriptor& method = service_methods_[i]; | 3894 const ServiceMethodDescriptor& method = service_methods_[i]; |
3892 if (strcmp(method_name, method.name) == 0) { | 3895 if (strcmp(method_name, method.name) == 0) { |
3893 return &method; | 3896 return &method; |
3894 } | 3897 } |
3895 } | 3898 } |
3896 return NULL; | 3899 return NULL; |
3897 } | 3900 } |
3898 | 3901 |
3899 | 3902 |
3900 } // namespace dart | 3903 } // namespace dart |
OLD | NEW |