Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 913b75601551593eb93bf5f61a5b4e9567dd4b07..ce113d67b4a6a9b7e283d712b117c624de437b01 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -204,10 +204,23 @@ Handle<String> Factory::NewStringFromAscii(Vector<const char> string, |
} |
Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, |
- PretenureFlag pretenure) { |
+ PretenureFlag pretenure, |
+ String::AsciiHint ascii_hint) { |
CALL_HEAP_FUNCTION( |
isolate(), |
- isolate()->heap()->AllocateStringFromUtf8(string, pretenure), |
+ isolate()->heap()->AllocateStringFromUtf8( |
+ string, pretenure, ascii_hint), |
+ String); |
+} |
+ |
+ |
+Handle<String> Factory::NewStringFromLatin1(Vector<const char> string, |
+ PretenureFlag pretenure, |
+ String::AsciiHint ascii_hint) { |
+ CALL_HEAP_FUNCTION( |
+ isolate(), |
+ isolate()->heap()->AllocateStringFromLatin1( |
+ string, pretenure, ascii_hint), |
String); |
} |