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

Unified Diff: runtime/bin/builtin.cc

Issue 9462001: Unify most of our utf8 implementations. This takes the implementation (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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.h ('k') | runtime/bin/builtin_nolib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.cc
===================================================================
--- runtime/bin/builtin.cc (revision 5167)
+++ runtime/bin/builtin.cc (working copy)
@@ -33,8 +33,8 @@
case kUriLibrary:
source = Dart_NewString(Builtin::uri_source_);
break;
- case kUtf8Library:
- source = Dart_NewString(Builtin::utf8_source_);
+ case kUtfLibrary:
+ source = Dart_NewString(Builtin::utf_source_);
break;
default:
return Dart_Error("Unknown builtin source requested.");
@@ -44,7 +44,7 @@
void Builtin::SetupLibrary(Dart_Handle library, BuiltinLibraryId id) {
- if ((id == kJsonLibrary) || (id == kUriLibrary) || (id == kUtf8Library)) {
+ if ((id == kJsonLibrary) || (id == kUriLibrary) || (id == kUtfLibrary)) {
// No native resolver for these pure Dart libraries.
return;
} else if (id == kBuiltinLibrary) {
@@ -73,8 +73,8 @@
case kUriLibrary:
url = Dart_NewString(DartUtils::kUriLibURL);
break;
- case kUtf8Library:
- url = Dart_NewString(DartUtils::kUtf8LibURL);
+ case kUtfLibrary:
+ url = Dart_NewString(DartUtils::kUtfLibURL);
break;
default:
return Dart_Error("Unknown builtin library requested.");
« no previous file with comments | « runtime/bin/builtin.h ('k') | runtime/bin/builtin_nolib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698