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

Unified Diff: vm/object.cc

Issue 11443005: Issue - 7123 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « vm/object.h ('k') | vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 15761)
+++ vm/object.cc (working copy)
@@ -10082,16 +10082,16 @@
}
-RawString* String::New(const uint8_t* latin1_array,
- intptr_t array_len,
- Heap::Space space) {
+RawString* String::FromLatin1(const uint8_t* latin1_array,
+ intptr_t array_len,
+ Heap::Space space) {
return OneByteString::New(latin1_array, array_len, space);
}
-RawString* String::New(const uint16_t* utf16_array,
- intptr_t array_len,
- Heap::Space space) {
+RawString* String::FromUTF16(const uint16_t* utf16_array,
+ intptr_t array_len,
+ Heap::Space space) {
bool is_one_byte_string = true;
for (intptr_t i = 0; i < array_len; ++i) {
if (!Utf::IsLatin1(utf16_array[i])) {
@@ -10106,9 +10106,9 @@
}
-RawString* String::New(const int32_t* utf32_array,
- intptr_t array_len,
- Heap::Space space) {
+RawString* String::FromUTF32(const int32_t* utf32_array,
+ intptr_t array_len,
+ Heap::Space space) {
bool is_one_byte_string = true;
intptr_t utf16_len = array_len;
for (intptr_t i = 0; i < array_len; ++i) {
« no previous file with comments | « vm/object.h ('k') | vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698