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

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 10332109: Make the crypto library an official dart:crypto library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix long line Created 8 years, 7 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 | « runtime/bin/dartutils.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/gen_snapshot.cc
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
index 8da048c1687099e9abb714a0e43ce9e81da0b541..6f870305f65cc06f20c2679d95ae27f7855dae54 100644
--- a/runtime/bin/gen_snapshot.cc
+++ b/runtime/bin/gen_snapshot.cc
@@ -183,7 +183,9 @@ static Dart_Handle BuiltinLibraryTagHandler(Dart_LibraryTag tag,
}
ASSERT(tag == kImportTag);
// Handle imports of other built-in libraries present in the SDK.
- if (DartUtils::IsDartIOLibURL(url_string)) {
+ if (DartUtils::IsDartCryptoLibURL(url_string)) {
+ return Builtin::LoadLibrary(Builtin::kCryptoLibrary);
+ } else if (DartUtils::IsDartIOLibURL(url_string)) {
return Builtin::LoadLibrary(Builtin::kIOLibrary);
} else if (DartUtils::IsDartJsonLibURL(url_string)) {
return Builtin::LoadLibrary(Builtin::kJsonLibrary);
@@ -300,6 +302,8 @@ int main(int argc, char** argv) {
Dart_Handle library =
LoadGenericSnapshotCreationScript(Builtin::kBuiltinLibrary);
VerifyLoaded(library);
+ library = LoadGenericSnapshotCreationScript(Builtin::kCryptoLibrary);
+ VerifyLoaded(library);
library = LoadGenericSnapshotCreationScript(Builtin::kIOLibrary);
VerifyLoaded(library);
library = LoadGenericSnapshotCreationScript(Builtin::kJsonLibrary);
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698