| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 g.UseFixed(node->InputAt(1), edx), | 558 g.UseFixed(node->InputAt(1), edx), |
| 559 shift_operand}; | 559 shift_operand}; |
| 560 | 560 |
| 561 InstructionOperand outputs[] = { | 561 InstructionOperand outputs[] = { |
| 562 g.DefineAsFixed(node, eax), | 562 g.DefineAsFixed(node, eax), |
| 563 g.DefineAsFixed(NodeProperties::FindProjection(node, 1), edx)}; | 563 g.DefineAsFixed(NodeProperties::FindProjection(node, 1), edx)}; |
| 564 | 564 |
| 565 Emit(kX87PairShl, 2, outputs, 3, inputs); | 565 Emit(kX87PairShl, 2, outputs, 3, inputs); |
| 566 } | 566 } |
| 567 | 567 |
| 568 void InstructionSelector::VisitWord32PairShr(Node* node) { UNIMPLEMENTED(); } |
| 569 |
| 570 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); } |
| 571 |
| 568 void InstructionSelector::VisitWord32Ror(Node* node) { | 572 void InstructionSelector::VisitWord32Ror(Node* node) { |
| 569 VisitShift(this, node, kX87Ror); | 573 VisitShift(this, node, kX87Ror); |
| 570 } | 574 } |
| 571 | 575 |
| 572 | 576 |
| 573 void InstructionSelector::VisitWord32Clz(Node* node) { | 577 void InstructionSelector::VisitWord32Clz(Node* node) { |
| 574 X87OperandGenerator g(this); | 578 X87OperandGenerator g(this); |
| 575 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 579 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 576 } | 580 } |
| 577 | 581 |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 MachineOperatorBuilder::kFloat32RoundTruncate | | 1489 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1486 MachineOperatorBuilder::kFloat64RoundTruncate | | 1490 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1487 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1491 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1488 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1492 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1489 return flags; | 1493 return flags; |
| 1490 } | 1494 } |
| 1491 | 1495 |
| 1492 } // namespace compiler | 1496 } // namespace compiler |
| 1493 } // namespace internal | 1497 } // namespace internal |
| 1494 } // namespace v8 | 1498 } // namespace v8 |
| OLD | NEW |