OLD | NEW |
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 VM_SERVICE_ISOLATE_H_ | 5 #ifndef VM_SERVICE_ISOLATE_H_ |
6 #define VM_SERVICE_ISOLATE_H_ | 6 #define VM_SERVICE_ISOLATE_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 | 9 |
10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 private: | 35 private: |
36 static void KillServiceIsolate(); | 36 static void KillServiceIsolate(); |
37 | 37 |
38 protected: | 38 protected: |
39 static void SetServicePort(Dart_Port port); | 39 static void SetServicePort(Dart_Port port); |
40 static void SetServiceIsolate(Isolate* isolate); | 40 static void SetServiceIsolate(Isolate* isolate); |
41 static void SetLoadPort(Dart_Port port); | 41 static void SetLoadPort(Dart_Port port); |
42 static void ConstructExitMessageAndCache(Isolate* isolate); | 42 static void ConstructExitMessageAndCache(Isolate* isolate); |
43 static void FinishedExiting(); | 43 static void FinishedExiting(); |
44 static void FinishedInitializing(); | 44 static void FinishedInitializing(); |
45 static void MaybeInjectVMServiceLibrary(Isolate* isolate); | 45 static void MaybeMakeServiceIsolate(Isolate* isolate); |
46 static Dart_IsolateCreateCallback create_callback() { | 46 static Dart_IsolateCreateCallback create_callback() { |
47 return create_callback_; | 47 return create_callback_; |
48 } | 48 } |
49 | 49 |
50 static Dart_Handle GetSource(const char* name); | 50 static Dart_NativeFunction NativeResolver(Dart_Handle name, |
51 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, | 51 int num_arguments, |
52 Dart_Handle url); | 52 bool* auto_setup_scope); |
53 | 53 |
54 static Dart_IsolateCreateCallback create_callback_; | 54 static Dart_IsolateCreateCallback create_callback_; |
55 static uint8_t* exit_message_; | 55 static uint8_t* exit_message_; |
56 static intptr_t exit_message_length_; | 56 static intptr_t exit_message_length_; |
57 static Monitor* monitor_; | 57 static Monitor* monitor_; |
58 static bool initializing_; | 58 static bool initializing_; |
59 static bool shutting_down_; | 59 static bool shutting_down_; |
60 static Isolate* isolate_; | 60 static Isolate* isolate_; |
61 static Dart_Port port_; | 61 static Dart_Port port_; |
62 static Dart_Port load_port_; | 62 static Dart_Port load_port_; |
63 static Dart_Port origin_; | 63 static Dart_Port origin_; |
64 | 64 |
65 friend class Dart; | 65 friend class Dart; |
66 friend class RunServiceTask; | 66 friend class RunServiceTask; |
67 friend class ServiceIsolateNatives; | 67 friend class ServiceIsolateNatives; |
| 68 friend class Bootstrap; |
68 }; | 69 }; |
69 | 70 |
70 } // namespace dart | 71 } // namespace dart |
71 | 72 |
72 #endif // VM_SERVICE_ISOLATE_H_ | 73 #endif // VM_SERVICE_ISOLATE_H_ |
OLD | NEW |