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 RUNTIME_BIN_ISOLATE_DATA_H_ | 5 #ifndef RUNTIME_BIN_ISOLATE_DATA_H_ |
6 #define RUNTIME_BIN_ISOLATE_DATA_H_ | 6 #define RUNTIME_BIN_ISOLATE_DATA_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 "platform/globals.h" | 10 #include "platform/globals.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } | 61 } |
62 void set_loader(Loader* loader) { | 62 void set_loader(Loader* loader) { |
63 ASSERT((loader_ == NULL) || (loader == NULL)); | 63 ASSERT((loader_ == NULL) || (loader == NULL)); |
64 loader_ = loader; | 64 loader_ = loader; |
65 } | 65 } |
66 MallocGrowableArray<char*>* dependencies() const { return dependencies_; } | 66 MallocGrowableArray<char*>* dependencies() const { return dependencies_; } |
67 void set_dependencies(MallocGrowableArray<char*>* deps) { | 67 void set_dependencies(MallocGrowableArray<char*>* deps) { |
68 dependencies_ = deps; | 68 dependencies_ = deps; |
69 } | 69 } |
70 | 70 |
| 71 void OnIsolateShutdown(); |
| 72 |
71 private: | 73 private: |
72 Dart_Handle builtin_lib_; | 74 Dart_Handle builtin_lib_; |
73 Loader* loader_; | 75 Loader* loader_; |
74 AppSnapshot* app_snapshot_; | 76 AppSnapshot* app_snapshot_; |
75 MallocGrowableArray<char*>* dependencies_; | 77 MallocGrowableArray<char*>* dependencies_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(IsolateData); | 79 DISALLOW_COPY_AND_ASSIGN(IsolateData); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace bin | 82 } // namespace bin |
81 } // namespace dart | 83 } // namespace dart |
82 | 84 |
83 #endif // RUNTIME_BIN_ISOLATE_DATA_H_ | 85 #endif // RUNTIME_BIN_ISOLATE_DATA_H_ |
OLD | NEW |