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

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

Issue 1778493004: [wasm] Int64Lowering of Int64Add on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed the use of the temp register on arm. Created 4 years, 9 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
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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); 884 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm);
885 } 885 }
886 886
887 887
888 #if V8_TARGET_ARCH_PPC64 888 #if V8_TARGET_ARCH_PPC64
889 void InstructionSelector::VisitInt64Add(Node* node) { 889 void InstructionSelector::VisitInt64Add(Node* node) {
890 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); 890 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm);
891 } 891 }
892 #endif 892 #endif
893 893
894 #if !V8_TARGET_ARCH_PPC64
895 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); }
896 #endif
894 897
895 void InstructionSelector::VisitInt32Sub(Node* node) { 898 void InstructionSelector::VisitInt32Sub(Node* node) {
896 PPCOperandGenerator g(this); 899 PPCOperandGenerator g(this);
897 Int32BinopMatcher m(node); 900 Int32BinopMatcher m(node);
898 if (m.left().Is(0)) { 901 if (m.left().Is(0)) {
899 Emit(kPPC_Neg, g.DefineAsRegister(node), g.UseRegister(m.right().node())); 902 Emit(kPPC_Neg, g.DefineAsRegister(node), g.UseRegister(m.right().node()));
900 } else { 903 } else {
901 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Sub, kInt16Imm_Negate); 904 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Sub, kInt16Imm_Negate);
902 } 905 }
903 } 906 }
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 MachineOperatorBuilder::kFloat64RoundTruncate | 1862 MachineOperatorBuilder::kFloat64RoundTruncate |
1860 MachineOperatorBuilder::kFloat64RoundTiesAway | 1863 MachineOperatorBuilder::kFloat64RoundTiesAway |
1861 MachineOperatorBuilder::kWord32Popcnt | 1864 MachineOperatorBuilder::kWord32Popcnt |
1862 MachineOperatorBuilder::kWord64Popcnt; 1865 MachineOperatorBuilder::kWord64Popcnt;
1863 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1866 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1864 } 1867 }
1865 1868
1866 } // namespace compiler 1869 } // namespace compiler
1867 } // namespace internal 1870 } // namespace internal
1868 } // namespace v8 1871 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698