Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index abd805e57218c1f5fa5053f17f54270f92472d9c..7f625d72601f3e93c127c0eb736d69aa6d210a26 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -244,6 +244,12 @@ Handle<String> Factory::InternalizeStringWithKey(StringTableKey* key) { |
} |
+Handle<Name> Factory::InternalizeName(Handle<Name> name) { |
+ if (name->IsUniqueName()) return name; |
+ return InternalizeString(Handle<String>::cast(name)); |
+} |
+ |
+ |
MaybeHandle<String> Factory::NewStringFromOneByte(Vector<const uint8_t> string, |
PretenureFlag pretenure) { |
int length = string.length(); |