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

Unified Diff: src/factory.h

Issue 10828229: Add basic support for Latin1 strings to the API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index 10abba731bb12c7b9adf2b40e216bb68d8f99c70..58bb4a85c2aecfe7d0ca44bc175f9603102205fd 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -120,7 +120,13 @@ class Factory {
// flags in the parser.
Handle<String> NewStringFromUtf8(
Vector<const char> str,
- PretenureFlag pretenure = NOT_TENURED);
+ PretenureFlag pretenure = NOT_TENURED,
+ String::AsciiHint ascii_hint = String::MAYBE_ASCII);
+
+ Handle<String> NewStringFromLatin1(
+ Vector<const char> str,
+ PretenureFlag pretenure = NOT_TENURED,
+ String::AsciiHint ascii_hint = String::MAYBE_ASCII);
Handle<String> NewStringFromTwoByte(
Vector<const uc16> str,

Powered by Google App Engine
This is Rietveld 408576698