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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 static void LoadIC_PushArgs(MacroAssembler* masm) { | 303 static void LoadIC_PushArgs(MacroAssembler* masm) { |
304 Register receiver = LoadDescriptor::ReceiverRegister(); | 304 Register receiver = LoadDescriptor::ReceiverRegister(); |
305 Register name = LoadDescriptor::NameRegister(); | 305 Register name = LoadDescriptor::NameRegister(); |
306 Register slot = LoadDescriptor::SlotRegister(); | 306 Register slot = LoadDescriptor::SlotRegister(); |
307 Register vector = LoadWithVectorDescriptor::VectorRegister(); | 307 Register vector = LoadWithVectorDescriptor::VectorRegister(); |
308 | 308 |
309 __ Push(receiver, name, slot, vector); | 309 __ Push(receiver, name, slot, vector); |
310 } | 310 } |
311 | 311 |
312 | 312 |
313 void LoadIC::GenerateMiss(MacroAssembler* masm, int stress) { | 313 void LoadIC::GenerateMiss(MacroAssembler* masm) { |
314 // The return address is in lr. | 314 // The return address is in lr. |
315 Isolate* isolate = masm->isolate(); | 315 Isolate* isolate = masm->isolate(); |
316 | 316 |
317 DCHECK(!AreAliased(r7, r8, LoadWithVectorDescriptor::SlotRegister(), | 317 DCHECK(!AreAliased(r7, r8, LoadWithVectorDescriptor::SlotRegister(), |
318 LoadWithVectorDescriptor::VectorRegister())); | 318 LoadWithVectorDescriptor::VectorRegister())); |
319 __ IncrementCounter(isolate->counters()->load_miss(), 1, r7, r8); | 319 __ IncrementCounter(isolate->counters()->load_miss(), 1, r7, r8); |
320 | 320 |
321 LoadIC_PushArgs(masm); | 321 LoadIC_PushArgs(masm); |
322 | 322 |
323 // Perform tail call to the entry. | 323 // Perform tail call to the entry. |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 patcher.EmitCondition(ne); | 921 patcher.EmitCondition(ne); |
922 } else { | 922 } else { |
923 DCHECK(Assembler::GetCondition(branch_instr) == ne); | 923 DCHECK(Assembler::GetCondition(branch_instr) == ne); |
924 patcher.EmitCondition(eq); | 924 patcher.EmitCondition(eq); |
925 } | 925 } |
926 } | 926 } |
927 } // namespace internal | 927 } // namespace internal |
928 } // namespace v8 | 928 } // namespace v8 |
929 | 929 |
930 #endif // V8_TARGET_ARCH_PPC | 930 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |