| 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 3489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3500 static const MethodParameter* get_version_params[] = { | 3500 static const MethodParameter* get_version_params[] = { |
| 3501 NO_ISOLATE_PARAMETER, | 3501 NO_ISOLATE_PARAMETER, |
| 3502 NULL, | 3502 NULL, |
| 3503 }; | 3503 }; |
| 3504 | 3504 |
| 3505 | 3505 |
| 3506 static bool GetVersion(Thread* thread, JSONStream* js) { | 3506 static bool GetVersion(Thread* thread, JSONStream* js) { |
| 3507 JSONObject jsobj(js); | 3507 JSONObject jsobj(js); |
| 3508 jsobj.AddProperty("type", "Version"); | 3508 jsobj.AddProperty("type", "Version"); |
| 3509 jsobj.AddProperty("major", static_cast<intptr_t>(3)); | 3509 jsobj.AddProperty("major", static_cast<intptr_t>(3)); |
| 3510 jsobj.AddProperty("minor", static_cast<intptr_t>(0)); | 3510 jsobj.AddProperty("minor", static_cast<intptr_t>(3)); |
| 3511 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); | 3511 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); |
| 3512 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); | 3512 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); |
| 3513 return true; | 3513 return true; |
| 3514 } | 3514 } |
| 3515 | 3515 |
| 3516 | 3516 |
| 3517 class ServiceIsolateVisitor : public IsolateVisitor { | 3517 class ServiceIsolateVisitor : public IsolateVisitor { |
| 3518 public: | 3518 public: |
| 3519 explicit ServiceIsolateVisitor(JSONArray* jsarr) | 3519 explicit ServiceIsolateVisitor(JSONArray* jsarr) |
| 3520 : jsarr_(jsarr) { | 3520 : jsarr_(jsarr) { |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3887 const ServiceMethodDescriptor& method = service_methods_[i]; | 3887 const ServiceMethodDescriptor& method = service_methods_[i]; |
| 3888 if (strcmp(method_name, method.name) == 0) { | 3888 if (strcmp(method_name, method.name) == 0) { |
| 3889 return &method; | 3889 return &method; |
| 3890 } | 3890 } |
| 3891 } | 3891 } |
| 3892 return NULL; | 3892 return NULL; |
| 3893 } | 3893 } |
| 3894 | 3894 |
| 3895 | 3895 |
| 3896 } // namespace dart | 3896 } // namespace dart |
| OLD | NEW |