| 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 DCHECK(!AreAliased(vector, slot, r7, r8, r9, ip)); | 666 DCHECK(!AreAliased(vector, slot, r7, r8, r9, ip)); |
| 667 Handle<TypeFeedbackVector> dummy_vector = | 667 Handle<TypeFeedbackVector> dummy_vector = |
| 668 TypeFeedbackVector::DummyVector(masm->isolate()); | 668 TypeFeedbackVector::DummyVector(masm->isolate()); |
| 669 int slot_index = dummy_vector->GetIndex( | 669 int slot_index = dummy_vector->GetIndex( |
| 670 FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); | 670 FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); |
| 671 __ LoadRoot(vector, Heap::kDummyVectorRootIndex); | 671 __ LoadRoot(vector, Heap::kDummyVectorRootIndex); |
| 672 __ LoadSmiLiteral(slot, Smi::FromInt(slot_index)); | 672 __ LoadSmiLiteral(slot, Smi::FromInt(slot_index)); |
| 673 | 673 |
| 674 Code::Flags flags = | 674 Code::Flags flags = |
| 675 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 675 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
| 676 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, | 676 masm->isolate()->stub_cache()->GenerateProbe( |
| 677 receiver, key, r7, r8, r9, ip); | 677 masm, Code::KEYED_STORE_IC, flags, receiver, key, r7, r8, r9, ip); |
| 678 // Cache miss. | 678 // Cache miss. |
| 679 __ b(&miss); | 679 __ b(&miss); |
| 680 | 680 |
| 681 // Extra capacity case: Check if there is extra capacity to | 681 // Extra capacity case: Check if there is extra capacity to |
| 682 // perform the store and update the length. Used for adding one | 682 // perform the store and update the length. Used for adding one |
| 683 // element to the array by writing to array[array.length]. | 683 // element to the array by writing to array[array.length]. |
| 684 __ bind(&extra); | 684 __ bind(&extra); |
| 685 // Condition code from comparing key and array length is still available. | 685 // Condition code from comparing key and array length is still available. |
| 686 __ bne(&slow); // Only support writing to writing to array[array.length]. | 686 __ bne(&slow); // Only support writing to writing to array[array.length]. |
| 687 // Check for room in the elements backing store. | 687 // Check for room in the elements backing store. |
| (...skipping 200 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 |