| 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 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 | 1005 |
| 1006 void InstructionSelector::VisitFloat64Abs(Node* node) { | 1006 void InstructionSelector::VisitFloat64Abs(Node* node) { |
| 1007 X87OperandGenerator g(this); | 1007 X87OperandGenerator g(this); |
| 1008 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); | 1008 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); |
| 1009 Emit(kX87Float64Abs, g.DefineAsFixed(node, stX_0), 0, nullptr); | 1009 Emit(kX87Float64Abs, g.DefineAsFixed(node, stX_0), 0, nullptr); |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 void InstructionSelector::VisitFloat64Log(Node* node) { | 1012 void InstructionSelector::VisitFloat64Log(Node* node) { |
| 1013 X87OperandGenerator g(this); | 1013 X87OperandGenerator g(this); |
| 1014 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); | 1014 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); |
| 1015 Emit(kX87Float64Log, g.DefineAsFixed(node, stX_0), 0, nullptr); | 1015 Emit(kIeee754Float64Log, g.DefineAsFixed(node, stX_0), 0, nullptr) |
| 1016 ->MarkAsCall(); |
| 1016 } | 1017 } |
| 1017 | 1018 |
| 1018 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1019 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
| 1019 X87OperandGenerator g(this); | 1020 X87OperandGenerator g(this); |
| 1020 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); | 1021 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); |
| 1021 Emit(kX87Float32Sqrt, g.DefineAsFixed(node, stX_0), 0, nullptr); | 1022 Emit(kX87Float32Sqrt, g.DefineAsFixed(node, stX_0), 0, nullptr); |
| 1022 } | 1023 } |
| 1023 | 1024 |
| 1024 | 1025 |
| 1025 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1026 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1694 // static | 1695 // static |
| 1695 MachineOperatorBuilder::AlignmentRequirements | 1696 MachineOperatorBuilder::AlignmentRequirements |
| 1696 InstructionSelector::AlignmentRequirements() { | 1697 InstructionSelector::AlignmentRequirements() { |
| 1697 return MachineOperatorBuilder::AlignmentRequirements:: | 1698 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1698 FullUnalignedAccessSupport(); | 1699 FullUnalignedAccessSupport(); |
| 1699 } | 1700 } |
| 1700 | 1701 |
| 1701 } // namespace compiler | 1702 } // namespace compiler |
| 1702 } // namespace internal | 1703 } // namespace internal |
| 1703 } // namespace v8 | 1704 } // namespace v8 |
| OLD | NEW |