Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 61152ad477c91f56fee3437b02cc5913ab2f8e1c..0ccd0ab2f2b86ddab87573070841954d5f53c548 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2522,6 +2522,13 @@ bool Heap::CreateInitialMaps() { |
roots_[entry.index] = map; |
} |
+ { // Create a separate external one byte string map for native sources. |
+ AllocationResult allocation = AllocateMap(EXTERNAL_ONE_BYTE_STRING_TYPE, |
+ ExternalOneByteString::kSize); |
+ if (!allocation.To(&obj)) return false; |
+ set_native_source_string_map(Map::cast(obj)); |
+ } |
+ |
ALLOCATE_VARSIZE_MAP(STRING_TYPE, undetectable_string) |
undetectable_string_map()->set_is_undetectable(); |