| 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/compiler/simplified-lowering.h" | 5 #include "src/compiler/simplified-lowering.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 case IrOpcode::kStart: | 493 case IrOpcode::kStart: |
| 494 case IrOpcode::kDead: | 494 case IrOpcode::kDead: |
| 495 return VisitLeaf(node, 0); | 495 return VisitLeaf(node, 0); |
| 496 case IrOpcode::kParameter: { | 496 case IrOpcode::kParameter: { |
| 497 // TODO(titzer): use representation from linkage. | 497 // TODO(titzer): use representation from linkage. |
| 498 Type* upper = NodeProperties::GetBounds(node).upper; | 498 Type* upper = NodeProperties::GetBounds(node).upper; |
| 499 ProcessInput(node, 0, 0); | 499 ProcessInput(node, 0, 0); |
| 500 SetOutput(node, kRepTagged | changer_->TypeFromUpperBound(upper)); | 500 SetOutput(node, kRepTagged | changer_->TypeFromUpperBound(upper)); |
| 501 return; | 501 return; |
| 502 } | 502 } |
| 503 case IrOpcode::kAlways: | |
| 504 return VisitLeaf(node, kRepBit); | |
| 505 case IrOpcode::kInt32Constant: | 503 case IrOpcode::kInt32Constant: |
| 506 return VisitLeaf(node, kRepWord32); | 504 return VisitLeaf(node, kRepWord32); |
| 507 case IrOpcode::kInt64Constant: | 505 case IrOpcode::kInt64Constant: |
| 508 return VisitLeaf(node, kRepWord64); | 506 return VisitLeaf(node, kRepWord64); |
| 509 case IrOpcode::kFloat32Constant: | 507 case IrOpcode::kFloat32Constant: |
| 510 return VisitLeaf(node, kRepFloat32); | 508 return VisitLeaf(node, kRepFloat32); |
| 511 case IrOpcode::kFloat64Constant: | 509 case IrOpcode::kFloat64Constant: |
| 512 return VisitLeaf(node, kRepFloat64); | 510 return VisitLeaf(node, kRepFloat64); |
| 513 case IrOpcode::kExternalConstant: | 511 case IrOpcode::kExternalConstant: |
| 514 return VisitLeaf(node, kMachPtr); | 512 return VisitLeaf(node, kMachPtr); |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1609 | 1607 |
| 1610 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) { | 1608 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) { |
| 1611 node->set_op(machine()->IntLessThanOrEqual()); | 1609 node->set_op(machine()->IntLessThanOrEqual()); |
| 1612 node->ReplaceInput(0, StringComparison(node, true)); | 1610 node->ReplaceInput(0, StringComparison(node, true)); |
| 1613 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); | 1611 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); |
| 1614 } | 1612 } |
| 1615 | 1613 |
| 1616 } // namespace compiler | 1614 } // namespace compiler |
| 1617 } // namespace internal | 1615 } // namespace internal |
| 1618 } // namespace v8 | 1616 } // namespace v8 |
| OLD | NEW |