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

Unified Diff: bin/main.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
Index: bin/main.cc
===================================================================
--- bin/main.cc (revision 4317)
+++ bin/main.cc (working copy)
@@ -270,6 +270,12 @@
// Handle imports of dart:io.
siva 2012/02/16 18:44:17 The comment is invalid now, maybe // handle import
Ivan Posva 2012/02/16 19:58:50 Done.
if (DartUtils::IsDartIOLibURL(url_string) && (tag == kImportTag)) {
siva 2012/02/16 18:44:17 I don't think we need this (tag == kImportTag) che
Ivan Posva 2012/02/16 19:58:50 Done.
return Builtin::LoadLibrary(Builtin::kIOLibrary);
+ } else if (DartUtils::IsDartJsonLibURL(url_string) && (tag == kImportTag)) {
+ return Builtin::LoadLibrary(Builtin::kJsonLibrary);
+ } else if (DartUtils::IsDartUriLibURL(url_string) && (tag == kImportTag)) {
+ return Builtin::LoadLibrary(Builtin::kUriLibrary);
+ } else if (DartUtils::IsDartUtf8LibURL(url_string) && (tag == kImportTag)) {
+ return Builtin::LoadLibrary(Builtin::kUtf8Library);
turnidge 2012/02/16 17:42:02 Do you notice that here we take a url and convert
Ivan Posva 2012/02/16 19:58:50 Yes, I did notice this back and forth. But I decid
} else {
return Dart_Error("Do not know how to load '%s'", url_string);
}
« bin/dartutils.h ('K') | « bin/json_sources.gypi ('k') | bin/uri_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698