| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const char* url_str); | 91 const char* url_str); |
| 92 static Dart_Handle ReadStringFromFile(const char* filename); | 92 static Dart_Handle ReadStringFromFile(const char* filename); |
| 93 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, | 93 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, |
| 94 Dart_Handle library, | 94 Dart_Handle library, |
| 95 Dart_Handle url, | 95 Dart_Handle url, |
| 96 Dart_LibraryTag tag, | 96 Dart_LibraryTag tag, |
| 97 const char* filename); | 97 const char* filename); |
| 98 static bool PostNull(Dart_Port port_id); | 98 static bool PostNull(Dart_Port port_id); |
| 99 static bool PostInt32(Dart_Port port_id, int32_t value); | 99 static bool PostInt32(Dart_Port port_id, int32_t value); |
| 100 | 100 |
| 101 static Dart_Handle GetDartClass(const char* library_url, |
| 102 const char* class_name); |
| 101 // Create a new Dart OSError object with the current OS error. | 103 // Create a new Dart OSError object with the current OS error. |
| 102 static Dart_Handle NewDartOSError(); | 104 static Dart_Handle NewDartOSError(); |
| 103 // Create a new Dart OSError object with the provided OS error. | 105 // Create a new Dart OSError object with the provided OS error. |
| 104 static Dart_Handle NewDartOSError(OSError* os_error); | 106 static Dart_Handle NewDartOSError(OSError* os_error); |
| 107 static Dart_Handle NewDartExceptionWithMessage(const char* library_url, |
| 108 const char* exception_name, |
| 109 const char* message); |
| 110 static Dart_Handle NewDartIllegalArgumentException(const char* message); |
| 105 | 111 |
| 106 static const char* kDartScheme; | 112 static const char* kDartScheme; |
| 107 static const char* kDartExtensionScheme; | 113 static const char* kDartExtensionScheme; |
| 108 static const char* kBuiltinLibURL; | 114 static const char* kBuiltinLibURL; |
| 109 static const char* kCoreLibURL; | 115 static const char* kCoreLibURL; |
| 110 static const char* kCoreImplLibURL; | 116 static const char* kCoreImplLibURL; |
| 111 static const char* kCryptoLibURL; | 117 static const char* kCryptoLibURL; |
| 112 static const char* kIOLibURL; | 118 static const char* kIOLibURL; |
| 113 static const char* kJsonLibURL; | 119 static const char* kJsonLibURL; |
| 114 static const char* kUriLibURL; | 120 static const char* kUriLibURL; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 void* Peer() const { return cobject_->value.as_external_byte_array.peer; } | 355 void* Peer() const { return cobject_->value.as_external_byte_array.peer; } |
| 350 Dart_PeerFinalizer Callback() const { | 356 Dart_PeerFinalizer Callback() const { |
| 351 return cobject_->value.as_external_byte_array.callback; | 357 return cobject_->value.as_external_byte_array.callback; |
| 352 } | 358 } |
| 353 | 359 |
| 354 private: | 360 private: |
| 355 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 361 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
| 356 }; | 362 }; |
| 357 | 363 |
| 358 #endif // BIN_DARTUTILS_H_ | 364 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |