| 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_BUILTIN_H_ | 5 #ifndef BIN_BUILTIN_H_ |
| 6 #define BIN_BUILTIN_H_ | 6 #define BIN_BUILTIN_H_ |
| 7 | 7 |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 // Note: Changes to this enum should be accompanied with changes to | 24 // Note: Changes to this enum should be accompanied with changes to |
| 25 // the builtin_libraries_ array in builtin.cc and builtin_nolib.cc. | 25 // the builtin_libraries_ array in builtin.cc and builtin_nolib.cc. |
| 26 enum BuiltinLibraryId { | 26 enum BuiltinLibraryId { |
| 27 kBuiltinLibrary = 0, | 27 kBuiltinLibrary = 0, |
| 28 kJsonLibrary, | 28 kJsonLibrary, |
| 29 kUriLibrary, | 29 kUriLibrary, |
| 30 kCryptoLibrary, | 30 kCryptoLibrary, |
| 31 kIOLibrary, | 31 kIOLibrary, |
| 32 kUtfLibrary, | 32 kUtfLibrary, |
| 33 kWebLibrary, | |
| 34 | 33 |
| 35 kInvalidLibrary, | 34 kInvalidLibrary, |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 static Dart_Handle Source(BuiltinLibraryId id); | 37 static Dart_Handle Source(BuiltinLibraryId id); |
| 39 static void SetupLibrary(Dart_Handle library, BuiltinLibraryId id); | 38 static void SetupLibrary(Dart_Handle library, BuiltinLibraryId id); |
| 40 static Dart_Handle LoadAndCheckLibrary(BuiltinLibraryId id); | 39 static Dart_Handle LoadAndCheckLibrary(BuiltinLibraryId id); |
| 41 static void ImportLibrary(Dart_Handle library, BuiltinLibraryId id); | 40 static void ImportLibrary(Dart_Handle library, BuiltinLibraryId id); |
| 42 static void PrintString(FILE* out, Dart_Handle object); | 41 static void PrintString(FILE* out, Dart_Handle object); |
| 43 static void SetupIOLibrary(Dart_Handle io_lib); | 42 static void SetupIOLibrary(Dart_Handle io_lib); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 60 bool has_natives_; | 59 bool has_natives_; |
| 61 } builtin_lib_props; | 60 } builtin_lib_props; |
| 62 static builtin_lib_props builtin_libraries_[]; | 61 static builtin_lib_props builtin_libraries_[]; |
| 63 | 62 |
| 64 DISALLOW_ALLOCATION(); | 63 DISALLOW_ALLOCATION(); |
| 65 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); | 64 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 | 67 |
| 69 #endif // BIN_BUILTIN_H_ | 68 #endif // BIN_BUILTIN_H_ |
| OLD | NEW |