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

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

Issue 1438583002: PPC64: Define the optional ctz Turbo Fan operator. (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 | « 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 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 "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/ppc/frames-ppc.h" 9 #include "src/ppc/frames-ppc.h"
10 10
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 void InstructionSelector::VisitWord32Popcnt(Node* node) { 748 void InstructionSelector::VisitWord32Popcnt(Node* node) {
749 PPCOperandGenerator g(this); 749 PPCOperandGenerator g(this);
750 Emit(kPPC_Popcnt32, g.DefineAsRegister(node), 750 Emit(kPPC_Popcnt32, g.DefineAsRegister(node),
751 g.UseRegister(node->InputAt(0))); 751 g.UseRegister(node->InputAt(0)));
752 } 752 }
753 753
754 754
755 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } 755 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); }
756 756
757 757
758 #if V8_TARGET_ARCH_PPC64
759 void InstructionSelector::VisitWord64Ctz(Node* node) { UNREACHABLE(); }
760 #endif
761
762
758 void InstructionSelector::VisitInt32Add(Node* node) { 763 void InstructionSelector::VisitInt32Add(Node* node) {
759 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); 764 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm);
760 } 765 }
761 766
762 767
763 #if V8_TARGET_ARCH_PPC64 768 #if V8_TARGET_ARCH_PPC64
764 void InstructionSelector::VisitInt64Add(Node* node) { 769 void InstructionSelector::VisitInt64Add(Node* node) {
765 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); 770 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm);
766 } 771 }
767 #endif 772 #endif
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 return MachineOperatorBuilder::kFloat64RoundDown | 1594 return MachineOperatorBuilder::kFloat64RoundDown |
1590 MachineOperatorBuilder::kFloat64RoundTruncate | 1595 MachineOperatorBuilder::kFloat64RoundTruncate |
1591 MachineOperatorBuilder::kFloat64RoundTiesAway | 1596 MachineOperatorBuilder::kFloat64RoundTiesAway |
1592 MachineOperatorBuilder::kWord32Popcnt; 1597 MachineOperatorBuilder::kWord32Popcnt;
1593 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1598 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1594 } 1599 }
1595 1600
1596 } // namespace compiler 1601 } // namespace compiler
1597 } // namespace internal 1602 } // namespace internal
1598 } // namespace v8 1603 } // namespace v8
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