| 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 2753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2764 | 2764 |
| 2765 static const MethodParameter* get_version_params[] = { | 2765 static const MethodParameter* get_version_params[] = { |
| 2766 NO_ISOLATE_PARAMETER, | 2766 NO_ISOLATE_PARAMETER, |
| 2767 NULL, | 2767 NULL, |
| 2768 }; | 2768 }; |
| 2769 | 2769 |
| 2770 | 2770 |
| 2771 static bool GetVersion(Isolate* isolate, JSONStream* js) { | 2771 static bool GetVersion(Isolate* isolate, JSONStream* js) { |
| 2772 JSONObject jsobj(js); | 2772 JSONObject jsobj(js); |
| 2773 jsobj.AddProperty("type", "Version"); | 2773 jsobj.AddProperty("type", "Version"); |
| 2774 jsobj.AddProperty("major", static_cast<intptr_t>(1)); | 2774 jsobj.AddProperty("major", static_cast<intptr_t>(2)); |
| 2775 jsobj.AddProperty("minor", static_cast<intptr_t>(0)); | 2775 jsobj.AddProperty("minor", static_cast<intptr_t>(0)); |
| 2776 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); | 2776 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); |
| 2777 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); | 2777 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); |
| 2778 return true; | 2778 return true; |
| 2779 } | 2779 } |
| 2780 | 2780 |
| 2781 | 2781 |
| 2782 class ServiceIsolateVisitor : public IsolateVisitor { | 2782 class ServiceIsolateVisitor : public IsolateVisitor { |
| 2783 public: | 2783 public: |
| 2784 explicit ServiceIsolateVisitor(JSONArray* jsarr) | 2784 explicit ServiceIsolateVisitor(JSONArray* jsarr) |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3079 ServiceMethodDescriptor& method = service_methods_[i]; | 3079 ServiceMethodDescriptor& method = service_methods_[i]; |
| 3080 if (strcmp(method_name, method.name) == 0) { | 3080 if (strcmp(method_name, method.name) == 0) { |
| 3081 return &method; | 3081 return &method; |
| 3082 } | 3082 } |
| 3083 } | 3083 } |
| 3084 return NULL; | 3084 return NULL; |
| 3085 } | 3085 } |
| 3086 | 3086 |
| 3087 | 3087 |
| 3088 } // namespace dart | 3088 } // namespace dart |
| OLD | NEW |