Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 2b723b38baefda9126a2730eea1901221f59c38e..2051974171d6c5a2ed8b510055d7809f5ea7bd76 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -1441,98 +1441,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. |
- // r0 = exception, r1 = code object, r2 = state. |
- |
- ConstantPoolUnavailableScope constant_pool_unavailable(this); |
- if (FLAG_enable_ool_constant_pool) { |
- ldr(pp, FieldMemOperand(r1, Code::kConstantPoolOffset)); // Constant pool. |
- } |
- ldr(r3, FieldMemOperand(r1, Code::kHandlerTableOffset)); // Handler table. |
- add(r3, r3, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
- mov(r2, Operand(r2, LSR, StackHandler::kKindWidth)); // Handler index. |
- ldr(r2, MemOperand(r3, r2, LSL, kPointerSizeLog2)); // Smi-tagged offset. |
- add(r1, r1, Operand(Code::kHeaderSize - kHeapObjectTag)); // Code start. |
- add(pc, r1, Operand::SmiUntag(r2)); // Jump |
-} |
- |
- |
-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 r0. |
- if (!value.is(r0)) { |
- mov(r0, value); |
- } |
- // Drop the stack pointer to the top of the top handler. |
- mov(r3, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); |
- ldr(sp, MemOperand(r3)); |
- // Restore the next handler. |
- pop(r2); |
- str(r2, MemOperand(r3)); |
- |
- // Get the code object (r1) and state (r2). Restore the context and frame |
- // pointer. |
- ldm(ia_w, sp, r1.bit() | r2.bit() | cp.bit() | fp.bit()); |
- |
- // If the handler is a JS frame, restore the context to the frame. |
- // (kind == ENTRY) == (fp == 0) == (cp == 0), so we could test either fp |
- // or cp. |
- tst(cp, cp); |
- str(cp, MemOperand(fp, StandardFrameConstants::kContextOffset), ne); |
- |
- JumpToHandlerEntry(); |
-} |
- |
- |
-void MacroAssembler::ThrowUncatchable(Register value) { |
- // Adjust this code if not the case. |
- STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize); |
- STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
- 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 r0. |
- if (!value.is(r0)) { |
- mov(r0, value); |
- } |
- // Drop the stack pointer to the top of the top stack handler. |
- mov(r3, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); |
- ldr(sp, MemOperand(r3)); |
- |
- // Unwind the handlers until the ENTRY handler is found. |
- Label fetch_next, check_kind; |
- jmp(&check_kind); |
- bind(&fetch_next); |
- ldr(sp, MemOperand(sp, StackHandlerConstants::kNextOffset)); |
- |
- bind(&check_kind); |
- STATIC_ASSERT(StackHandler::JS_ENTRY == 0); |
- ldr(r2, MemOperand(sp, StackHandlerConstants::kStateOffset)); |
- tst(r2, Operand(StackHandler::KindField::kMask)); |
- b(ne, &fetch_next); |
- |
- // Set the top handler address to next handler past the top ENTRY handler. |
- pop(r2); |
- str(r2, MemOperand(r3)); |
- // Get the code object (r1) and state (r2). Clear the context and frame |
- // pointer (0 was saved in the handler). |
- ldm(ia_w, sp, r1.bit() | r2.bit() | cp.bit() | fp.bit()); |
- |
- JumpToHandlerEntry(); |
-} |
- |
- |
void MacroAssembler::CheckAccessGlobalProxy(Register holder_reg, |
Register scratch, |
Label* miss) { |