| 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 BIN_ISOLATE_DATA_H_ | 5 #ifndef BIN_ISOLATE_DATA_H_ |
| 6 #define BIN_ISOLATE_DATA_H_ | 6 #define BIN_ISOLATE_DATA_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" |
| 8 #include "platform/globals.h" | 9 #include "platform/globals.h" |
| 9 | 10 |
| 10 // Forward declaration. | 11 // Forward declaration. |
| 11 class EventHandler; | 12 class EventHandler; |
| 12 | 13 |
| 13 // Data associated with every isolate in the standalone VM | 14 // Data associated with every isolate in the standalone VM |
| 14 // embedding. This is used to free external resources for each isolate | 15 // embedding. This is used to free external resources for each isolate |
| 15 // when the isolate shuts down. | 16 // when the isolate shuts down. |
| 16 class IsolateData { | 17 class IsolateData { |
| 17 public: | 18 public: |
| 18 IsolateData() : event_handler(NULL) {} | 19 IsolateData() |
| 20 : event_handler(NULL), object_array_class(NULL), |
| 21 growable_object_array_class(NULL), immutable_array_class(NULL) { |
| 22 } |
| 19 | 23 |
| 20 EventHandler* event_handler; | 24 EventHandler* event_handler; |
| 25 Dart_Handle object_array_class; |
| 26 Dart_Handle growable_object_array_class; |
| 27 Dart_Handle immutable_array_class; |
| 21 | 28 |
| 22 private: | 29 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(IsolateData); | 30 DISALLOW_COPY_AND_ASSIGN(IsolateData); |
| 24 }; | 31 }; |
| 25 | 32 |
| 26 #endif // BIN_ISOLATE_DATA_H_ | 33 #endif // BIN_ISOLATE_DATA_H_ |
| OLD | NEW |