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

Side by Side Diff: runtime/vm/isolate.h

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/lib/vmservice.cc ('k') | runtime/vm/isolate.cc » ('j') | 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 #ifndef RUNTIME_VM_ISOLATE_H_ 5 #ifndef RUNTIME_VM_ISOLATE_H_
6 #define RUNTIME_VM_ISOLATE_H_ 6 #define RUNTIME_VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 }; 84 };
85 85
86 86
87 class IsolateVisitor { 87 class IsolateVisitor {
88 public: 88 public:
89 IsolateVisitor() {} 89 IsolateVisitor() {}
90 virtual ~IsolateVisitor() {} 90 virtual ~IsolateVisitor() {}
91 91
92 virtual void VisitIsolate(Isolate* isolate) = 0; 92 virtual void VisitIsolate(Isolate* isolate) = 0;
93 93
94 protected:
95 // Returns true if |isolate| is the VM or service isolate.
96 bool IsVMInternalIsolate(Isolate* isolate) const;
97
94 private: 98 private:
95 DISALLOW_COPY_AND_ASSIGN(IsolateVisitor); 99 DISALLOW_COPY_AND_ASSIGN(IsolateVisitor);
96 }; 100 };
97 101
98 102
99 // Disallow OOB message handling within this scope. 103 // Disallow OOB message handling within this scope.
100 class NoOOBMessageScope : public StackResource { 104 class NoOOBMessageScope : public StackResource {
101 public: 105 public:
102 explicit NoOOBMessageScope(Thread* thread); 106 explicit NoOOBMessageScope(Thread* thread);
103 ~NoOOBMessageScope(); 107 ~NoOOBMessageScope();
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 intptr_t* spawn_count_; 992 intptr_t* spawn_count_;
989 993
990 Dart_IsolateFlags isolate_flags_; 994 Dart_IsolateFlags isolate_flags_;
991 bool paused_; 995 bool paused_;
992 bool errors_are_fatal_; 996 bool errors_are_fatal_;
993 }; 997 };
994 998
995 } // namespace dart 999 } // namespace dart
996 1000
997 #endif // RUNTIME_VM_ISOLATE_H_ 1001 #endif // RUNTIME_VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/lib/vmservice.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698