| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/debug/debug.h" | 7 #include "src/debug/debug.h" |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/debug/liveedit.h" | 10 #include "src/debug/liveedit.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 __ Ret(); | 117 __ Ret(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 void DebugCodegen::GenerateFrameDropperTrampoline(MacroAssembler* masm) { | 120 void DebugCodegen::GenerateFrameDropperTrampoline(MacroAssembler* masm) { |
| 121 // Frame is being dropped: | 121 // Frame is being dropped: |
| 122 // - Drop to the target frame specified by a1. | 122 // - Drop to the target frame specified by a1. |
| 123 // - Look up current function on the frame. | 123 // - Look up current function on the frame. |
| 124 // - Leave the frame. | 124 // - Leave the frame. |
| 125 // - Restart the frame by calling the function. | 125 // - Restart the frame by calling the function. |
| 126 __ mov(fp, a1); | 126 __ mov(fp, a1); |
| 127 __ ld(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 127 __ Ld(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 128 | 128 |
| 129 // Pop return address and frame. | 129 // Pop return address and frame. |
| 130 __ LeaveFrame(StackFrame::INTERNAL); | 130 __ LeaveFrame(StackFrame::INTERNAL); |
| 131 | 131 |
| 132 __ ld(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 132 __ Ld(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
| 133 __ ld(a0, | 133 __ Ld(a0, |
| 134 FieldMemOperand(a0, SharedFunctionInfo::kFormalParameterCountOffset)); | 134 FieldMemOperand(a0, SharedFunctionInfo::kFormalParameterCountOffset)); |
| 135 __ mov(a2, a0); | 135 __ mov(a2, a0); |
| 136 | 136 |
| 137 ParameterCount dummy1(a2); | 137 ParameterCount dummy1(a2); |
| 138 ParameterCount dummy2(a0); | 138 ParameterCount dummy2(a0); |
| 139 __ InvokeFunction(a1, dummy1, dummy2, JUMP_FUNCTION, | 139 __ InvokeFunction(a1, dummy1, dummy2, JUMP_FUNCTION, |
| 140 CheckDebugStepCallWrapper()); | 140 CheckDebugStepCallWrapper()); |
| 141 } | 141 } |
| 142 | 142 |
| 143 | 143 |
| 144 const bool LiveEdit::kFrameDropperSupported = true; | 144 const bool LiveEdit::kFrameDropperSupported = true; |
| 145 | 145 |
| 146 #undef __ | 146 #undef __ |
| 147 | 147 |
| 148 } // namespace internal | 148 } // namespace internal |
| 149 } // namespace v8 | 149 } // namespace v8 |
| 150 | 150 |
| 151 #endif // V8_TARGET_ARCH_MIPS64 | 151 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |