Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: runtime/vm/service.cc

Issue 2567193002: Added method to IsolateVisitor to check for special isolates (i.e., service / vm isolates) since th… (Closed)
Patch Set: Changed name of IsSpecialIsolate to IsVMInternalIsolate Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3744 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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 (!IsVMInternalIsolate(isolate)) {
3766 !ServiceIsolate::IsServiceIsolateDescendant(isolate)) {
3767 jsarr_->AddValue(isolate); 3766 jsarr_->AddValue(isolate);
3768 } 3767 }
3769 } 3768 }
3770 3769
3771 private: 3770 private:
3772 JSONArray* jsarr_; 3771 JSONArray* jsarr_;
3773 }; 3772 };
3774 3773
3775 3774
3776 static const MethodParameter* get_vm_params[] = { 3775 static const MethodParameter* get_vm_params[] = {
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
4124 if (strcmp(method_name, method.name) == 0) { 4123 if (strcmp(method_name, method.name) == 0) {
4125 return &method; 4124 return &method;
4126 } 4125 }
4127 } 4126 }
4128 return NULL; 4127 return NULL;
4129 } 4128 }
4130 4129
4131 #endif // !PRODUCT 4130 #endif // !PRODUCT
4132 4131
4133 } // namespace dart 4132 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698