Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: src/debug/mips64/debug-mips64.cc

Issue 2829073002: MIPS64: Move load/store instructions to macro-assembler. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-gap-resolver-mips64.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698