OLD | NEW |
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/base/bits.h" | 6 #include "src/base/bits.h" |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 | 10 |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 return VisitFloat64Compare(selector, value, cont); | 1102 return VisitFloat64Compare(selector, value, cont); |
1103 case IrOpcode::kFloat64LessThanOrEqual: | 1103 case IrOpcode::kFloat64LessThanOrEqual: |
1104 cont->OverwriteAndNegateIfEqual(kUnsignedLessThanOrEqual); | 1104 cont->OverwriteAndNegateIfEqual(kUnsignedLessThanOrEqual); |
1105 return VisitFloat64Compare(selector, value, cont); | 1105 return VisitFloat64Compare(selector, value, cont); |
1106 case IrOpcode::kProjection: | 1106 case IrOpcode::kProjection: |
1107 // Check if this is the overflow output projection of an | 1107 // Check if this is the overflow output projection of an |
1108 // <Operation>WithOverflow node. | 1108 // <Operation>WithOverflow node. |
1109 if (ProjectionIndexOf(value->op()) == 1u) { | 1109 if (ProjectionIndexOf(value->op()) == 1u) { |
1110 // We cannot combine the <Operation>WithOverflow with this branch | 1110 // We cannot combine the <Operation>WithOverflow with this branch |
1111 // unless the 0th projection (the use of the actual value of the | 1111 // unless the 0th projection (the use of the actual value of the |
1112 // <Operation> is either NULL, which means there's no use of the | 1112 // <Operation> is either nullptr, which means there's no use of the |
1113 // actual value, or was already defined, which means it is scheduled | 1113 // actual value, or was already defined, which means it is scheduled |
1114 // *AFTER* this branch). | 1114 // *AFTER* this branch). |
1115 Node* const node = value->InputAt(0); | 1115 Node* const node = value->InputAt(0); |
1116 Node* const result = NodeProperties::FindProjection(node, 0); | 1116 Node* const result = NodeProperties::FindProjection(node, 0); |
1117 if (!result || selector->IsDefined(result)) { | 1117 if (!result || selector->IsDefined(result)) { |
1118 switch (node->opcode()) { | 1118 switch (node->opcode()) { |
1119 case IrOpcode::kInt32AddWithOverflow: | 1119 case IrOpcode::kInt32AddWithOverflow: |
1120 cont->OverwriteAndNegateIfEqual(kOverflow); | 1120 cont->OverwriteAndNegateIfEqual(kOverflow); |
1121 return VisitBinop(selector, node, kMipsAddOvf, cont); | 1121 return VisitBinop(selector, node, kMipsAddOvf, cont); |
1122 case IrOpcode::kInt32SubWithOverflow: | 1122 case IrOpcode::kInt32SubWithOverflow: |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 MachineOperatorBuilder::kFloat32Max | | 1327 MachineOperatorBuilder::kFloat32Max | |
1328 MachineOperatorBuilder::kFloat32RoundDown | | 1328 MachineOperatorBuilder::kFloat32RoundDown | |
1329 MachineOperatorBuilder::kFloat32RoundUp | | 1329 MachineOperatorBuilder::kFloat32RoundUp | |
1330 MachineOperatorBuilder::kFloat32RoundTruncate | | 1330 MachineOperatorBuilder::kFloat32RoundTruncate | |
1331 MachineOperatorBuilder::kFloat32RoundTiesEven; | 1331 MachineOperatorBuilder::kFloat32RoundTiesEven; |
1332 } | 1332 } |
1333 | 1333 |
1334 } // namespace compiler | 1334 } // namespace compiler |
1335 } // namespace internal | 1335 } // namespace internal |
1336 } // namespace v8 | 1336 } // namespace v8 |
OLD | NEW |