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

Unified Diff: bin/common.cc

Issue 11275008: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 | « bin/builtin_nolib.cc ('k') | bin/crypto.cc » ('j') | bin/dartutils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/common.cc
===================================================================
--- bin/common.cc (revision 14155)
+++ bin/common.cc (working copy)
@@ -24,16 +24,16 @@
// look them up and cache them now.
if (object_array_class == NULL) {
Dart_Handle coreimpl_lib =
- Dart_LookupLibrary(Dart_NewString("dart:coreimpl"));
+ Dart_LookupLibrary(Dart_NewStringFromCString("dart:coreimpl"));
ASSERT(!Dart_IsError(coreimpl_lib));
- object_array_class =
- Dart_GetClass(coreimpl_lib, Dart_NewString("_ObjectArray"));
+ object_array_class = Dart_GetClass(
+ coreimpl_lib, Dart_NewStringFromCString("_ObjectArray"));
ASSERT(!Dart_IsError(object_array_class));
- immutable_array_class =
- Dart_GetClass(coreimpl_lib, Dart_NewString("_ImmutableArray"));
+ immutable_array_class = Dart_GetClass(
+ coreimpl_lib, Dart_NewStringFromCString("_ImmutableArray"));
ASSERT(!Dart_IsError(immutable_array_class));
- growable_object_array_class =
- Dart_GetClass(coreimpl_lib, Dart_NewString("_GrowableObjectArray"));
+ growable_object_array_class = Dart_GetClass(
+ coreimpl_lib, Dart_NewStringFromCString("_GrowableObjectArray"));
ASSERT(!Dart_IsError(growable_object_array_class));
// Update the cache.
isolate_data->object_array_class =
« no previous file with comments | « bin/builtin_nolib.cc ('k') | bin/crypto.cc » ('j') | bin/dartutils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698