Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(789)

Unified Diff: bin/gen_snapshot.cc

Issue 9417012: - Add dart:json, dart:uri and dart:utf8 to the known and builtin libraries. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/dartutils.cc ('k') | bin/io_in.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/gen_snapshot.cc
===================================================================
--- bin/gen_snapshot.cc (revision 4317)
+++ bin/gen_snapshot.cc (working copy)
@@ -204,10 +204,9 @@
BuiltinLibraryTagHandler,
import_map);
} else {
- ASSERT(id == Builtin::kIOLibrary);
- // Load the dart:io library to make it available in the snapshot
+ // Load the builtin library to make it available in the snapshot
// for importing.
- lib = Builtin::LoadLibrary(Builtin::kIOLibrary);
+ lib = Builtin::LoadLibrary(id);
}
if (!Dart_IsError(lib)) {
Builtin::SetupLibrary(lib, id);
@@ -287,6 +286,12 @@
VerifyLoaded(library);
library = LoadGenericSnapshotCreationScript(Builtin::kIOLibrary);
VerifyLoaded(library);
+ library = LoadGenericSnapshotCreationScript(Builtin::kJsonLibrary);
+ VerifyLoaded(library);
+ library = LoadGenericSnapshotCreationScript(Builtin::kUriLibrary);
+ VerifyLoaded(library);
+ library = LoadGenericSnapshotCreationScript(Builtin::kUtf8Library);
+ VerifyLoaded(library);
}
uint8_t* buffer = NULL;
« no previous file with comments | « bin/dartutils.cc ('k') | bin/io_in.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698