| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index db9ef767743939affc3187f00a19957ea4330dd7..81c765e7dba5518e39fea4f6b5072aa07b211755 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.cc
|
| @@ -1068,103 +1068,6 @@ void MacroAssembler::PopTryHandler() {
|
| }
|
|
|
|
|
| -void MacroAssembler::JumpToHandlerEntry() {
|
| - // Compute the handler entry address and jump to it. The handler table is
|
| - // a fixed array of (smi-tagged) code offsets.
|
| - // eax = exception, edi = code object, edx = state.
|
| - mov(ebx, FieldOperand(edi, Code::kHandlerTableOffset));
|
| - shr(edx, StackHandler::kKindWidth);
|
| - mov(edx, FieldOperand(ebx, edx, times_4, FixedArray::kHeaderSize));
|
| - SmiUntag(edx);
|
| - lea(edi, FieldOperand(edi, edx, times_1, Code::kHeaderSize));
|
| - jmp(edi);
|
| -}
|
| -
|
| -
|
| -void MacroAssembler::Throw(Register value) {
|
| - // Adjust this code if not the case.
|
| - STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize);
|
| - STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0);
|
| - STATIC_ASSERT(StackHandlerConstants::kCodeOffset == 1 * kPointerSize);
|
| - STATIC_ASSERT(StackHandlerConstants::kStateOffset == 2 * kPointerSize);
|
| - STATIC_ASSERT(StackHandlerConstants::kContextOffset == 3 * kPointerSize);
|
| - STATIC_ASSERT(StackHandlerConstants::kFPOffset == 4 * kPointerSize);
|
| -
|
| - // The exception is expected in eax.
|
| - if (!value.is(eax)) {
|
| - mov(eax, value);
|
| - }
|
| - // Drop the stack pointer to the top of the top handler.
|
| - ExternalReference handler_address(Isolate::kHandlerAddress, isolate());
|
| - mov(esp, Operand::StaticVariable(handler_address));
|
| - // Restore the next handler.
|
| - pop(Operand::StaticVariable(handler_address));
|
| -
|
| - // Remove the code object and state, compute the handler address in edi.
|
| - pop(edi); // Code object.
|
| - pop(edx); // Index and state.
|
| -
|
| - // Restore the context and frame pointer.
|
| - pop(esi); // Context.
|
| - pop(ebp); // Frame pointer.
|
| -
|
| - // If the handler is a JS frame, restore the context to the frame.
|
| - // (kind == ENTRY) == (ebp == 0) == (esi == 0), so we could test either
|
| - // ebp or esi.
|
| - Label skip;
|
| - test(esi, esi);
|
| - j(zero, &skip, Label::kNear);
|
| - mov(Operand(ebp, StandardFrameConstants::kContextOffset), esi);
|
| - bind(&skip);
|
| -
|
| - JumpToHandlerEntry();
|
| -}
|
| -
|
| -
|
| -void MacroAssembler::ThrowUncatchable(Register value) {
|
| - // Adjust this code if not the case.
|
| - STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize);
|
| - STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0);
|
| - STATIC_ASSERT(StackHandlerConstants::kCodeOffset == 1 * kPointerSize);
|
| - STATIC_ASSERT(StackHandlerConstants::kStateOffset == 2 * kPointerSize);
|
| - STATIC_ASSERT(StackHandlerConstants::kContextOffset == 3 * kPointerSize);
|
| - STATIC_ASSERT(StackHandlerConstants::kFPOffset == 4 * kPointerSize);
|
| -
|
| - // The exception is expected in 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));
|
| -
|
| - // Unwind the handlers until the top ENTRY handler is found.
|
| - Label fetch_next, check_kind;
|
| - jmp(&check_kind, Label::kNear);
|
| - bind(&fetch_next);
|
| - mov(esp, Operand(esp, StackHandlerConstants::kNextOffset));
|
| -
|
| - bind(&check_kind);
|
| - STATIC_ASSERT(StackHandler::JS_ENTRY == 0);
|
| - test(Operand(esp, StackHandlerConstants::kStateOffset),
|
| - Immediate(StackHandler::KindField::kMask));
|
| - j(not_zero, &fetch_next);
|
| -
|
| - // Set the top handler address to next handler past the top ENTRY handler.
|
| - pop(Operand::StaticVariable(handler_address));
|
| -
|
| - // Remove the code object and state, compute the handler address in edi.
|
| - pop(edi); // Code object.
|
| - pop(edx); // Index and state.
|
| -
|
| - // Clear the context pointer and frame pointer (0 was saved in the handler).
|
| - pop(esi);
|
| - pop(ebp);
|
| -
|
| - JumpToHandlerEntry();
|
| -}
|
| -
|
| -
|
| void MacroAssembler::CheckAccessGlobalProxy(Register holder_reg,
|
| Register scratch1,
|
| Register scratch2,
|
|
|