| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 6 | 6 |
| 7 #include "src/ic/ic.h" | 7 #include "src/ic/ic.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 Register name = StoreDescriptor::NameRegister(); | 725 Register name = StoreDescriptor::NameRegister(); |
| 726 DCHECK(receiver.is(r3)); | 726 DCHECK(receiver.is(r3)); |
| 727 DCHECK(name.is(r4)); | 727 DCHECK(name.is(r4)); |
| 728 DCHECK(StoreDescriptor::ValueRegister().is(r2)); | 728 DCHECK(StoreDescriptor::ValueRegister().is(r2)); |
| 729 | 729 |
| 730 // Get the receiver from the stack and probe the stub cache. | 730 // Get the receiver from the stack and probe the stub cache. |
| 731 Code::Flags flags = | 731 Code::Flags flags = |
| 732 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 732 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
| 733 | 733 |
| 734 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, | 734 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, |
| 735 receiver, name, r5, r6, r7, r8); | 735 receiver, name, r7, r8, r9, ip); |
| 736 | 736 |
| 737 // Cache miss: Jump to runtime. | 737 // Cache miss: Jump to runtime. |
| 738 GenerateMiss(masm); | 738 GenerateMiss(masm); |
| 739 } | 739 } |
| 740 | 740 |
| 741 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 741 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
| 742 StoreIC_PushArgs(masm); | 742 StoreIC_PushArgs(masm); |
| 743 | 743 |
| 744 // Perform tail call to the entry. | 744 // Perform tail call to the entry. |
| 745 __ TailCallRuntime(Runtime::kStoreIC_Miss); | 745 __ TailCallRuntime(Runtime::kStoreIC_Miss); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1)); | 888 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1)); |
| 889 } else { | 889 } else { |
| 890 DCHECK(false); | 890 DCHECK(false); |
| 891 } | 891 } |
| 892 } | 892 } |
| 893 | 893 |
| 894 } // namespace internal | 894 } // namespace internal |
| 895 } // namespace v8 | 895 } // namespace v8 |
| 896 | 896 |
| 897 #endif // V8_TARGET_ARCH_S390 | 897 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |