| 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 3741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3752 static_cast<intptr_t>(SERVICE_PROTOCOL_MINOR_VERSION)); | 3752 static_cast<intptr_t>(SERVICE_PROTOCOL_MINOR_VERSION)); |
| 3753 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); | 3753 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); |
| 3754 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); | 3754 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); |
| 3755 return true; | 3755 return true; |
| 3756 } | 3756 } |
| 3757 | 3757 |
| 3758 | 3758 |
| 3759 class ServiceIsolateVisitor : public IsolateVisitor { | 3759 class ServiceIsolateVisitor : public IsolateVisitor { |
| 3760 public: | 3760 public: |
| 3761 explicit ServiceIsolateVisitor(JSONArray* jsarr) : jsarr_(jsarr) {} | 3761 explicit ServiceIsolateVisitor(JSONArray* jsarr) : jsarr_(jsarr) {} |
| 3762 | |
| 3763 virtual ~ServiceIsolateVisitor() {} | 3762 virtual ~ServiceIsolateVisitor() {} |
| 3764 | 3763 |
| 3765 void VisitIsolate(Isolate* isolate) { | 3764 void VisitIsolate(Isolate* isolate) { |
| 3766 if ((isolate != Dart::vm_isolate()) && | 3765 if ((isolate != Dart::vm_isolate()) && |
| 3767 !ServiceIsolate::IsServiceIsolateDescendant(isolate)) { | 3766 !ServiceIsolate::IsServiceIsolateDescendant(isolate)) { |
| 3768 jsarr_->AddValue(isolate); | 3767 jsarr_->AddValue(isolate, false); |
| 3769 } | 3768 } |
| 3770 } | 3769 } |
| 3771 | 3770 |
| 3772 private: | 3771 private: |
| 3773 JSONArray* jsarr_; | 3772 JSONArray* jsarr_; |
| 3774 }; | 3773 }; |
| 3775 | 3774 |
| 3776 | 3775 |
| 3777 static const MethodParameter* get_vm_params[] = { | 3776 static const MethodParameter* get_vm_params[] = { |
| 3778 NO_ISOLATE_PARAMETER, NULL, | 3777 NO_ISOLATE_PARAMETER, NULL, |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4125 if (strcmp(method_name, method.name) == 0) { | 4124 if (strcmp(method_name, method.name) == 0) { |
| 4126 return &method; | 4125 return &method; |
| 4127 } | 4126 } |
| 4128 } | 4127 } |
| 4129 return NULL; | 4128 return NULL; |
| 4130 } | 4129 } |
| 4131 | 4130 |
| 4132 #endif // !PRODUCT | 4131 #endif // !PRODUCT |
| 4133 | 4132 |
| 4134 } // namespace dart | 4133 } // namespace dart |
| OLD | NEW |