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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 static void LoadIC_PushArgs(MacroAssembler* masm) { | 293 static void LoadIC_PushArgs(MacroAssembler* masm) { |
294 Register receiver = LoadDescriptor::ReceiverRegister(); | 294 Register receiver = LoadDescriptor::ReceiverRegister(); |
295 Register name = LoadDescriptor::NameRegister(); | 295 Register name = LoadDescriptor::NameRegister(); |
296 Register slot = LoadDescriptor::SlotRegister(); | 296 Register slot = LoadDescriptor::SlotRegister(); |
297 Register vector = LoadWithVectorDescriptor::VectorRegister(); | 297 Register vector = LoadWithVectorDescriptor::VectorRegister(); |
298 | 298 |
299 __ Push(receiver, name, slot, vector); | 299 __ Push(receiver, name, slot, vector); |
300 } | 300 } |
301 | 301 |
302 | 302 |
303 void LoadIC::GenerateMiss(MacroAssembler* masm) { | 303 void LoadIC::GenerateMiss(MacroAssembler* masm, int stress) { |
304 // The return address is in lr. | 304 // The return address is in lr. |
305 Isolate* isolate = masm->isolate(); | 305 Isolate* isolate = masm->isolate(); |
306 | 306 |
307 DCHECK(!AreAliased(r4, r5, LoadWithVectorDescriptor::SlotRegister(), | 307 DCHECK(!AreAliased(r4, r5, LoadWithVectorDescriptor::SlotRegister(), |
308 LoadWithVectorDescriptor::VectorRegister())); | 308 LoadWithVectorDescriptor::VectorRegister())); |
309 __ IncrementCounter(isolate->counters()->load_miss(), 1, r4, r5); | 309 __ IncrementCounter(isolate->counters()->load_miss(), 1, r4, r5); |
310 | 310 |
311 LoadIC_PushArgs(masm); | 311 LoadIC_PushArgs(masm); |
312 | 312 |
313 // Perform tail call to the entry. | 313 // Perform tail call to the entry. |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 patcher.EmitCondition(ne); | 911 patcher.EmitCondition(ne); |
912 } else { | 912 } else { |
913 DCHECK(Assembler::GetCondition(branch_instr) == ne); | 913 DCHECK(Assembler::GetCondition(branch_instr) == ne); |
914 patcher.EmitCondition(eq); | 914 patcher.EmitCondition(eq); |
915 } | 915 } |
916 } | 916 } |
917 } // namespace internal | 917 } // namespace internal |
918 } // namespace v8 | 918 } // namespace v8 |
919 | 919 |
920 #endif // V8_TARGET_ARCH_ARM | 920 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |