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

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

Issue 1807273002: [wasm] Int64Lowering of Int64Mul on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-phi
Patch Set: Forgot to add the visit functions on mips, ppc, and x87. 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 9
10 namespace v8 { 10 namespace v8 {
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 573
574 InstructionOperand outputs[] = { 574 InstructionOperand outputs[] = {
575 g.DefineSameAsFirst(node), 575 g.DefineSameAsFirst(node),
576 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; 576 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))};
577 577
578 InstructionOperand temps[] = {g.TempRegister()}; 578 InstructionOperand temps[] = {g.TempRegister()};
579 579
580 Emit(kX87SubPair, 2, outputs, 4, inputs, 1, temps); 580 Emit(kX87SubPair, 2, outputs, 4, inputs, 1, temps);
581 } 581 }
582 582
583 void InstructionSelector::VisitInt32PairMul(Node* node) { UNIMPLEMENTED(); }
584
583 void InstructionSelector::VisitWord32PairShl(Node* node) { 585 void InstructionSelector::VisitWord32PairShl(Node* node) {
584 X87OperandGenerator g(this); 586 X87OperandGenerator g(this);
585 587
586 Node* shift = node->InputAt(2); 588 Node* shift = node->InputAt(2);
587 InstructionOperand shift_operand; 589 InstructionOperand shift_operand;
588 if (g.CanBeImmediate(shift)) { 590 if (g.CanBeImmediate(shift)) {
589 shift_operand = g.UseImmediate(shift); 591 shift_operand = g.UseImmediate(shift);
590 } else { 592 } else {
591 shift_operand = g.UseFixed(shift, ecx); 593 shift_operand = g.UseFixed(shift, ecx);
592 } 594 }
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 MachineOperatorBuilder::kFloat32RoundTruncate | 1565 MachineOperatorBuilder::kFloat32RoundTruncate |
1564 MachineOperatorBuilder::kFloat64RoundTruncate | 1566 MachineOperatorBuilder::kFloat64RoundTruncate |
1565 MachineOperatorBuilder::kFloat32RoundTiesEven | 1567 MachineOperatorBuilder::kFloat32RoundTiesEven |
1566 MachineOperatorBuilder::kFloat64RoundTiesEven; 1568 MachineOperatorBuilder::kFloat64RoundTiesEven;
1567 return flags; 1569 return flags;
1568 } 1570 }
1569 1571
1570 } // namespace compiler 1572 } // namespace compiler
1571 } // namespace internal 1573 } // namespace internal
1572 } // namespace v8 1574 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698