| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
| (...skipping 3787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3798 JumpIfSmi(obj, &fail); | 3798 JumpIfSmi(obj, &fail); |
| 3799 } | 3799 } |
| 3800 Ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); | 3800 Ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); |
| 3801 Cmp(scratch, Operand(map)); | 3801 Cmp(scratch, Operand(map)); |
| 3802 B(ne, &fail); | 3802 B(ne, &fail); |
| 3803 Jump(success, RelocInfo::CODE_TARGET); | 3803 Jump(success, RelocInfo::CODE_TARGET); |
| 3804 Bind(&fail); | 3804 Bind(&fail); |
| 3805 } | 3805 } |
| 3806 | 3806 |
| 3807 | 3807 |
| 3808 void MacroAssembler::CmpWeakValue(Register value, Handle<WeakCell> cell, | |
| 3809 Register scratch) { | |
| 3810 Mov(scratch, Operand(cell)); | |
| 3811 Ldr(scratch, FieldMemOperand(scratch, WeakCell::kValueOffset)); | |
| 3812 Cmp(value, scratch); | |
| 3813 } | |
| 3814 | |
| 3815 | |
| 3816 void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, | |
| 3817 Label* miss) { | |
| 3818 Mov(value, Operand(cell)); | |
| 3819 Ldr(value, FieldMemOperand(value, WeakCell::kValueOffset)); | |
| 3820 JumpIfSmi(value, miss); | |
| 3821 } | |
| 3822 | |
| 3823 | |
| 3824 void MacroAssembler::TestMapBitfield(Register object, uint64_t mask) { | 3808 void MacroAssembler::TestMapBitfield(Register object, uint64_t mask) { |
| 3825 UseScratchRegisterScope temps(this); | 3809 UseScratchRegisterScope temps(this); |
| 3826 Register temp = temps.AcquireX(); | 3810 Register temp = temps.AcquireX(); |
| 3827 Ldr(temp, FieldMemOperand(object, HeapObject::kMapOffset)); | 3811 Ldr(temp, FieldMemOperand(object, HeapObject::kMapOffset)); |
| 3828 Ldrb(temp, FieldMemOperand(temp, Map::kBitFieldOffset)); | 3812 Ldrb(temp, FieldMemOperand(temp, Map::kBitFieldOffset)); |
| 3829 Tst(temp, mask); | 3813 Tst(temp, mask); |
| 3830 } | 3814 } |
| 3831 | 3815 |
| 3832 | 3816 |
| 3833 void MacroAssembler::LoadElementsKindFromMap(Register result, Register map) { | 3817 void MacroAssembler::LoadElementsKindFromMap(Register result, Register map) { |
| (...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5405 } | 5389 } |
| 5406 } | 5390 } |
| 5407 | 5391 |
| 5408 | 5392 |
| 5409 #undef __ | 5393 #undef __ |
| 5410 | 5394 |
| 5411 | 5395 |
| 5412 } } // namespace v8::internal | 5396 } } // namespace v8::internal |
| 5413 | 5397 |
| 5414 #endif // V8_TARGET_ARCH_ARM64 | 5398 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |