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/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 namespace compiler { | 10 namespace compiler { |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 479 |
480 | 480 |
481 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { | 481 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { |
482 X64OperandGenerator g(this); | 482 X64OperandGenerator g(this); |
483 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 483 Emit(kSSEInt32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
484 } | 484 } |
485 | 485 |
486 | 486 |
487 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { | 487 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { |
488 X64OperandGenerator g(this); | 488 X64OperandGenerator g(this); |
489 // TODO(turbofan): X64 SSE cvtqsi2sd should support operands. | 489 Emit(kSSEUint32ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
490 Emit(kSSEUint32ToFloat64, g.DefineAsRegister(node), | |
491 g.UseRegister(node->InputAt(0))); | |
492 } | 490 } |
493 | 491 |
494 | 492 |
495 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { | 493 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { |
496 X64OperandGenerator g(this); | 494 X64OperandGenerator g(this); |
497 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 495 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
498 } | 496 } |
499 | 497 |
500 | 498 |
501 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 499 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 DCHECK(deoptimization == NULL && continuation == NULL); | 720 DCHECK(deoptimization == NULL && continuation == NULL); |
723 Emit(kArchDrop | | 721 Emit(kArchDrop | |
724 MiscField::encode(static_cast<int>(buffer.pushed_nodes.size())), | 722 MiscField::encode(static_cast<int>(buffer.pushed_nodes.size())), |
725 NULL); | 723 NULL); |
726 } | 724 } |
727 } | 725 } |
728 | 726 |
729 } // namespace compiler | 727 } // namespace compiler |
730 } // namespace internal | 728 } // namespace internal |
731 } // namespace v8 | 729 } // namespace v8 |
OLD | NEW |