Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index b5f6c56a96f93ef8a7d52fb6f8f84fda1988bd97..5e38d06a8fda45816b5cd2733cafc6787fedf77f 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -200,7 +200,7 @@ Handle<String> Factory::NewStringFromAscii(Vector<const char> string, |
PretenureFlag pretenure) { |
CALL_HEAP_FUNCTION( |
isolate(), |
- isolate()->heap()->AllocateStringFromAscii(string, pretenure), |
+ isolate()->heap()->AllocateStringFromOneByte(string, pretenure), |
String); |
} |
@@ -226,7 +226,7 @@ Handle<SeqOneByteString> Factory::NewRawOneByteString(int length, |
PretenureFlag pretenure) { |
CALL_HEAP_FUNCTION( |
isolate(), |
- isolate()->heap()->AllocateRawAsciiString(length, pretenure), |
+ isolate()->heap()->AllocateRawOneByteString(length, pretenure), |
SeqOneByteString); |
} |