| 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); | |
| 115 static Dart_Handle ReadStringFromFile(const char* filename); | 111 static Dart_Handle ReadStringFromFile(const char* filename); |
| 116 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 112 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
| 117 Dart_Handle library, | 113 Dart_Handle library, |
| 118 Dart_Handle url); | 114 Dart_Handle url); |
| 119 static Dart_Handle LoadScript(const char* script_uri, | 115 static Dart_Handle LoadScript(const char* script_uri, |
| 120 Dart_Handle builtin_lib); | 116 Dart_Handle builtin_lib); |
| 121 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, | 117 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, |
| 122 Dart_Handle library, | 118 Dart_Handle library, |
| 123 Dart_Handle url, | 119 Dart_Handle url, |
| 124 Dart_LibraryTag tag, | 120 Dart_LibraryTag tag, |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 } | 494 } |
| 499 | 495 |
| 500 private: | 496 private: |
| 501 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 497 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
| 502 }; | 498 }; |
| 503 | 499 |
| 504 } // namespace bin | 500 } // namespace bin |
| 505 } // namespace dart | 501 } // namespace dart |
| 506 | 502 |
| 507 #endif // BIN_DARTUTILS_H_ | 503 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |