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 3746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual ~ServiceIsolateVisitor() {} | 3762 virtual ~ServiceIsolateVisitor() {} |
3763 | 3763 |
3764 void VisitIsolate(Isolate* isolate) { | 3764 void VisitIsolate(Isolate* isolate) { |
3765 if ((isolate != Dart::vm_isolate()) && | 3765 if ((isolate != Dart::vm_isolate()) && |
3766 !ServiceIsolate::IsServiceIsolateDescendant(isolate)) { | 3766 !ServiceIsolate::IsServiceIsolateDescendant(isolate)) { |
3767 jsarr_->AddValue(isolate, false); | 3767 jsarr_->AddValue(isolate); |
3768 } | 3768 } |
3769 } | 3769 } |
3770 | 3770 |
3771 private: | 3771 private: |
3772 JSONArray* jsarr_; | 3772 JSONArray* jsarr_; |
3773 }; | 3773 }; |
3774 | 3774 |
3775 | 3775 |
3776 static const MethodParameter* get_vm_params[] = { | 3776 static const MethodParameter* get_vm_params[] = { |
3777 NO_ISOLATE_PARAMETER, NULL, | 3777 NO_ISOLATE_PARAMETER, NULL, |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4124 if (strcmp(method_name, method.name) == 0) { | 4124 if (strcmp(method_name, method.name) == 0) { |
4125 return &method; | 4125 return &method; |
4126 } | 4126 } |
4127 } | 4127 } |
4128 return NULL; | 4128 return NULL; |
4129 } | 4129 } |
4130 | 4130 |
4131 #endif // !PRODUCT | 4131 #endif // !PRODUCT |
4132 | 4132 |
4133 } // namespace dart | 4133 } // namespace dart |
OLD | NEW |