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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.cc

Issue 1698483002: [arm][arm64] Improve CountTrailingZero implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments addressed Created 4 years, 10 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/compiler/wasm-compiler.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 Emit(kX64Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 615 Emit(kX64Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
616 } 616 }
617 617
618 618
619 void InstructionSelector::VisitWord32Ctz(Node* node) { 619 void InstructionSelector::VisitWord32Ctz(Node* node) {
620 X64OperandGenerator g(this); 620 X64OperandGenerator g(this);
621 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 621 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
622 } 622 }
623 623
624 624
625 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
626
627
628 void InstructionSelector::VisitWord64ReverseBits(Node* node) { UNREACHABLE(); }
629
630
625 void InstructionSelector::VisitWord32Popcnt(Node* node) { 631 void InstructionSelector::VisitWord32Popcnt(Node* node) {
626 X64OperandGenerator g(this); 632 X64OperandGenerator g(this);
627 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 633 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
628 } 634 }
629 635
630 636
631 void InstructionSelector::VisitWord64Popcnt(Node* node) { 637 void InstructionSelector::VisitWord64Popcnt(Node* node) {
632 X64OperandGenerator g(this); 638 X64OperandGenerator g(this);
633 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 639 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
634 } 640 }
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 MachineOperatorBuilder::kFloat64RoundTruncate | 1832 MachineOperatorBuilder::kFloat64RoundTruncate |
1827 MachineOperatorBuilder::kFloat32RoundTiesEven | 1833 MachineOperatorBuilder::kFloat32RoundTiesEven |
1828 MachineOperatorBuilder::kFloat64RoundTiesEven; 1834 MachineOperatorBuilder::kFloat64RoundTiesEven;
1829 } 1835 }
1830 return flags; 1836 return flags;
1831 } 1837 }
1832 1838
1833 } // namespace compiler 1839 } // namespace compiler
1834 } // namespace internal 1840 } // namespace internal
1835 } // namespace v8 1841 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698