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

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

Issue 1440293002: [turbofan] Added the optional Float64RoundTiesEven operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f64roundup
Patch Set: Disabled F64RoundTiesEven on mips32 Created 5 years, 1 month 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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 Emit(kX87Float64Round | MiscField::encode(kRoundToZero), 857 Emit(kX87Float64Round | MiscField::encode(kRoundToZero),
858 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); 858 g.UseFixed(node, stX_0), g.Use(node->InputAt(0)));
859 } 859 }
860 860
861 861
862 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 862 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
863 UNREACHABLE(); 863 UNREACHABLE();
864 } 864 }
865 865
866 866
867 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) {
868 UNREACHABLE();
869 }
870
871
867 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, 872 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments,
868 const CallDescriptor* descriptor, 873 const CallDescriptor* descriptor,
869 Node* node) { 874 Node* node) {
870 X87OperandGenerator g(this); 875 X87OperandGenerator g(this);
871 876
872 // Prepare for C function call. 877 // Prepare for C function call.
873 if (descriptor->IsCFunctionCall()) { 878 if (descriptor->IsCFunctionCall()) {
874 InstructionOperand temps[] = {g.TempRegister()}; 879 InstructionOperand temps[] = {g.TempRegister()};
875 size_t const temp_count = arraysize(temps); 880 size_t const temp_count = arraysize(temps);
876 Emit(kArchPrepareCallCFunction | 881 Emit(kArchPrepareCallCFunction |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 MachineOperatorBuilder::kWord32ShiftIsSafe; 1283 MachineOperatorBuilder::kWord32ShiftIsSafe;
1279 if (CpuFeatures::IsSupported(POPCNT)) { 1284 if (CpuFeatures::IsSupported(POPCNT)) {
1280 flags |= MachineOperatorBuilder::kWord32Popcnt; 1285 flags |= MachineOperatorBuilder::kWord32Popcnt;
1281 } 1286 }
1282 return flags; 1287 return flags;
1283 } 1288 }
1284 1289
1285 } // namespace compiler 1290 } // namespace compiler
1286 } // namespace internal 1291 } // namespace internal
1287 } // namespace v8 1292 } // 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