| 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 3579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3590 static const MethodParameter* get_version_params[] = { | 3590 static const MethodParameter* get_version_params[] = { |
| 3591 NO_ISOLATE_PARAMETER, | 3591 NO_ISOLATE_PARAMETER, |
| 3592 NULL, | 3592 NULL, |
| 3593 }; | 3593 }; |
| 3594 | 3594 |
| 3595 | 3595 |
| 3596 static bool GetVersion(Thread* thread, JSONStream* js) { | 3596 static bool GetVersion(Thread* thread, JSONStream* js) { |
| 3597 JSONObject jsobj(js); | 3597 JSONObject jsobj(js); |
| 3598 jsobj.AddProperty("type", "Version"); | 3598 jsobj.AddProperty("type", "Version"); |
| 3599 jsobj.AddProperty("major", static_cast<intptr_t>(3)); | 3599 jsobj.AddProperty("major", static_cast<intptr_t>(3)); |
| 3600 jsobj.AddProperty("minor", static_cast<intptr_t>(4)); | 3600 jsobj.AddProperty("minor", static_cast<intptr_t>(5)); |
| 3601 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); | 3601 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); |
| 3602 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); | 3602 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); |
| 3603 return true; | 3603 return true; |
| 3604 } | 3604 } |
| 3605 | 3605 |
| 3606 | 3606 |
| 3607 class ServiceIsolateVisitor : public IsolateVisitor { | 3607 class ServiceIsolateVisitor : public IsolateVisitor { |
| 3608 public: | 3608 public: |
| 3609 explicit ServiceIsolateVisitor(JSONArray* jsarr) | 3609 explicit ServiceIsolateVisitor(JSONArray* jsarr) |
| 3610 : jsarr_(jsarr) { | 3610 : jsarr_(jsarr) { |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3976 if (strcmp(method_name, method.name) == 0) { | 3976 if (strcmp(method_name, method.name) == 0) { |
| 3977 return &method; | 3977 return &method; |
| 3978 } | 3978 } |
| 3979 } | 3979 } |
| 3980 return NULL; | 3980 return NULL; |
| 3981 } | 3981 } |
| 3982 | 3982 |
| 3983 #endif // !PRODUCT | 3983 #endif // !PRODUCT |
| 3984 | 3984 |
| 3985 } // namespace dart | 3985 } // namespace dart |
| OLD | NEW |