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 3707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3718 static const MethodParameter* get_version_params[] = { | 3718 static const MethodParameter* get_version_params[] = { |
3719 NO_ISOLATE_PARAMETER, | 3719 NO_ISOLATE_PARAMETER, |
3720 NULL, | 3720 NULL, |
3721 }; | 3721 }; |
3722 | 3722 |
3723 | 3723 |
3724 static bool GetVersion(Thread* thread, JSONStream* js) { | 3724 static bool GetVersion(Thread* thread, JSONStream* js) { |
3725 JSONObject jsobj(js); | 3725 JSONObject jsobj(js); |
3726 jsobj.AddProperty("type", "Version"); | 3726 jsobj.AddProperty("type", "Version"); |
3727 jsobj.AddProperty("major", static_cast<intptr_t>(3)); | 3727 jsobj.AddProperty("major", static_cast<intptr_t>(3)); |
3728 jsobj.AddProperty("minor", static_cast<intptr_t>(3)); | 3728 jsobj.AddProperty("minor", static_cast<intptr_t>(4)); |
3729 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); | 3729 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); |
3730 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); | 3730 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); |
3731 return true; | 3731 return true; |
3732 } | 3732 } |
3733 | 3733 |
3734 | 3734 |
3735 class ServiceIsolateVisitor : public IsolateVisitor { | 3735 class ServiceIsolateVisitor : public IsolateVisitor { |
3736 public: | 3736 public: |
3737 explicit ServiceIsolateVisitor(JSONArray* jsarr) | 3737 explicit ServiceIsolateVisitor(JSONArray* jsarr) |
3738 : jsarr_(jsarr) { | 3738 : jsarr_(jsarr) { |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4108 if (strcmp(method_name, method.name) == 0) { | 4108 if (strcmp(method_name, method.name) == 0) { |
4109 return &method; | 4109 return &method; |
4110 } | 4110 } |
4111 } | 4111 } |
4112 return NULL; | 4112 return NULL; |
4113 } | 4113 } |
4114 | 4114 |
4115 #endif // !PRODUCT | 4115 #endif // !PRODUCT |
4116 | 4116 |
4117 } // namespace dart | 4117 } // namespace dart |
OLD | NEW |