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

Unified Diff: src/factory.h

Issue 2549773002: Internalize strings in-place (Closed)
Patch Set: forgot one Created 4 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
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index 2039b625f0853818fac756aca14ea34c1e65e901..9fe474d9a4bce3679bae1704e7bead123209dc0f 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -234,6 +234,11 @@ class V8_EXPORT_PRIVATE Factory final {
MUST_USE_RESULT MaybeHandle<Map> InternalizedStringMapForString(
Handle<String> string);
+ // Creates an internalized copy of an external string. |string| must be
+ // of type StringClass.
+ template <class StringClass>
+ Handle<StringClass> InternalizeExternalString(Handle<String> string);
+
// Allocates and partially initializes an one-byte or two-byte String. The
// characters of the string are uninitialized. Currently used in regexp code
// only, where they are pretenured.

Powered by Google App Engine
This is Rietveld 408576698