Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index bf008e084b423c37c12b1598f7d8548094cd3279..181c5451dba040541bd8158c46a045a103ac977d 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -3222,40 +3222,22 @@ void MacroAssembler::DebugBreak() { |
// --------------------------------------------------------------------------- |
// Exception handling. |
-void MacroAssembler::PushTryHandler(StackHandler::Kind kind, |
- int handler_index) { |
+void MacroAssembler::PushStackHandler() { |
// Adjust this code if not the case. |
- STATIC_ASSERT(StackHandlerConstants::kSize == 3 * kPointerSize); |
+ STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); |
STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
- STATIC_ASSERT(StackHandlerConstants::kStateOffset == 1 * kPointerSize); |
- STATIC_ASSERT(StackHandlerConstants::kContextOffset == 2 * kPointerSize); |
- |
- // For the JSEntry handler, we must preserve a0-a3 and s0. |
- // a5-a7 are available. We will build up the handler from the bottom by |
- // pushing on the stack. |
- // Set up the the index (a6) for pushing. |
- li(a6, Operand(handler_index)); |
- |
- // Push the context and index. |
- if (kind == StackHandler::JS_ENTRY) { |
- DCHECK(Smi::FromInt(0) == 0); |
- // The zero_reg indicates no context. |
- // The operands are reversed to match the order of MultiPush/Pop. |
- Push(zero_reg, a6); |
- } else { |
- MultiPush(a6.bit() | cp.bit()); |
- } |
// Link the current handler as the next handler. |
li(a6, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); |
ld(a5, MemOperand(a6)); |
push(a5); |
+ |
// Set this new handler as the current one. |
sd(sp, MemOperand(a6)); |
} |
-void MacroAssembler::PopTryHandler() { |
+void MacroAssembler::PopStackHandler() { |
STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0); |
pop(a1); |
Daddu(sp, sp, Operand(StackHandlerConstants::kSize - kPointerSize)); |