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

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

Issue 975363002: [x86] Fix InstructionSelector::SupportedMachineOperatorFlags(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | src/compiler/x64/instruction-selector-x64.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/compiler/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 1064
1065 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { 1065 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) {
1066 FlagsContinuation cont(kUnsignedGreaterThanOrEqual, node); 1066 FlagsContinuation cont(kUnsignedGreaterThanOrEqual, node);
1067 VisitFloat64Compare(this, node, &cont); 1067 VisitFloat64Compare(this, node, &cont);
1068 } 1068 }
1069 1069
1070 1070
1071 // static 1071 // static
1072 MachineOperatorBuilder::Flags 1072 MachineOperatorBuilder::Flags
1073 InstructionSelector::SupportedMachineOperatorFlags() { 1073 InstructionSelector::SupportedMachineOperatorFlags() {
1074 MachineOperatorBuilder::Flags flags =
1075 MachineOperatorBuilder::kWord32ShiftIsSafe;
1074 if (CpuFeatures::IsSupported(SSE4_1)) { 1076 if (CpuFeatures::IsSupported(SSE4_1)) {
1075 return MachineOperatorBuilder::kFloat64Floor | 1077 flags |= MachineOperatorBuilder::kFloat64Floor |
1076 MachineOperatorBuilder::kFloat64Ceil | 1078 MachineOperatorBuilder::kFloat64Ceil |
1077 MachineOperatorBuilder::kFloat64RoundTruncate | 1079 MachineOperatorBuilder::kFloat64RoundTruncate;
1078 MachineOperatorBuilder::kWord32ShiftIsSafe;
1079 } 1080 }
1080 return MachineOperatorBuilder::Flag::kNoFlags; 1081 return flags;
1081 } 1082 }
1082 1083
1083 } // namespace compiler 1084 } // namespace compiler
1084 } // namespace internal 1085 } // namespace internal
1085 } // namespace v8 1086 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698