| OLD | NEW |
| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 | 574 |
| 575 InstructionOperand outputs[] = { | 575 InstructionOperand outputs[] = { |
| 576 g.DefineSameAsFirst(node), | 576 g.DefineSameAsFirst(node), |
| 577 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; | 577 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; |
| 578 | 578 |
| 579 InstructionOperand temps[] = {g.TempRegister()}; | 579 InstructionOperand temps[] = {g.TempRegister()}; |
| 580 | 580 |
| 581 Emit(kX87SubPair, 2, outputs, 4, inputs, 1, temps); | 581 Emit(kX87SubPair, 2, outputs, 4, inputs, 1, temps); |
| 582 } | 582 } |
| 583 | 583 |
| 584 void InstructionSelector::VisitInt32PairMul(Node* node) { UNIMPLEMENTED(); } |
| 585 |
| 584 void InstructionSelector::VisitWord32PairShl(Node* node) { | 586 void InstructionSelector::VisitWord32PairShl(Node* node) { |
| 585 X87OperandGenerator g(this); | 587 X87OperandGenerator g(this); |
| 586 | 588 |
| 587 Node* shift = node->InputAt(2); | 589 Node* shift = node->InputAt(2); |
| 588 InstructionOperand shift_operand; | 590 InstructionOperand shift_operand; |
| 589 if (g.CanBeImmediate(shift)) { | 591 if (g.CanBeImmediate(shift)) { |
| 590 shift_operand = g.UseImmediate(shift); | 592 shift_operand = g.UseImmediate(shift); |
| 591 } else { | 593 } else { |
| 592 shift_operand = g.UseFixed(shift, ecx); | 594 shift_operand = g.UseFixed(shift, ecx); |
| 593 } | 595 } |
| (...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 MachineOperatorBuilder::kFloat32RoundTruncate | | 1566 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1565 MachineOperatorBuilder::kFloat64RoundTruncate | | 1567 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1566 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1568 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1567 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1569 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1568 return flags; | 1570 return flags; |
| 1569 } | 1571 } |
| 1570 | 1572 |
| 1571 } // namespace compiler | 1573 } // namespace compiler |
| 1572 } // namespace internal | 1574 } // namespace internal |
| 1573 } // namespace v8 | 1575 } // namespace v8 |
| OLD | NEW |