| 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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 STATIC_ASSERT(kSmiTag == 0); | 1662 STATIC_ASSERT(kSmiTag == 0); |
| 1663 Tst(object, kSmiTagMask); | 1663 Tst(object, kSmiTagMask); |
| 1664 Check(ne, kOperandIsASmiAndNotAString); | 1664 Check(ne, kOperandIsASmiAndNotAString); |
| 1665 Ldr(temp, FieldMemOperand(object, HeapObject::kMapOffset)); | 1665 Ldr(temp, FieldMemOperand(object, HeapObject::kMapOffset)); |
| 1666 CompareInstanceType(temp, temp, FIRST_NONSTRING_TYPE); | 1666 CompareInstanceType(temp, temp, FIRST_NONSTRING_TYPE); |
| 1667 Check(lo, kOperandIsNotAString); | 1667 Check(lo, kOperandIsNotAString); |
| 1668 } | 1668 } |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 | 1671 |
| 1672 void MacroAssembler::AssertPositiveOrZero(Register value) { |
| 1673 if (emit_debug_code()) { |
| 1674 Label done; |
| 1675 int sign_bit = value.Is64Bits() ? kXSignBit : kWSignBit; |
| 1676 Tbz(value, sign_bit, &done); |
| 1677 Abort(kUnexpectedNegativeValue); |
| 1678 Bind(&done); |
| 1679 } |
| 1680 } |
| 1681 |
| 1682 |
| 1672 void MacroAssembler::CallStub(CodeStub* stub, TypeFeedbackId ast_id) { | 1683 void MacroAssembler::CallStub(CodeStub* stub, TypeFeedbackId ast_id) { |
| 1673 DCHECK(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs. | 1684 DCHECK(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs. |
| 1674 Call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id); | 1685 Call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id); |
| 1675 } | 1686 } |
| 1676 | 1687 |
| 1677 | 1688 |
| 1678 void MacroAssembler::TailCallStub(CodeStub* stub) { | 1689 void MacroAssembler::TailCallStub(CodeStub* stub) { |
| 1679 Jump(stub->GetCode(), RelocInfo::CODE_TARGET); | 1690 Jump(stub->GetCode(), RelocInfo::CODE_TARGET); |
| 1680 } | 1691 } |
| 1681 | 1692 |
| (...skipping 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4867 } | 4878 } |
| 4868 | 4879 |
| 4869 | 4880 |
| 4870 #undef __ | 4881 #undef __ |
| 4871 | 4882 |
| 4872 | 4883 |
| 4873 } // namespace internal | 4884 } // namespace internal |
| 4874 } // namespace v8 | 4885 } // namespace v8 |
| 4875 | 4886 |
| 4876 #endif // V8_TARGET_ARCH_ARM64 | 4887 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |