| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 static bool IsDartExtensionSchemeURL(const char* url_name); | 112 static bool IsDartExtensionSchemeURL(const char* url_name); |
| 113 static bool IsDartIOLibURL(const char* url_name); | 113 static bool IsDartIOLibURL(const char* url_name); |
| 114 static bool IsDartBuiltinLibURL(const char* url_name); | 114 static bool IsDartBuiltinLibURL(const char* url_name); |
| 115 static bool IsHttpSchemeURL(const char* url_name); | 115 static bool IsHttpSchemeURL(const char* url_name); |
| 116 static void* OpenFile(const char* name, bool write); | 116 static void* OpenFile(const char* name, bool write); |
| 117 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); | 117 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); |
| 118 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); | 118 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); |
| 119 static void CloseFile(void* stream); | 119 static void CloseFile(void* stream); |
| 120 static bool EntropySource(uint8_t* buffer, intptr_t length); | 120 static bool EntropySource(uint8_t* buffer, intptr_t length); |
| 121 static Dart_Handle ReadStringFromFile(const char* filename); | 121 static Dart_Handle ReadStringFromFile(const char* filename); |
| 122 static Dart_Handle MakeUint8Array(const uint8_t* buffer, intptr_t length); |
| 122 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 123 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
| 123 Dart_Handle library, | 124 Dart_Handle library, |
| 124 Dart_Handle url); | 125 Dart_Handle url); |
| 125 static Dart_Handle LoadScript(const char* script_uri, | 126 static Dart_Handle LoadScript(const char* script_uri, |
| 126 Dart_Handle builtin_lib); | 127 Dart_Handle builtin_lib); |
| 127 static Dart_Handle PrepareBuiltinLibrary(Dart_Handle builtin_lib, | 128 static Dart_Handle PrepareBuiltinLibrary(Dart_Handle builtin_lib, |
| 128 Dart_Handle internal_lib, | 129 Dart_Handle internal_lib, |
| 129 bool is_service_isolate, | 130 bool is_service_isolate, |
| 130 bool trace_loading, | 131 bool trace_loading, |
| 131 const char* package_root, | 132 const char* package_root, |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 | 586 |
| 586 ~ScopedBlockingCall() { | 587 ~ScopedBlockingCall() { |
| 587 Dart_IsolateUnblocked(); | 588 Dart_IsolateUnblocked(); |
| 588 } | 589 } |
| 589 }; | 590 }; |
| 590 | 591 |
| 591 } // namespace bin | 592 } // namespace bin |
| 592 } // namespace dart | 593 } // namespace dart |
| 593 | 594 |
| 594 #endif // BIN_DARTUTILS_H_ | 595 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |