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

Side by Side Diff: runtime/bin/isolate_data.h

Issue 15772005: - Add different types for persistent and weak persistent handles (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/io_buffer.cc ('k') | runtime/bin/secure_socket.h » ('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) 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 "include/dart_api.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 10
11 11
12 namespace dart { 12 namespace dart {
13 namespace bin { 13 namespace bin {
14 14
15 // Forward declaration. 15 // Forward declaration.
16 class EventHandler; 16 class EventHandler;
17 17
18 // Data associated with every isolate in the standalone VM 18 // Data associated with every isolate in the standalone VM
19 // embedding. This is used to free external resources for each isolate 19 // embedding. This is used to free external resources for each isolate
20 // when the isolate shuts down. 20 // when the isolate shuts down.
21 class IsolateData { 21 class IsolateData {
22 public: 22 public:
23 IsolateData() 23 IsolateData()
24 : event_handler(NULL), object_array_class(NULL), 24 : event_handler(NULL), object_array_class(NULL),
25 growable_object_array_class(NULL), immutable_array_class(NULL) { 25 growable_object_array_class(NULL), immutable_array_class(NULL) {
26 } 26 }
27 27
28 EventHandler* event_handler; 28 EventHandler* event_handler;
29 Dart_Handle object_array_class; 29 Dart_PersistentHandle object_array_class;
30 Dart_Handle growable_object_array_class; 30 Dart_PersistentHandle growable_object_array_class;
31 Dart_Handle immutable_array_class; 31 Dart_PersistentHandle immutable_array_class;
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(IsolateData); 34 DISALLOW_COPY_AND_ASSIGN(IsolateData);
35 }; 35 };
36 36
37 } // namespace bin 37 } // namespace bin
38 } // namespace dart 38 } // namespace dart
39 39
40 #endif // BIN_ISOLATE_DATA_H_ 40 #endif // BIN_ISOLATE_DATA_H_
OLDNEW
« no previous file with comments | « runtime/bin/io_buffer.cc ('k') | runtime/bin/secure_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698