| 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/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
| 9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
| 10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 static void LoadIC_PushArgs(MacroAssembler* masm) { | 296 static void LoadIC_PushArgs(MacroAssembler* masm) { |
| 297 Register receiver = LoadDescriptor::ReceiverRegister(); | 297 Register receiver = LoadDescriptor::ReceiverRegister(); |
| 298 Register name = LoadDescriptor::NameRegister(); | 298 Register name = LoadDescriptor::NameRegister(); |
| 299 Register slot = LoadDescriptor::SlotRegister(); | 299 Register slot = LoadDescriptor::SlotRegister(); |
| 300 Register vector = LoadWithVectorDescriptor::VectorRegister(); | 300 Register vector = LoadWithVectorDescriptor::VectorRegister(); |
| 301 | 301 |
| 302 __ Push(receiver, name, slot, vector); | 302 __ Push(receiver, name, slot, vector); |
| 303 } | 303 } |
| 304 | 304 |
| 305 | 305 |
| 306 void LoadIC::GenerateMiss(MacroAssembler* masm) { | 306 void LoadIC::GenerateMiss(MacroAssembler* masm, int stress) { |
| 307 // The return address is on the stack. | 307 // The return address is on the stack. |
| 308 Isolate* isolate = masm->isolate(); | 308 Isolate* isolate = masm->isolate(); |
| 309 | 309 |
| 310 DCHECK(!AreAliased(a4, a5, LoadWithVectorDescriptor::SlotRegister(), | 310 DCHECK(!AreAliased(a4, a5, LoadWithVectorDescriptor::SlotRegister(), |
| 311 LoadWithVectorDescriptor::VectorRegister())); | 311 LoadWithVectorDescriptor::VectorRegister())); |
| 312 __ IncrementCounter(isolate->counters()->load_miss(), 1, a4, a5); | 312 __ IncrementCounter(isolate->counters()->load_miss(), 1, a4, a5); |
| 313 | 313 |
| 314 LoadIC_PushArgs(masm); | 314 LoadIC_PushArgs(masm); |
| 315 | 315 |
| 316 // Perform tail call to the entry. | 316 // Perform tail call to the entry. |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 patcher.ChangeBranchCondition(ne); | 903 patcher.ChangeBranchCondition(ne); |
| 904 } else { | 904 } else { |
| 905 DCHECK(Assembler::IsBne(branch_instr)); | 905 DCHECK(Assembler::IsBne(branch_instr)); |
| 906 patcher.ChangeBranchCondition(eq); | 906 patcher.ChangeBranchCondition(eq); |
| 907 } | 907 } |
| 908 } | 908 } |
| 909 } // namespace internal | 909 } // namespace internal |
| 910 } // namespace v8 | 910 } // namespace v8 |
| 911 | 911 |
| 912 #endif // V8_TARGET_ARCH_MIPS64 | 912 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |