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

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

Issue 1444583002: [turbofan] Added the optional Float64RoundUp operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed the implementation of VisitFloat32RoundUp 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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 } 842 }
843 843
844 844
845 void InstructionSelector::VisitFloat64RoundDown(Node* node) { 845 void InstructionSelector::VisitFloat64RoundDown(Node* node) {
846 X87OperandGenerator g(this); 846 X87OperandGenerator g(this);
847 Emit(kX87Float64Round | MiscField::encode(kRoundDown), 847 Emit(kX87Float64Round | MiscField::encode(kRoundDown),
848 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); 848 g.UseFixed(node, stX_0), g.Use(node->InputAt(0)));
849 } 849 }
850 850
851 851
852 void InstructionSelector::VisitFloat64RoundUp(Node* node) { UNREACHABLE(); }
853
854
852 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 855 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
853 X87OperandGenerator g(this); 856 X87OperandGenerator g(this);
854 Emit(kX87Float64Round | MiscField::encode(kRoundToZero), 857 Emit(kX87Float64Round | MiscField::encode(kRoundToZero),
855 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); 858 g.UseFixed(node, stX_0), g.Use(node->InputAt(0)));
856 } 859 }
857 860
858 861
859 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 862 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
860 UNREACHABLE(); 863 UNREACHABLE();
861 } 864 }
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 MachineOperatorBuilder::kWord32ShiftIsSafe; 1278 MachineOperatorBuilder::kWord32ShiftIsSafe;
1276 if (CpuFeatures::IsSupported(POPCNT)) { 1279 if (CpuFeatures::IsSupported(POPCNT)) {
1277 flags |= MachineOperatorBuilder::kWord32Popcnt; 1280 flags |= MachineOperatorBuilder::kWord32Popcnt;
1278 } 1281 }
1279 return flags; 1282 return flags;
1280 } 1283 }
1281 1284
1282 } // namespace compiler 1285 } // namespace compiler
1283 } // namespace internal 1286 } // namespace internal
1284 } // namespace v8 1287 } // 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