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 3556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3567 static const MethodParameter* get_version_params[] = { | 3567 static const MethodParameter* get_version_params[] = { |
3568 NO_ISOLATE_PARAMETER, | 3568 NO_ISOLATE_PARAMETER, |
3569 NULL, | 3569 NULL, |
3570 }; | 3570 }; |
3571 | 3571 |
3572 | 3572 |
3573 static bool GetVersion(Thread* thread, JSONStream* js) { | 3573 static bool GetVersion(Thread* thread, JSONStream* js) { |
3574 JSONObject jsobj(js); | 3574 JSONObject jsobj(js); |
3575 jsobj.AddProperty("type", "Version"); | 3575 jsobj.AddProperty("type", "Version"); |
3576 jsobj.AddProperty("major", static_cast<intptr_t>(3)); | 3576 jsobj.AddProperty("major", static_cast<intptr_t>(3)); |
3577 jsobj.AddProperty("minor", static_cast<intptr_t>(1)); | 3577 jsobj.AddProperty("minor", static_cast<intptr_t>(2)); |
3578 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); | 3578 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); |
3579 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); | 3579 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); |
3580 return true; | 3580 return true; |
3581 } | 3581 } |
3582 | 3582 |
3583 | 3583 |
3584 class ServiceIsolateVisitor : public IsolateVisitor { | 3584 class ServiceIsolateVisitor : public IsolateVisitor { |
3585 public: | 3585 public: |
3586 explicit ServiceIsolateVisitor(JSONArray* jsarr) | 3586 explicit ServiceIsolateVisitor(JSONArray* jsarr) |
3587 : jsarr_(jsarr) { | 3587 : jsarr_(jsarr) { |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3955 if (strcmp(method_name, method.name) == 0) { | 3955 if (strcmp(method_name, method.name) == 0) { |
3956 return &method; | 3956 return &method; |
3957 } | 3957 } |
3958 } | 3958 } |
3959 return NULL; | 3959 return NULL; |
3960 } | 3960 } |
3961 | 3961 |
3962 #endif // !PRODUCT | 3962 #endif // !PRODUCT |
3963 | 3963 |
3964 } // namespace dart | 3964 } // namespace dart |
OLD | NEW |