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

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

Issue 1413463009: Implemented the Word64Clz TurboFan operator for x64, arm64, and mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a typing problem, and added mips64. Created 5 years, 1 month 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/x64/assembler-x64.h ('k') | src/x64/macro-assembler-x64.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 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 #include "src/x64/assembler-x64.h" 5 #include "src/x64/assembler-x64.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 738
739 void Assembler::bsrl(Register dst, const Operand& src) { 739 void Assembler::bsrl(Register dst, const Operand& src) {
740 EnsureSpace ensure_space(this); 740 EnsureSpace ensure_space(this);
741 emit_optional_rex_32(dst, src); 741 emit_optional_rex_32(dst, src);
742 emit(0x0F); 742 emit(0x0F);
743 emit(0xBD); 743 emit(0xBD);
744 emit_operand(dst, src); 744 emit_operand(dst, src);
745 } 745 }
746 746
747 747
748 void Assembler::bsrq(Register dst, Register src) {
749 EnsureSpace ensure_space(this);
750 emit_rex_64(dst, src);
751 emit(0x0F);
752 emit(0xBD);
753 emit_modrm(dst, src);
754 }
755
756
757 void Assembler::bsrq(Register dst, const Operand& src) {
758 EnsureSpace ensure_space(this);
759 emit_rex_64(dst, src);
760 emit(0x0F);
761 emit(0xBD);
762 emit_operand(dst, src);
763 }
764
765
748 void Assembler::bsfl(Register dst, Register src) { 766 void Assembler::bsfl(Register dst, Register src) {
749 EnsureSpace ensure_space(this); 767 EnsureSpace ensure_space(this);
750 emit_optional_rex_32(dst, src); 768 emit_optional_rex_32(dst, src);
751 emit(0x0F); 769 emit(0x0F);
752 emit(0xBC); 770 emit(0xBC);
753 emit_modrm(dst, src); 771 emit_modrm(dst, src);
754 } 772 }
755 773
756 774
757 void Assembler::bsfl(Register dst, const Operand& src) { 775 void Assembler::bsfl(Register dst, const Operand& src) {
(...skipping 3283 matching lines...) Expand 10 before | Expand all | Expand 10 after
4041 4059
4042 bool RelocInfo::IsInConstantPool() { 4060 bool RelocInfo::IsInConstantPool() {
4043 return false; 4061 return false;
4044 } 4062 }
4045 4063
4046 4064
4047 } // namespace internal 4065 } // namespace internal
4048 } // namespace v8 4066 } // namespace v8
4049 4067
4050 #endif // V8_TARGET_ARCH_X64 4068 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698