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. |