OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 VM_BASE_ISOLATE_H_ | 5 #ifndef VM_BASE_ISOLATE_H_ |
6 #define VM_BASE_ISOLATE_H_ | 6 #define VM_BASE_ISOLATE_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 : mutator_thread_(NULL) { | 35 : mutator_thread_(NULL) { |
36 } | 36 } |
37 | 37 |
38 ~BaseIsolate() { | 38 ~BaseIsolate() { |
39 // Do not delete stack resources: top_resource_ and current_zone_. | 39 // Do not delete stack resources: top_resource_ and current_zone_. |
40 } | 40 } |
41 | 41 |
42 Thread* mutator_thread_; | 42 Thread* mutator_thread_; |
43 | 43 |
44 private: | 44 private: |
45 // During migration, some deprecated interfaces will default to using the | |
46 // mutator_thread_ (can't use accessor in Isolate due to circular deps). | |
47 friend class StackResource; | |
48 DISALLOW_COPY_AND_ASSIGN(BaseIsolate); | 45 DISALLOW_COPY_AND_ASSIGN(BaseIsolate); |
49 }; | 46 }; |
50 | 47 |
51 } // namespace dart | 48 } // namespace dart |
52 | 49 |
53 #endif // VM_BASE_ISOLATE_H_ | 50 #endif // VM_BASE_ISOLATE_H_ |
OLD | NEW |