| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 59ed1de37522b2966f725471635d6cf7a27ada59..17a6a58e31a222f967f652682ed8c8bc2a8200ff 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -574,28 +574,6 @@ void Failure::FailurePrint() {
|
| }
|
|
|
|
|
| -Failure* Failure::RetryAfterGC(int requested_bytes, AllocationSpace space) {
|
| - ASSERT((space & ~kSpaceTagMask) == 0);
|
| - // TODO(X64): Stop using Smi validation for non-smi checks, even if they
|
| - // happen to be identical at the moment.
|
| -
|
| - int requested = requested_bytes >> kObjectAlignmentBits;
|
| - int value = (requested << kSpaceTagSize) | space;
|
| - // We can't very well allocate a heap number in this situation, and if the
|
| - // requested memory is so large it seems reasonable to say that this is an
|
| - // out of memory situation. This fixes a crash in
|
| - // js1_5/Regress/regress-303213.js.
|
| - if (value >> kSpaceTagSize != requested ||
|
| - !Smi::IsValid(value) ||
|
| - value != ((value << kFailureTypeTagSize) >> kFailureTypeTagSize) ||
|
| - !Smi::IsValid(value << kFailureTypeTagSize)) {
|
| - Top::context()->mark_out_of_memory();
|
| - return Failure::OutOfMemoryException();
|
| - }
|
| - return Construct(RETRY_AFTER_GC, value);
|
| -}
|
| -
|
| -
|
| // Should a word be prefixed by 'a' or 'an' in order to read naturally in
|
| // English? Returns false for non-ASCII or words that don't start with
|
| // a capital letter. The a/an rule follows pronunciation in English.
|
|
|