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

Unified Diff: runtime/bin/gen_snapshot.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
Index: runtime/bin/gen_snapshot.cc
===================================================================
--- runtime/bin/gen_snapshot.cc (revision 14314)
+++ runtime/bin/gen_snapshot.cc (working copy)
@@ -153,7 +153,7 @@
if (!Dart_IsLibrary(library)) {
return Dart_Error("not a library");
}
- if (!Dart_IsString8(url)) {
+ if (!Dart_IsString(url)) {
return Dart_Error("url is not a string");
}
const char* url_string = NULL;
@@ -183,7 +183,7 @@
if (Dart_IsError(source)) {
return source; // source contains the error string.
}
- Dart_Handle url = Dart_NewString(script_name);
+ Dart_Handle url = DartUtils::NewString(script_name);
return Dart_LoadScript(url, source);
}
« no previous file with comments | « runtime/bin/file.cc ('k') | runtime/bin/main.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698