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

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

Issue 1486483003: X87: [TurboFan] enable the Float64RoundDown and Float64RoundTruncate operators in x87. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/x87/code-generator-x87.cc ('k') | no next file » | 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 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 InstructionSelector::SupportedMachineOperatorFlags() { 1293 InstructionSelector::SupportedMachineOperatorFlags() {
1294 MachineOperatorBuilder::Flags flags = 1294 MachineOperatorBuilder::Flags flags =
1295 MachineOperatorBuilder::kFloat32Max | 1295 MachineOperatorBuilder::kFloat32Max |
1296 MachineOperatorBuilder::kFloat32Min | 1296 MachineOperatorBuilder::kFloat32Min |
1297 MachineOperatorBuilder::kFloat64Max | 1297 MachineOperatorBuilder::kFloat64Max |
1298 MachineOperatorBuilder::kFloat64Min | 1298 MachineOperatorBuilder::kFloat64Min |
1299 MachineOperatorBuilder::kWord32ShiftIsSafe; 1299 MachineOperatorBuilder::kWord32ShiftIsSafe;
1300 if (CpuFeatures::IsSupported(POPCNT)) { 1300 if (CpuFeatures::IsSupported(POPCNT)) {
1301 flags |= MachineOperatorBuilder::kWord32Popcnt; 1301 flags |= MachineOperatorBuilder::kWord32Popcnt;
1302 } 1302 }
1303
1304 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1305 MachineOperatorBuilder::kFloat64RoundTruncate;
1303 return flags; 1306 return flags;
1304 } 1307 }
1305 1308
1306 } // namespace compiler 1309 } // namespace compiler
1307 } // namespace internal 1310 } // namespace internal
1308 } // namespace v8 1311 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x87/code-generator-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698