Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index db6e752a8e26c13c92a6ec23cc237e43db3df0ce..4444c364eaa866612a18a8fd9c5f8c46a73f9886 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -221,6 +221,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. |