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 "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 #include "platform/globals.h" | 10 #include "platform/globals.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 static bool IsDartIOLibURL(const char* url_name); | 71 static bool IsDartIOLibURL(const char* url_name); |
72 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, | 72 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, |
73 Dart_Handle library, | 73 Dart_Handle library, |
74 const char* url_str); | 74 const char* url_str); |
75 static Dart_Handle ReadStringFromFile(const char* filename); | 75 static Dart_Handle ReadStringFromFile(const char* filename); |
76 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, | 76 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, |
77 Dart_Handle library, | 77 Dart_Handle library, |
78 Dart_Handle url, | 78 Dart_Handle url, |
79 Dart_LibraryTag tag, | 79 Dart_LibraryTag tag, |
80 const char* filename); | 80 const char* filename); |
| 81 static bool PostNull(Dart_Port port_id); |
| 82 static bool PostInteger(Dart_Port port_id, intptr_t value); |
81 | 83 |
82 static const char* kDartScheme; | 84 static const char* kDartScheme; |
83 static const char* kBuiltinLibURL; | 85 static const char* kBuiltinLibURL; |
84 static const char* kCoreLibURL; | 86 static const char* kCoreLibURL; |
85 static const char* kCoreImplLibURL; | 87 static const char* kCoreImplLibURL; |
86 static const char* kIOLibURL; | 88 static const char* kIOLibURL; |
87 | 89 |
88 static const char* kIdFieldName; | 90 static const char* kIdFieldName; |
89 | 91 |
90 private: | 92 private: |
91 static const char* GetCanonicalPath(const char* reference_dir, | 93 static const char* GetCanonicalPath(const char* reference_dir, |
92 const char* filename); | 94 const char* filename); |
93 | 95 |
94 DISALLOW_ALLOCATION(); | 96 DISALLOW_ALLOCATION(); |
95 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); | 97 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); |
96 }; | 98 }; |
97 | 99 |
98 #endif // BIN_DARTUTILS_H_ | 100 #endif // BIN_DARTUTILS_H_ |
OLD | NEW |