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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 | 189 |
190 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) { | 190 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) { |
191 Register receiver = LoadIC::ReceiverRegister(); | 191 Register receiver = LoadIC::ReceiverRegister(); |
192 Register name = LoadIC::NameRegister(); | 192 Register name = LoadIC::NameRegister(); |
193 Generate_DebugBreakCallHelper(masm, receiver.bit() | name.bit(), 0); | 193 Generate_DebugBreakCallHelper(masm, receiver.bit() | name.bit(), 0); |
194 } | 194 } |
195 | 195 |
196 | 196 |
197 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { | 197 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { |
198 // Calling convention for IC store (from ic-mips.cc). | 198 Register receiver = StoreIC::ReceiverRegister(); |
199 // ----------- S t a t e ------------- | 199 Register name = StoreIC::NameRegister(); |
200 // -- a0 : value | 200 Register value = StoreIC::ValueRegister(); |
201 // -- a1 : receiver | 201 Generate_DebugBreakCallHelper( |
202 // -- a2 : name | 202 masm, receiver.bit() | name.bit() | value.bit(), 0); |
203 // -- ra : return address | |
204 // ----------------------------------- | |
205 // Registers a0, a1, and a2 contain objects that need to be pushed on the | |
206 // expression stack of the fake JS frame. | |
207 Generate_DebugBreakCallHelper(masm, a0.bit() | a1.bit() | a2.bit(), 0); | |
208 } | 203 } |
209 | 204 |
210 | 205 |
211 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { | 206 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { |
212 // Calling convention for keyed IC load (from ic-arm.cc). | 207 // Calling convention for keyed IC load (from ic-mips64.cc). |
213 GenerateLoadICDebugBreak(masm); | 208 GenerateLoadICDebugBreak(masm); |
214 } | 209 } |
215 | 210 |
216 | 211 |
217 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { | 212 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { |
218 // ---------- S t a t e -------------- | 213 // Calling convention for IC keyed store call (from ic-mips64.cc). |
219 // -- a0 : value | 214 Register receiver = KeyedStoreIC::ReceiverRegister(); |
220 // -- a1 : key | 215 Register name = KeyedStoreIC::NameRegister(); |
221 // -- a2 : receiver | 216 Register value = KeyedStoreIC::ValueRegister(); |
222 // -- ra : return address | 217 Generate_DebugBreakCallHelper( |
223 Generate_DebugBreakCallHelper(masm, a0.bit() | a1.bit() | a2.bit(), 0); | 218 masm, receiver.bit() | name.bit() | value.bit(), 0); |
224 } | 219 } |
225 | 220 |
226 | 221 |
227 void DebugCodegen::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { | 222 void DebugCodegen::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { |
228 // Register state for CompareNil IC | 223 // Register state for CompareNil IC |
229 // ----------- S t a t e ------------- | 224 // ----------- S t a t e ------------- |
230 // -- a0 : value | 225 // -- a0 : value |
231 // ----------------------------------- | 226 // ----------------------------------- |
232 Generate_DebugBreakCallHelper(masm, a0.bit(), 0); | 227 Generate_DebugBreakCallHelper(masm, a0.bit(), 0); |
233 } | 228 } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 } | 321 } |
327 | 322 |
328 | 323 |
329 const bool LiveEdit::kFrameDropperSupported = true; | 324 const bool LiveEdit::kFrameDropperSupported = true; |
330 | 325 |
331 #undef __ | 326 #undef __ |
332 | 327 |
333 } } // namespace v8::internal | 328 } } // namespace v8::internal |
334 | 329 |
335 #endif // V8_TARGET_ARCH_MIPS64 | 330 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |