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

Unified Diff: runtime/bin/builtin.cc

Issue 11318018: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « no previous file | runtime/bin/builtin_natives.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.cc
===================================================================
--- runtime/bin/builtin.cc (revision 14314)
+++ runtime/bin/builtin.cc (working copy)
@@ -26,7 +26,7 @@
ASSERT((sizeof(builtin_libraries_) / sizeof(builtin_lib_props)) ==
kInvalidLibrary);
ASSERT(id >= kBuiltinLibrary && id < kInvalidLibrary);
- return Dart_NewString(builtin_libraries_[id].source_);
+ return DartUtils::NewString(builtin_libraries_[id].source_);
}
@@ -39,7 +39,7 @@
ASSERT((sizeof(builtin_libraries_) / sizeof(builtin_lib_props)) ==
kInvalidLibrary);
ASSERT(id >= kBuiltinLibrary && id < kInvalidLibrary);
- Dart_Handle url = Dart_NewString(builtin_libraries_[id].url_);
+ Dart_Handle url = DartUtils::NewString(builtin_libraries_[id].url_);
Dart_Handle library = Dart_LookupLibrary(url);
if (Dart_IsError(library)) {
library = Dart_LoadLibrary(url, Source(id));
@@ -49,9 +49,10 @@
}
if (builtin_libraries_[id].patch_url_ != NULL) {
ASSERT(builtin_libraries_[id].patch_source_ != NULL);
- Dart_Handle patch_url = Dart_NewString(builtin_libraries_[id].patch_url_);
+ Dart_Handle patch_url =
+ DartUtils::NewString(builtin_libraries_[id].patch_url_);
Dart_Handle patch_source =
- Dart_NewString(builtin_libraries_[id].patch_source_);
+ DartUtils::NewString(builtin_libraries_[id].patch_source_);
DART_CHECK_VALID(Dart_LoadPatch(library, patch_url, patch_source));
}
}
« no previous file with comments | « no previous file | runtime/bin/builtin_natives.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698