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

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

Issue 1778893005: [wasm] Int64Lowering of Int64Sub on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-add
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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 g.UseRegister(node->InputAt(0)), g.UseUniqueRegister(node->InputAt(1)), 794 g.UseRegister(node->InputAt(0)), g.UseUniqueRegister(node->InputAt(1)),
795 g.UseRegister(node->InputAt(2)), g.UseUniqueRegister(node->InputAt(3))}; 795 g.UseRegister(node->InputAt(2)), g.UseUniqueRegister(node->InputAt(3))};
796 796
797 InstructionOperand outputs[] = { 797 InstructionOperand outputs[] = {
798 g.DefineAsRegister(node), 798 g.DefineAsRegister(node),
799 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; 799 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))};
800 800
801 Emit(kPPC_AddPair, 2, outputs, 4, inputs); 801 Emit(kPPC_AddPair, 2, outputs, 4, inputs);
802 } 802 }
803 803
804 void InstructionSelector::VisitInt32PairSub(Node* node) { UNIMPLEMENTED(); }
805
804 void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode, 806 void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode,
805 Node* node) { 807 Node* node) {
806 PPCOperandGenerator g(selector); 808 PPCOperandGenerator g(selector);
807 Int32Matcher m(node->InputAt(2)); 809 Int32Matcher m(node->InputAt(2));
808 InstructionOperand shift_operand; 810 InstructionOperand shift_operand;
809 if (m.HasValue()) { 811 if (m.HasValue()) {
810 shift_operand = g.UseImmediate(m.node()); 812 shift_operand = g.UseImmediate(m.node());
811 } else { 813 } else {
812 shift_operand = g.UseUniqueRegister(m.node()); 814 shift_operand = g.UseUniqueRegister(m.node());
813 } 815 }
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 MachineOperatorBuilder::kFloat64RoundTruncate | 1883 MachineOperatorBuilder::kFloat64RoundTruncate |
1882 MachineOperatorBuilder::kFloat64RoundTiesAway | 1884 MachineOperatorBuilder::kFloat64RoundTiesAway |
1883 MachineOperatorBuilder::kWord32Popcnt | 1885 MachineOperatorBuilder::kWord32Popcnt |
1884 MachineOperatorBuilder::kWord64Popcnt; 1886 MachineOperatorBuilder::kWord64Popcnt;
1885 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1887 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1886 } 1888 }
1887 1889
1888 } // namespace compiler 1890 } // namespace compiler
1889 } // namespace internal 1891 } // namespace internal
1890 } // namespace v8 1892 } // 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