| Index: runtime/bin/builtin.h
|
| diff --git a/runtime/bin/builtin.h b/runtime/bin/builtin.h
|
| index ab871af350041f321347ce3f5f45d66da04665b9..863237a3b79653ada1bf014a556001c39f473821 100644
|
| --- a/runtime/bin/builtin.h
|
| +++ b/runtime/bin/builtin.h
|
| @@ -30,7 +30,20 @@ class Builtin {
|
| enum BuiltinLibraryId {
|
| kBuiltinLibrary = 0,
|
| kIOLibrary,
|
| -
|
| +#if defined(DART_NO_SNAPSHOT)
|
| + // Only include these libraries in the dart_bootstrap case for now.
|
| + kHTMLLibrary,
|
| + kHTMLCommonLibrary,
|
| + kJSLibrary,
|
| + kBlinkLibrary,
|
| + kIndexedDbLibrary,
|
| + kCachedPatchesLibrary,
|
| + kWebGlLibrary,
|
| + kMetaDataLibrary,
|
| + kWebSqlLibrary,
|
| + kSvgLibrary,
|
| + kWebAudioLibrary,
|
| +#endif // defined(DART_NO_SNAPSHOT)
|
| kInvalidLibrary,
|
| };
|
|
|
| @@ -44,6 +57,7 @@ class Builtin {
|
| static void SetNativeResolver(BuiltinLibraryId id);
|
|
|
| static Dart_Handle LoadLibrary(Dart_Handle url, BuiltinLibraryId id);
|
| + static BuiltinLibraryId FindId(const char* url_string);
|
|
|
| // Check if built in library specified in 'id' is already loaded, if not
|
| // load it.
|
| @@ -66,6 +80,18 @@ class Builtin {
|
| static const char* _builtin_source_paths_[];
|
| static const char* io_source_paths_[];
|
| static const char* io_patch_paths_[];
|
| + static const char* html_source_paths_[];
|
| + static const char* html_common_source_paths_[];
|
| + static const char* js_source_paths_[];
|
| + static const char* blink_source_paths_[];
|
| + static const char* indexeddb_source_paths_[];
|
| + static const char* cached_patches_source_paths_[];
|
| + static const char* web_gl_source_paths_[];
|
| + static const char* metadata_source_paths_[];
|
| + static const char* websql_source_paths_[];
|
| + static const char* svg_source_paths_[];
|
| + static const char* webaudio_source_paths_[];
|
| +
|
| static Dart_Port load_port_;
|
|
|
| typedef struct {
|
|
|