| 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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { | 1080 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { |
| 1081 X87OperandGenerator g(this); | 1081 X87OperandGenerator g(this); |
| 1082 Emit(kX87Float64Round | MiscField::encode(kRoundToNearest), | 1082 Emit(kX87Float64Round | MiscField::encode(kRoundToNearest), |
| 1083 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 1083 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 void InstructionSelector::VisitFloat32Neg(Node* node) { UNREACHABLE(); } | 1086 void InstructionSelector::VisitFloat32Neg(Node* node) { UNREACHABLE(); } |
| 1087 | 1087 |
| 1088 void InstructionSelector::VisitFloat64Neg(Node* node) { UNREACHABLE(); } | 1088 void InstructionSelector::VisitFloat64Neg(Node* node) { UNREACHABLE(); } |
| 1089 | 1089 |
| 1090 void InstructionSelector::VisitFloat64Ieee754Binop(Node* node, |
| 1091 InstructionCode opcode) { |
| 1092 X87OperandGenerator g(this); |
| 1093 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); |
| 1094 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(1))); |
| 1095 Emit(opcode, g.DefineAsFixed(node, stX_0), 0, nullptr)->MarkAsCall(); |
| 1096 } |
| 1097 |
| 1090 void InstructionSelector::VisitFloat64Ieee754Unop(Node* node, | 1098 void InstructionSelector::VisitFloat64Ieee754Unop(Node* node, |
| 1091 InstructionCode opcode) { | 1099 InstructionCode opcode) { |
| 1092 X87OperandGenerator g(this); | 1100 X87OperandGenerator g(this); |
| 1093 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); | 1101 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); |
| 1094 Emit(opcode, g.DefineAsFixed(node, stX_0), 0, nullptr)->MarkAsCall(); | 1102 Emit(opcode, g.DefineAsFixed(node, stX_0), 0, nullptr)->MarkAsCall(); |
| 1095 } | 1103 } |
| 1096 | 1104 |
| 1097 void InstructionSelector::EmitPrepareArguments( | 1105 void InstructionSelector::EmitPrepareArguments( |
| 1098 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 1106 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
| 1099 Node* node) { | 1107 Node* node) { |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 // static | 1703 // static |
| 1696 MachineOperatorBuilder::AlignmentRequirements | 1704 MachineOperatorBuilder::AlignmentRequirements |
| 1697 InstructionSelector::AlignmentRequirements() { | 1705 InstructionSelector::AlignmentRequirements() { |
| 1698 return MachineOperatorBuilder::AlignmentRequirements:: | 1706 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1699 FullUnalignedAccessSupport(); | 1707 FullUnalignedAccessSupport(); |
| 1700 } | 1708 } |
| 1701 | 1709 |
| 1702 } // namespace compiler | 1710 } // namespace compiler |
| 1703 } // namespace internal | 1711 } // namespace internal |
| 1704 } // namespace v8 | 1712 } // namespace v8 |
| OLD | NEW |