Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index f1a0bfa52b133da27ea64e3facf02c319a297924..e6a4f2ea478e040a03abf3afe30b6049335c879c 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3932,26 +3932,6 @@ MaybeObject* Heap::CopyJSObject(JSObject* source, AllocationSite* site) { |
} |
-MaybeObject* Heap::AllocateStringFromOneByte(Vector<const uint8_t> string, |
- PretenureFlag pretenure) { |
- int length = string.length(); |
- if (length == 1) { |
- return Heap::LookupSingleCharacterStringFromCode(string[0]); |
- } |
- Object* result; |
- { MaybeObject* maybe_result = |
- AllocateRawOneByteString(string.length(), pretenure); |
- if (!maybe_result->ToObject(&result)) return maybe_result; |
- } |
- |
- // Copy the characters into the new object. |
- CopyChars(SeqOneByteString::cast(result)->GetChars(), |
- string.start(), |
- length); |
- return result; |
-} |
- |
- |
MaybeObject* Heap::AllocateStringFromUtf8Slow(Vector<const char> string, |
int non_ascii_start, |
PretenureFlag pretenure) { |