Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: src/arm64/macro-assembler-arm64.cc

Issue 1565193002: [arm64] Add assertions to Claim and Drop. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/macro-assembler-arm64.h ('k') | src/arm64/macro-assembler-arm64-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.h ('k') | src/arm64/macro-assembler-arm64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698