OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3769 Str(fpscratch1, | 3769 Str(fpscratch1, |
3770 FieldMemOperand(scratch1, | 3770 FieldMemOperand(scratch1, |
3771 FixedDoubleArray::kHeaderSize - elements_offset)); | 3771 FixedDoubleArray::kHeaderSize - elements_offset)); |
3772 } | 3772 } |
3773 | 3773 |
3774 | 3774 |
3775 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { | 3775 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { |
3776 return has_frame_ || !stub->SometimesSetsUpAFrame(); | 3776 return has_frame_ || !stub->SometimesSetsUpAFrame(); |
3777 } | 3777 } |
3778 | 3778 |
3779 | |
3780 void MacroAssembler::IndexFromHash(Register hash, Register index) { | |
3781 // If the hash field contains an array index pick it out. The assert checks | |
3782 // that the constants for the maximum number of digits for an array index | |
3783 // cached in the hash field and the number of bits reserved for it does not | |
3784 // conflict. | |
3785 DCHECK(TenToThe(String::kMaxCachedArrayIndexLength) < | |
3786 (1 << String::kArrayIndexValueBits)); | |
3787 DecodeField<String::ArrayIndexValueBits>(index, hash); | |
3788 SmiTag(index, index); | |
3789 } | |
3790 | |
3791 | |
3792 void MacroAssembler::EmitSeqStringSetCharCheck( | 3779 void MacroAssembler::EmitSeqStringSetCharCheck( |
3793 Register string, | 3780 Register string, |
3794 Register index, | 3781 Register index, |
3795 SeqStringSetCharCheckIndexType index_type, | 3782 SeqStringSetCharCheckIndexType index_type, |
3796 Register scratch, | 3783 Register scratch, |
3797 uint32_t encoding_mask) { | 3784 uint32_t encoding_mask) { |
3798 DCHECK(!AreAliased(string, index, scratch)); | 3785 DCHECK(!AreAliased(string, index, scratch)); |
3799 | 3786 |
3800 if (index_type == kIndexIsSmi) { | 3787 if (index_type == kIndexIsSmi) { |
3801 AssertSmi(index); | 3788 AssertSmi(index); |
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5075 } | 5062 } |
5076 | 5063 |
5077 | 5064 |
5078 #undef __ | 5065 #undef __ |
5079 | 5066 |
5080 | 5067 |
5081 } // namespace internal | 5068 } // namespace internal |
5082 } // namespace v8 | 5069 } // namespace v8 |
5083 | 5070 |
5084 #endif // V8_TARGET_ARCH_ARM64 | 5071 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |