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

Side by Side Diff: src/compiler/x64/code-generator-x64.cc

Issue 1424173006: Implemented the Word64Popcnt TurboFan operator for x64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/compiler/verifier.cc ('k') | src/compiler/x64/instruction-codes-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 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 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 __ Tzcntq(i.OutputRegister(), i.InputOperand(0)); 789 __ Tzcntq(i.OutputRegister(), i.InputOperand(0));
790 } 790 }
791 break; 791 break;
792 case kX64Tzcnt32: 792 case kX64Tzcnt32:
793 if (instr->InputAt(0)->IsRegister()) { 793 if (instr->InputAt(0)->IsRegister()) {
794 __ Tzcntl(i.OutputRegister(), i.InputRegister(0)); 794 __ Tzcntl(i.OutputRegister(), i.InputRegister(0));
795 } else { 795 } else {
796 __ Tzcntl(i.OutputRegister(), i.InputOperand(0)); 796 __ Tzcntl(i.OutputRegister(), i.InputOperand(0));
797 } 797 }
798 break; 798 break;
799 case kX64Popcnt:
800 if (instr->InputAt(0)->IsRegister()) {
801 __ Popcntq(i.OutputRegister(), i.InputRegister(0));
802 } else {
803 __ Popcntq(i.OutputRegister(), i.InputOperand(0));
804 }
805 break;
799 case kX64Popcnt32: 806 case kX64Popcnt32:
800 if (instr->InputAt(0)->IsRegister()) { 807 if (instr->InputAt(0)->IsRegister()) {
801 __ Popcntl(i.OutputRegister(), i.InputRegister(0)); 808 __ Popcntl(i.OutputRegister(), i.InputRegister(0));
802 } else { 809 } else {
803 __ Popcntl(i.OutputRegister(), i.InputOperand(0)); 810 __ Popcntl(i.OutputRegister(), i.InputOperand(0));
804 } 811 }
805 break; 812 break;
806 case kSSEFloat32Cmp: 813 case kSSEFloat32Cmp:
807 ASSEMBLE_SSE_BINOP(Ucomiss); 814 ASSEMBLE_SSE_BINOP(Ucomiss);
808 break; 815 break;
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1859 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1853 __ Nop(padding_size); 1860 __ Nop(padding_size);
1854 } 1861 }
1855 } 1862 }
1856 1863
1857 #undef __ 1864 #undef __
1858 1865
1859 } // namespace compiler 1866 } // namespace compiler
1860 } // namespace internal 1867 } // namespace internal
1861 } // namespace v8 1868 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698