| 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 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2811 static const MethodParameter* get_version_params[] = { | 2811 static const MethodParameter* get_version_params[] = { |
| 2812 NO_ISOLATE_PARAMETER, | 2812 NO_ISOLATE_PARAMETER, |
| 2813 NULL, | 2813 NULL, |
| 2814 }; | 2814 }; |
| 2815 | 2815 |
| 2816 | 2816 |
| 2817 static bool GetVersion(Isolate* isolate, JSONStream* js) { | 2817 static bool GetVersion(Isolate* isolate, JSONStream* js) { |
| 2818 JSONObject jsobj(js); | 2818 JSONObject jsobj(js); |
| 2819 jsobj.AddProperty("type", "Version"); | 2819 jsobj.AddProperty("type", "Version"); |
| 2820 jsobj.AddProperty("major", static_cast<intptr_t>(2)); | 2820 jsobj.AddProperty("major", static_cast<intptr_t>(2)); |
| 2821 jsobj.AddProperty("minor", static_cast<intptr_t>(0)); | 2821 jsobj.AddProperty("minor", static_cast<intptr_t>(1)); |
| 2822 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); | 2822 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); |
| 2823 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); | 2823 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); |
| 2824 return true; | 2824 return true; |
| 2825 } | 2825 } |
| 2826 | 2826 |
| 2827 | 2827 |
| 2828 class ServiceIsolateVisitor : public IsolateVisitor { | 2828 class ServiceIsolateVisitor : public IsolateVisitor { |
| 2829 public: | 2829 public: |
| 2830 explicit ServiceIsolateVisitor(JSONArray* jsarr) | 2830 explicit ServiceIsolateVisitor(JSONArray* jsarr) |
| 2831 : jsarr_(jsarr) { | 2831 : jsarr_(jsarr) { |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3125 ServiceMethodDescriptor& method = service_methods_[i]; | 3125 ServiceMethodDescriptor& method = service_methods_[i]; |
| 3126 if (strcmp(method_name, method.name) == 0) { | 3126 if (strcmp(method_name, method.name) == 0) { |
| 3127 return &method; | 3127 return &method; |
| 3128 } | 3128 } |
| 3129 } | 3129 } |
| 3130 return NULL; | 3130 return NULL; |
| 3131 } | 3131 } |
| 3132 | 3132 |
| 3133 | 3133 |
| 3134 } // namespace dart | 3134 } // namespace dart |
| OLD | NEW |