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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 static const char* kDartScheme; | 89 static const char* kDartScheme; |
90 static const char* kDartExtensionScheme; | 90 static const char* kDartExtensionScheme; |
91 static const char* kBuiltinLibURL; | 91 static const char* kBuiltinLibURL; |
92 static const char* kCoreLibURL; | 92 static const char* kCoreLibURL; |
93 static const char* kCoreImplLibURL; | 93 static const char* kCoreImplLibURL; |
94 static const char* kIOLibURL; | 94 static const char* kIOLibURL; |
95 static const char* kJsonLibURL; | 95 static const char* kJsonLibURL; |
96 static const char* kUriLibURL; | 96 static const char* kUriLibURL; |
97 static const char* kUtf8LibURL; | 97 static const char* kUtf8LibURL; |
| 98 static const char* kIsolateLibURL; |
98 | 99 |
99 static const char* kIdFieldName; | 100 static const char* kIdFieldName; |
100 | 101 |
101 private: | 102 private: |
102 static const char* GetCanonicalPath(const char* reference_dir, | 103 static const char* GetCanonicalPath(const char* reference_dir, |
103 const char* filename); | 104 const char* filename); |
104 | 105 |
105 DISALLOW_ALLOCATION(); | 106 DISALLOW_ALLOCATION(); |
106 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); | 107 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); |
107 }; | 108 }; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 271 |
271 class CObjectByteArray : public CObject { | 272 class CObjectByteArray : public CObject { |
272 public: | 273 public: |
273 DECLARE_COBJECT_CONSTRUCTORS(ByteArray) | 274 DECLARE_COBJECT_CONSTRUCTORS(ByteArray) |
274 | 275 |
275 int Length() const { return cobject_->value.as_byte_array.length; } | 276 int Length() const { return cobject_->value.as_byte_array.length; } |
276 uint8_t* Buffer() const { return cobject_->value.as_byte_array.values; } | 277 uint8_t* Buffer() const { return cobject_->value.as_byte_array.values; } |
277 }; | 278 }; |
278 | 279 |
279 #endif // BIN_DARTUTILS_H_ | 280 #endif // BIN_DARTUTILS_H_ |
OLD | NEW |