| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index 9986c3ed86e3a313f21b7840648cba88f5523af1..e63a065f0a42b9ba446906a6f4155e9252ca39d1 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.cc
|
| @@ -862,8 +862,7 @@ void MacroAssembler::Throw(Register value) {
|
| }
|
|
|
|
|
| -void MacroAssembler::ThrowUncatchable(UncatchableExceptionType type,
|
| - Register value) {
|
| +void MacroAssembler::ThrowUncatchable(Register value) {
|
| // Adjust this code if not the case.
|
| STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize);
|
| STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0);
|
| @@ -873,21 +872,9 @@ void MacroAssembler::ThrowUncatchable(UncatchableExceptionType type,
|
| STATIC_ASSERT(StackHandlerConstants::kFPOffset == 4 * kPointerSize);
|
|
|
| // The exception is expected in eax.
|
| - if (type == OUT_OF_MEMORY) {
|
| - // Set external caught exception to false.
|
| - ExternalReference external_caught(Isolate::kExternalCaughtExceptionAddress,
|
| - isolate());
|
| - mov(Operand::StaticVariable(external_caught), Immediate(false));
|
| -
|
| - // Set pending exception and eax to out of memory exception.
|
| - ExternalReference pending_exception(Isolate::kPendingExceptionAddress,
|
| - isolate());
|
| - mov(eax, reinterpret_cast<int32_t>(Failure::OutOfMemoryException()));
|
| - mov(Operand::StaticVariable(pending_exception), eax);
|
| - } else if (!value.is(eax)) {
|
| + if (!value.is(eax)) {
|
| mov(eax, value);
|
| }
|
| -
|
| // Drop the stack pointer to the top of the top stack handler.
|
| ExternalReference handler_address(Isolate::kHandlerAddress, isolate());
|
| mov(esp, Operand::StaticVariable(handler_address));
|
|
|