| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 15feb9d5fb9ccceace38f05e9a695c9bdbc64acd..ba50c0f7358eaedf1d940a078357e591fe9b0782 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -330,6 +330,11 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
|
| }
|
|
|
|
|
| +bool Heap::CollectGarbage(AllocationSpace space) {
|
| + return CollectGarbage(space, SelectGarbageCollector(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.
|
| @@ -413,7 +418,7 @@ void Heap::SetLastScriptId(Object* last_script_id) {
|
| } \
|
| if (!__maybe_object__->IsRetryAfterGC()) RETURN_EMPTY; \
|
| Counters::gc_last_resort_from_handles.Increment(); \
|
| - Heap::CollectAllGarbage(false); \
|
| + Heap::CollectAllAvailableGarbage(); \
|
| { \
|
| AlwaysAllocateScope __scope__; \
|
| __maybe_object__ = FUNCTION_CALL; \
|
|
|