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

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: rebase 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
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/raw-machine-assembler.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 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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); 891 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm);
892 } 892 }
893 893
894 894
895 #if V8_TARGET_ARCH_PPC64 895 #if V8_TARGET_ARCH_PPC64
896 void InstructionSelector::VisitInt64Add(Node* node) { 896 void InstructionSelector::VisitInt64Add(Node* node) {
897 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); 897 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm);
898 } 898 }
899 #endif 899 #endif
900 900
901 #if !V8_TARGET_ARCH_PPC64
902 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); }
903 #endif
901 904
902 void InstructionSelector::VisitInt32Sub(Node* node) { 905 void InstructionSelector::VisitInt32Sub(Node* node) {
903 PPCOperandGenerator g(this); 906 PPCOperandGenerator g(this);
904 Int32BinopMatcher m(node); 907 Int32BinopMatcher m(node);
905 if (m.left().Is(0)) { 908 if (m.left().Is(0)) {
906 Emit(kPPC_Neg, g.DefineAsRegister(node), g.UseRegister(m.right().node())); 909 Emit(kPPC_Neg, g.DefineAsRegister(node), g.UseRegister(m.right().node()));
907 } else { 910 } else {
908 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Sub, kInt16Imm_Negate); 911 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Sub, kInt16Imm_Negate);
909 } 912 }
910 } 913 }
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 MachineOperatorBuilder::kFloat64RoundTruncate | 1869 MachineOperatorBuilder::kFloat64RoundTruncate |
1867 MachineOperatorBuilder::kFloat64RoundTiesAway | 1870 MachineOperatorBuilder::kFloat64RoundTiesAway |
1868 MachineOperatorBuilder::kWord32Popcnt | 1871 MachineOperatorBuilder::kWord32Popcnt |
1869 MachineOperatorBuilder::kWord64Popcnt; 1872 MachineOperatorBuilder::kWord64Popcnt;
1870 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1873 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1871 } 1874 }
1872 1875
1873 } // namespace compiler 1876 } // namespace compiler
1874 } // namespace internal 1877 } // namespace internal
1875 } // namespace v8 1878 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698