Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: src/compiler/x87/instruction-selector-x87.cc

Issue 2011303002: [arm] [arm64] Add optional operators Float32Neg and Float64Neg. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698