Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index ea7dcda3b0acd8aee62f2507a5ab5852bd7196d1..f3ac56a8d48a0e73d61ad0614a10fa4702f8bac7 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -560,25 +560,6 @@ bool Heap::CollectGarbage(AllocationSpace space, |
} |
-MaybeObject* Heap::PrepareForCompare(String* str) { |
- // Always flatten small strings and force flattening of long strings |
- // after we have accumulated a certain amount we failed to flatten. |
- static const int kMaxAlwaysFlattenLength = 32; |
- static const int kFlattenLongThreshold = 16*KB; |
- |
- const int length = str->length(); |
- MaybeObject* obj = str->TryFlatten(); |
- if (length <= kMaxAlwaysFlattenLength || |
- unflattened_strings_length_ >= kFlattenLongThreshold) { |
- return obj; |
- } |
- if (obj->IsFailure()) { |
- unflattened_strings_length_ += length; |
- } |
- return str; |
-} |
- |
- |
int64_t Heap::AdjustAmountOfExternalAllocatedMemory( |
int64_t change_in_bytes) { |
ASSERT(HasBeenSetUp()); |