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

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

Issue 727673002: [turbofan] Optimize remainder of integer division by unknown power of two. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix broken Int32Mod on ARM Created 6 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 | « no previous file | src/compiler/machine-operator.h » ('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/bits.h" 5 #include "src/base/bits.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 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 FlagsContinuation cont(kUnorderedLessThanOrEqual, node); 1248 FlagsContinuation cont(kUnorderedLessThanOrEqual, node);
1249 VisitFloat64Compare(this, node, &cont); 1249 VisitFloat64Compare(this, node, &cont);
1250 } 1250 }
1251 1251
1252 1252
1253 // static 1253 // static
1254 MachineOperatorBuilder::Flags 1254 MachineOperatorBuilder::Flags
1255 InstructionSelector::SupportedMachineOperatorFlags() { 1255 InstructionSelector::SupportedMachineOperatorFlags() {
1256 MachineOperatorBuilder::Flags flags = 1256 MachineOperatorBuilder::Flags flags =
1257 MachineOperatorBuilder::kInt32DivIsSafe | 1257 MachineOperatorBuilder::kInt32DivIsSafe |
1258 MachineOperatorBuilder::kInt32ModIsSafe | 1258 MachineOperatorBuilder::kUint32DivIsSafe;
1259 MachineOperatorBuilder::kUint32DivIsSafe |
1260 MachineOperatorBuilder::kUint32ModIsSafe;
1261 1259
1262 if (CpuFeatures::IsSupported(ARMv8)) { 1260 if (CpuFeatures::IsSupported(ARMv8)) {
1263 flags |= MachineOperatorBuilder::kFloat64Floor | 1261 flags |= MachineOperatorBuilder::kFloat64Floor |
1264 MachineOperatorBuilder::kFloat64Ceil | 1262 MachineOperatorBuilder::kFloat64Ceil |
1265 MachineOperatorBuilder::kFloat64RoundTruncate | 1263 MachineOperatorBuilder::kFloat64RoundTruncate |
1266 MachineOperatorBuilder::kFloat64RoundTiesAway; 1264 MachineOperatorBuilder::kFloat64RoundTiesAway;
1267 } 1265 }
1268 return flags; 1266 return flags;
1269 } 1267 }
1270 1268
1271 } // namespace compiler 1269 } // namespace compiler
1272 } // namespace internal 1270 } // namespace internal
1273 } // namespace v8 1271 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698