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

Unified Diff: src/factory.h

Issue 11469014: Add a safe API for creating ASCII-only strings
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 | « src/api.cc ('k') | src/factory.cc » ('j') | src/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index dd613b71e49a50e8532293afb32a095fe1b98fc1..2cd092a56f47f03405b7d48634ad1fb91f9e649d 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -117,6 +117,10 @@ class Factory {
Vector<const char> str,
PretenureFlag pretenure = NOT_TENURED);
+ Handle<String> NewStringFromAsciiSafe(
+ Vector<const char> str,
+ PretenureFlag pretenure = NOT_TENURED);
+
// UTF8 strings are pretenured when used for regexp literal patterns and
// flags in the parser.
Handle<String> NewStringFromUtf8(
« no previous file with comments | « src/api.cc ('k') | src/factory.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698