| Index: bin/builtin.h
|
| ===================================================================
|
| --- bin/builtin.h (revision 8133)
|
| +++ bin/builtin.h (working copy)
|
| @@ -21,13 +21,17 @@
|
|
|
| class Builtin {
|
| public:
|
| + // Note: Changes to this enum should be accompanied with changes to
|
| + // the builtin_libraries_ array in builtin.cc and builtin_nolib.cc.
|
| enum BuiltinLibraryId {
|
| - kBuiltinLibrary,
|
| + kBuiltinLibrary = 0,
|
| + kJsonLibrary,
|
| + kUriLibrary,
|
| kCryptoLibrary,
|
| kIOLibrary,
|
| - kJsonLibrary,
|
| - kUriLibrary,
|
| kUtfLibrary,
|
| +
|
| + kInvalidLibrary,
|
| };
|
|
|
| static Dart_Handle Source(BuiltinLibraryId id);
|
| @@ -48,6 +52,13 @@
|
| static const char uri_source_[];
|
| static const char utf_source_[];
|
|
|
| + typedef struct {
|
| + const char* url_;
|
| + const char* source_;
|
| + bool has_natives_;
|
| + } builtin_lib_props;
|
| + static builtin_lib_props builtin_libraries_[];
|
| +
|
| DISALLOW_ALLOCATION();
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin);
|
| };
|
|
|