OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |