| 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_DARTUTILS_H_ | 5 #ifndef BIN_DARTUTILS_H_ |
| 6 #define BIN_DARTUTILS_H_ | 6 #define BIN_DARTUTILS_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "include/dart_native_api.h" | 9 #include "include/dart_native_api.h" |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 122 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
| 123 Dart_Handle library, | 123 Dart_Handle library, |
| 124 Dart_Handle url); | 124 Dart_Handle url); |
| 125 static Dart_Handle LoadScript(const char* script_uri, | 125 static Dart_Handle LoadScript(const char* script_uri, |
| 126 Dart_Handle builtin_lib); | 126 Dart_Handle builtin_lib); |
| 127 static Dart_Handle PrepareBuiltinLibrary(Dart_Handle builtin_lib, | 127 static Dart_Handle PrepareBuiltinLibrary(Dart_Handle builtin_lib, |
| 128 Dart_Handle internal_lib, | 128 Dart_Handle internal_lib, |
| 129 bool is_service_isolate, | 129 bool is_service_isolate, |
| 130 bool trace_loading, | 130 bool trace_loading, |
| 131 const char* package_root, | 131 const char* package_root, |
| 132 const char** package_map, |
| 132 const char* packages_file); | 133 const char* packages_file); |
| 133 static Dart_Handle PrepareCoreLibrary(Dart_Handle core_lib, | 134 static Dart_Handle PrepareCoreLibrary(Dart_Handle core_lib, |
| 134 Dart_Handle builtin_lib, | 135 Dart_Handle builtin_lib, |
| 135 bool is_service_isolate); | 136 bool is_service_isolate); |
| 136 static Dart_Handle PrepareAsyncLibrary(Dart_Handle async_lib, | 137 static Dart_Handle PrepareAsyncLibrary(Dart_Handle async_lib, |
| 137 Dart_Handle isolate_lib); | 138 Dart_Handle isolate_lib); |
| 138 static Dart_Handle PrepareIOLibrary(Dart_Handle io_lib); | 139 static Dart_Handle PrepareIOLibrary(Dart_Handle io_lib); |
| 139 static Dart_Handle PrepareIsolateLibrary(Dart_Handle isolate_lib); | 140 static Dart_Handle PrepareIsolateLibrary(Dart_Handle isolate_lib); |
| 140 static Dart_Handle PrepareForScriptLoading(const char* package_root, | 141 static Dart_Handle PrepareForScriptLoading(const char* package_root, |
| 142 const char** package_map, |
| 141 const char* packages_file, | 143 const char* packages_file, |
| 142 bool is_service_isolate, | 144 bool is_service_isolate, |
| 143 bool trace_loading, | 145 bool trace_loading, |
| 144 Dart_Handle builtin_lib); | 146 Dart_Handle builtin_lib); |
| 145 static Dart_Handle SetupIOLibrary(const char* script_uri); | 147 static Dart_Handle SetupIOLibrary(const char* script_uri); |
| 146 | 148 |
| 147 static bool PostNull(Dart_Port port_id); | 149 static bool PostNull(Dart_Port port_id); |
| 148 static bool PostInt32(Dart_Port port_id, int32_t value); | 150 static bool PostInt32(Dart_Port port_id, int32_t value); |
| 149 static bool PostInt64(Dart_Port port_id, int64_t value); | 151 static bool PostInt64(Dart_Port port_id, int64_t value); |
| 150 | 152 |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 585 |
| 584 ~ScopedBlockingCall() { | 586 ~ScopedBlockingCall() { |
| 585 Dart_IsolateUnblocked(); | 587 Dart_IsolateUnblocked(); |
| 586 } | 588 } |
| 587 }; | 589 }; |
| 588 | 590 |
| 589 } // namespace bin | 591 } // namespace bin |
| 590 } // namespace dart | 592 } // namespace dart |
| 591 | 593 |
| 592 #endif // BIN_DARTUTILS_H_ | 594 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |