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 "bin/builtin.h" | 8 #include "bin/builtin.h" |
9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 static void SetStringField(Dart_Handle handle, | 101 static void SetStringField(Dart_Handle handle, |
102 const char* name, | 102 const char* name, |
103 const char* val); | 103 const char* val); |
104 static bool IsDartSchemeURL(const char* url_name); | 104 static bool IsDartSchemeURL(const char* url_name); |
105 static bool IsDartExtensionSchemeURL(const char* url_name); | 105 static bool IsDartExtensionSchemeURL(const char* url_name); |
106 static bool IsDartIOLibURL(const char* url_name); | 106 static bool IsDartIOLibURL(const char* url_name); |
107 static bool IsDartBuiltinLibURL(const char* url_name); | 107 static bool IsDartBuiltinLibURL(const char* url_name); |
108 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, | 108 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, |
109 Dart_Handle library, | 109 Dart_Handle library, |
110 const char* url_str); | 110 const char* url_str); |
| 111 static void* OpenFile(const char* name, bool write); |
| 112 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); |
| 113 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); |
| 114 static void CloseFile(void* stream); |
111 static Dart_Handle ReadStringFromFile(const char* filename); | 115 static Dart_Handle ReadStringFromFile(const char* filename); |
112 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 116 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
113 Dart_Handle library, | 117 Dart_Handle library, |
114 Dart_Handle url); | 118 Dart_Handle url); |
115 static Dart_Handle LoadScript(const char* script_uri, | 119 static Dart_Handle LoadScript(const char* script_uri, |
116 Dart_Handle builtin_lib); | 120 Dart_Handle builtin_lib); |
117 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, | 121 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, |
118 Dart_Handle library, | 122 Dart_Handle library, |
119 Dart_Handle url, | 123 Dart_Handle url, |
120 Dart_LibraryTag tag, | 124 Dart_LibraryTag tag, |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 } | 498 } |
495 | 499 |
496 private: | 500 private: |
497 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 501 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
498 }; | 502 }; |
499 | 503 |
500 } // namespace bin | 504 } // namespace bin |
501 } // namespace dart | 505 } // namespace dart |
502 | 506 |
503 #endif // BIN_DARTUTILS_H_ | 507 #endif // BIN_DARTUTILS_H_ |
OLD | NEW |