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

Unified Diff: runtime/bin/builtin_nolib.cc

Issue 12318031: Move json, uri, utf and crypto libraries into the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/bin/builtin_gen_snapshot.cc ('k') | runtime/bin/crypto_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_nolib.cc
===================================================================
--- runtime/bin/builtin_nolib.cc (revision 18864)
+++ runtime/bin/builtin_nolib.cc (working copy)
@@ -13,11 +13,7 @@
Builtin::builtin_lib_props Builtin::builtin_libraries_[] = {
/* { url_, source_, patch_url_, patch_source_, has_natives_ } */
{ DartUtils::kBuiltinLibURL, NULL, NULL, NULL, true },
- { DartUtils::kJsonLibURL, NULL, NULL, NULL, false },
- { DartUtils::kUriLibURL, NULL, NULL, NULL, false },
- { DartUtils::kCryptoLibURL, NULL, NULL, NULL, false },
{ DartUtils::kIOLibURL, NULL, NULL, NULL, true },
- { DartUtils::kUtfLibURL, NULL, NULL, NULL, false }
};
@@ -58,7 +54,7 @@
Dart_Handle url = DartUtils::NewString(builtin_libraries_[id].url_);
Dart_Handle library = Dart_LookupLibrary(url);
if (Dart_IsError(library)) {
- ASSERT(id > kUtfLibrary);
+ ASSERT(id > kIOLibrary);
library = Dart_LoadLibrary(url, Source(id));
if (!Dart_IsError(library) && (builtin_libraries_[id].has_natives_)) {
// Setup the native resolver for built in library functions.
« no previous file with comments | « runtime/bin/builtin_gen_snapshot.cc ('k') | runtime/bin/crypto_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698