OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void DebugCodegen::GenerateCallICStubDebugBreak(MacroAssembler* masm) { | 150 void DebugCodegen::GenerateCallICStubDebugBreak(MacroAssembler* masm) { |
151 // Register state for CallICStub | 151 // Register state for CallICStub |
152 // ----------- S t a t e ------------- | 152 // ----------- S t a t e ------------- |
153 // -- r4 : function | 153 // -- r4 : function |
154 // -- r6 : slot in feedback array (smi) | 154 // -- r6 : slot in feedback array (smi) |
155 // ----------------------------------- | 155 // ----------------------------------- |
156 Generate_DebugBreakCallHelper(masm, r4.bit() | r6.bit(), 0); | 156 Generate_DebugBreakCallHelper(masm, r4.bit() | r6.bit(), 0); |
157 } | 157 } |
158 | 158 |
159 | 159 |
160 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) { | |
161 // Calling convention for IC load (from ic-ppc.cc). | |
162 Register receiver = LoadDescriptor::ReceiverRegister(); | |
163 Register name = LoadDescriptor::NameRegister(); | |
164 Register slot = LoadDescriptor::SlotRegister(); | |
165 RegList regs = receiver.bit() | name.bit() | slot.bit(); | |
166 Generate_DebugBreakCallHelper(masm, regs, 0); | |
167 } | |
168 | |
169 | |
170 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { | |
171 // Calling convention for IC store (from ic-ppc.cc). | |
172 Register receiver = StoreDescriptor::ReceiverRegister(); | |
173 Register name = StoreDescriptor::NameRegister(); | |
174 Register value = StoreDescriptor::ValueRegister(); | |
175 RegList regs = receiver.bit() | name.bit() | value.bit(); | |
176 if (FLAG_vector_stores) { | |
177 regs |= VectorStoreICDescriptor::SlotRegister().bit(); | |
178 } | |
179 Generate_DebugBreakCallHelper(masm, regs, 0); | |
180 } | |
181 | |
182 | |
183 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { | |
184 // Calling convention for keyed IC load (from ic-ppc.cc). | |
185 GenerateLoadICDebugBreak(masm); | |
186 } | |
187 | |
188 | |
189 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { | |
190 // Calling convention for IC keyed store call (from ic-ppc.cc). | |
191 GenerateStoreICDebugBreak(masm); | |
192 } | |
193 | |
194 | |
195 void DebugCodegen::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { | |
196 // Register state for CompareNil IC | |
197 // ----------- S t a t e ------------- | |
198 // -- r3 : value | |
199 // ----------------------------------- | |
200 Generate_DebugBreakCallHelper(masm, r3.bit(), 0); | |
201 } | |
202 | |
203 | |
204 void DebugCodegen::GenerateReturnDebugBreak(MacroAssembler* masm) { | 160 void DebugCodegen::GenerateReturnDebugBreak(MacroAssembler* masm) { |
205 // In places other than IC call sites it is expected that r3 is TOS which | 161 // In places other than IC call sites it is expected that r3 is TOS which |
206 // is an object - this is not generally the case so this should be used with | 162 // is an object - this is not generally the case so this should be used with |
207 // care. | 163 // care. |
208 Generate_DebugBreakCallHelper(masm, r3.bit(), 0); | 164 Generate_DebugBreakCallHelper(masm, r3.bit(), 0); |
209 } | 165 } |
210 | 166 |
211 | 167 |
212 void DebugCodegen::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { | 168 void DebugCodegen::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { |
213 // Register state for CallFunctionStub (from code-stubs-ppc.cc). | 169 // Register state for CallFunctionStub (from code-stubs-ppc.cc). |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 } | 252 } |
297 | 253 |
298 | 254 |
299 const bool LiveEdit::kFrameDropperSupported = true; | 255 const bool LiveEdit::kFrameDropperSupported = true; |
300 | 256 |
301 #undef __ | 257 #undef __ |
302 } // namespace internal | 258 } // namespace internal |
303 } // namespace v8 | 259 } // namespace v8 |
304 | 260 |
305 #endif // V8_TARGET_ARCH_PPC | 261 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |