| 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 3468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3479 static const MethodParameter* get_version_params[] = { | 3479 static const MethodParameter* get_version_params[] = { |
| 3480 NO_ISOLATE_PARAMETER, | 3480 NO_ISOLATE_PARAMETER, |
| 3481 NULL, | 3481 NULL, |
| 3482 }; | 3482 }; |
| 3483 | 3483 |
| 3484 | 3484 |
| 3485 static bool GetVersion(Thread* thread, JSONStream* js) { | 3485 static bool GetVersion(Thread* thread, JSONStream* js) { |
| 3486 JSONObject jsobj(js); | 3486 JSONObject jsobj(js); |
| 3487 jsobj.AddProperty("type", "Version"); | 3487 jsobj.AddProperty("type", "Version"); |
| 3488 jsobj.AddProperty("major", static_cast<intptr_t>(3)); | 3488 jsobj.AddProperty("major", static_cast<intptr_t>(3)); |
| 3489 jsobj.AddProperty("minor", static_cast<intptr_t>(0)); | 3489 jsobj.AddProperty("minor", static_cast<intptr_t>(1)); |
| 3490 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); | 3490 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); |
| 3491 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); | 3491 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); |
| 3492 return true; | 3492 return true; |
| 3493 } | 3493 } |
| 3494 | 3494 |
| 3495 | 3495 |
| 3496 class ServiceIsolateVisitor : public IsolateVisitor { | 3496 class ServiceIsolateVisitor : public IsolateVisitor { |
| 3497 public: | 3497 public: |
| 3498 explicit ServiceIsolateVisitor(JSONArray* jsarr) | 3498 explicit ServiceIsolateVisitor(JSONArray* jsarr) |
| 3499 : jsarr_(jsarr) { | 3499 : jsarr_(jsarr) { |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3866 const ServiceMethodDescriptor& method = service_methods_[i]; | 3866 const ServiceMethodDescriptor& method = service_methods_[i]; |
| 3867 if (strcmp(method_name, method.name) == 0) { | 3867 if (strcmp(method_name, method.name) == 0) { |
| 3868 return &method; | 3868 return &method; |
| 3869 } | 3869 } |
| 3870 } | 3870 } |
| 3871 return NULL; | 3871 return NULL; |
| 3872 } | 3872 } |
| 3873 | 3873 |
| 3874 | 3874 |
| 3875 } // namespace dart | 3875 } // namespace dart |
| OLD | NEW |