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

Side by Side Diff: src/compiler/simplified-lowering.cc

Issue 2811153003: [turbofan] Remove unused word32 truncation case for CheckFloat64Hole. (Closed)
Patch Set: Created 3 years, 8 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 | 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/compiler/simplified-lowering.h" 5 #include "src/compiler/simplified-lowering.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/address-map.h" 9 #include "src/address-map.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 } 2693 }
2694 case IrOpcode::kCheckFloat64Hole: { 2694 case IrOpcode::kCheckFloat64Hole: {
2695 Type* const input_type = TypeOf(node->InputAt(0)); 2695 Type* const input_type = TypeOf(node->InputAt(0));
2696 if (input_type->Is(Type::Number())) { 2696 if (input_type->Is(Type::Number())) {
2697 VisitNoop(node, truncation); 2697 VisitNoop(node, truncation);
2698 } else { 2698 } else {
2699 CheckFloat64HoleMode mode = CheckFloat64HoleModeOf(node->op()); 2699 CheckFloat64HoleMode mode = CheckFloat64HoleModeOf(node->op());
2700 switch (mode) { 2700 switch (mode) {
2701 case CheckFloat64HoleMode::kAllowReturnHole: 2701 case CheckFloat64HoleMode::kAllowReturnHole:
2702 if (truncation.IsUnused()) return VisitUnused(node); 2702 if (truncation.IsUnused()) return VisitUnused(node);
2703 if (truncation.IsUsedAsWord32()) { 2703 if (truncation.IsUsedAsFloat64()) {
2704 VisitUnop(node, UseInfo::TruncatingWord32(),
2705 MachineRepresentation::kWord32);
2706 if (lower()) DeferReplacement(node, node->InputAt(0));
2707 } else if (truncation.IsUsedAsFloat64()) {
2708 VisitUnop(node, UseInfo::TruncatingFloat64(), 2704 VisitUnop(node, UseInfo::TruncatingFloat64(),
2709 MachineRepresentation::kFloat64); 2705 MachineRepresentation::kFloat64);
2710 if (lower()) DeferReplacement(node, node->InputAt(0)); 2706 if (lower()) DeferReplacement(node, node->InputAt(0));
2711 } else { 2707 } else {
2712 VisitUnop( 2708 VisitUnop(
2713 node, 2709 node,
2714 UseInfo(MachineRepresentation::kFloat64, Truncation::Any()), 2710 UseInfo(MachineRepresentation::kFloat64, Truncation::Any()),
2715 MachineRepresentation::kFloat64, Type::Number()); 2711 MachineRepresentation::kFloat64, Type::Number());
2716 } 2712 }
2717 break; 2713 break;
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
3679 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3675 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3680 Operator::kNoProperties); 3676 Operator::kNoProperties);
3681 to_number_operator_.set(common()->Call(desc)); 3677 to_number_operator_.set(common()->Call(desc));
3682 } 3678 }
3683 return to_number_operator_.get(); 3679 return to_number_operator_.get();
3684 } 3680 }
3685 3681
3686 } // namespace compiler 3682 } // namespace compiler
3687 } // namespace internal 3683 } // namespace internal
3688 } // namespace v8 3684 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698