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

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

Issue 1819823002: [x64] Fix typo in MacroAssembler::AssertNotNumber. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X64 5 #if V8_TARGET_ARCH_X64
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 3863 matching lines...) Expand 10 before | Expand all | Expand 10 after
3874 bind(&ok); 3874 bind(&ok);
3875 } 3875 }
3876 } 3876 }
3877 3877
3878 void MacroAssembler::AssertNotNumber(Register object) { 3878 void MacroAssembler::AssertNotNumber(Register object) {
3879 if (emit_debug_code()) { 3879 if (emit_debug_code()) {
3880 Condition is_smi = CheckSmi(object); 3880 Condition is_smi = CheckSmi(object);
3881 Check(NegateCondition(is_smi), kOperandIsANumber); 3881 Check(NegateCondition(is_smi), kOperandIsANumber);
3882 Cmp(FieldOperand(object, HeapObject::kMapOffset), 3882 Cmp(FieldOperand(object, HeapObject::kMapOffset),
3883 isolate()->factory()->heap_number_map()); 3883 isolate()->factory()->heap_number_map());
3884 Check(equal, kOperandIsANumber); 3884 Check(not_equal, kOperandIsANumber);
3885 } 3885 }
3886 } 3886 }
3887 3887
3888 void MacroAssembler::AssertNotSmi(Register object) { 3888 void MacroAssembler::AssertNotSmi(Register object) {
3889 if (emit_debug_code()) { 3889 if (emit_debug_code()) {
3890 Condition is_smi = CheckSmi(object); 3890 Condition is_smi = CheckSmi(object);
3891 Check(NegateCondition(is_smi), kOperandIsASmi); 3891 Check(NegateCondition(is_smi), kOperandIsASmi);
3892 } 3892 }
3893 } 3893 }
3894 3894
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
5681 movl(rax, dividend); 5681 movl(rax, dividend);
5682 shrl(rax, Immediate(31)); 5682 shrl(rax, Immediate(31));
5683 addl(rdx, rax); 5683 addl(rdx, rax);
5684 } 5684 }
5685 5685
5686 5686
5687 } // namespace internal 5687 } // namespace internal
5688 } // namespace v8 5688 } // namespace v8
5689 5689
5690 #endif // V8_TARGET_ARCH_X64 5690 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698