| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 static bool IsDartUriLibURL(const char* url_name); | 86 static bool IsDartUriLibURL(const char* url_name); |
| 87 static bool IsDartUtfLibURL(const char* url_name); | 87 static bool IsDartUtfLibURL(const char* url_name); |
| 88 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, | 88 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, |
| 89 Dart_Handle library, | 89 Dart_Handle library, |
| 90 const char* url_str); | 90 const char* url_str); |
| 91 static Dart_Handle ReadStringFromFile(const char* filename); | 91 static Dart_Handle ReadStringFromFile(const char* filename); |
| 92 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 92 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
| 93 Dart_Handle library, | 93 Dart_Handle library, |
| 94 Dart_Handle url); | 94 Dart_Handle url); |
| 95 static Dart_Handle LoadScript(const char* script_uri, | 95 static Dart_Handle LoadScript(const char* script_uri, |
| 96 bool resolve_script, | |
| 97 Dart_Handle builtin_lib); | 96 Dart_Handle builtin_lib); |
| 98 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, | 97 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, |
| 99 Dart_Handle library, | 98 Dart_Handle library, |
| 100 Dart_Handle url, | 99 Dart_Handle url, |
| 101 Dart_LibraryTag tag, | 100 Dart_LibraryTag tag, |
| 102 const char* filename); | 101 const char* filename); |
| 103 static Dart_Handle PrepareForScriptLoading(const char* package_root, | 102 static Dart_Handle PrepareForScriptLoading(const char* package_root, |
| 104 Dart_Handle builtin_lib); | 103 Dart_Handle builtin_lib); |
| 105 | 104 |
| 106 static bool PostNull(Dart_Port port_id); | 105 static bool PostNull(Dart_Port port_id); |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 void* Peer() const { return cobject_->value.as_external_byte_array.peer; } | 362 void* Peer() const { return cobject_->value.as_external_byte_array.peer; } |
| 364 Dart_PeerFinalizer Callback() const { | 363 Dart_PeerFinalizer Callback() const { |
| 365 return cobject_->value.as_external_byte_array.callback; | 364 return cobject_->value.as_external_byte_array.callback; |
| 366 } | 365 } |
| 367 | 366 |
| 368 private: | 367 private: |
| 369 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 368 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
| 370 }; | 369 }; |
| 371 | 370 |
| 372 #endif // BIN_DARTUTILS_H_ | 371 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |