| 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 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 1077 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
| 1078 } | 1078 } |
| 1079 | 1079 |
| 1080 | 1080 |
| 1081 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { | 1081 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { |
| 1082 X87OperandGenerator g(this); | 1082 X87OperandGenerator g(this); |
| 1083 Emit(kX87Float64Round | MiscField::encode(kRoundToNearest), | 1083 Emit(kX87Float64Round | MiscField::encode(kRoundToNearest), |
| 1084 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 1084 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
| 1085 } | 1085 } |
| 1086 | 1086 |
| 1087 void InstructionSelector::VisitFloat32Neg(Node* node) { UNREACHABLE(); } |
| 1088 |
| 1089 void InstructionSelector::VisitFloat64Neg(Node* node) { UNREACHABLE(); } |
| 1087 | 1090 |
| 1088 void InstructionSelector::EmitPrepareArguments( | 1091 void InstructionSelector::EmitPrepareArguments( |
| 1089 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, | 1092 ZoneVector<PushParameter>* arguments, const CallDescriptor* descriptor, |
| 1090 Node* node) { | 1093 Node* node) { |
| 1091 X87OperandGenerator g(this); | 1094 X87OperandGenerator g(this); |
| 1092 | 1095 |
| 1093 // Prepare for C function call. | 1096 // Prepare for C function call. |
| 1094 if (descriptor->IsCFunctionCall()) { | 1097 if (descriptor->IsCFunctionCall()) { |
| 1095 InstructionOperand temps[] = {g.TempRegister()}; | 1098 InstructionOperand temps[] = {g.TempRegister()}; |
| 1096 size_t const temp_count = arraysize(temps); | 1099 size_t const temp_count = arraysize(temps); |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1686 // static | 1689 // static |
| 1687 MachineOperatorBuilder::AlignmentRequirements | 1690 MachineOperatorBuilder::AlignmentRequirements |
| 1688 InstructionSelector::AlignmentRequirements() { | 1691 InstructionSelector::AlignmentRequirements() { |
| 1689 return MachineOperatorBuilder::AlignmentRequirements:: | 1692 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1690 FullUnalignedAccessSupport(); | 1693 FullUnalignedAccessSupport(); |
| 1691 } | 1694 } |
| 1692 | 1695 |
| 1693 } // namespace compiler | 1696 } // namespace compiler |
| 1694 } // namespace internal | 1697 } // namespace internal |
| 1695 } // namespace v8 | 1698 } // namespace v8 |
| OLD | NEW |