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

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

Issue 2665123002: [turbofan] Don't eliminate unused CheckFloat64Hole. (Closed)
Patch Set: Created 3 years, 10 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 | test/mjsunit/regress/regress-crbug-686737.js » ('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/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 2537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 case IrOpcode::kNewUnmappedArgumentsElements: { 2548 case IrOpcode::kNewUnmappedArgumentsElements: {
2549 ProcessRemainingInputs(node, 0); 2549 ProcessRemainingInputs(node, 0);
2550 SetOutput(node, MachineRepresentation::kTaggedPointer); 2550 SetOutput(node, MachineRepresentation::kTaggedPointer);
2551 return; 2551 return;
2552 } 2552 }
2553 case IrOpcode::kArrayBufferWasNeutered: { 2553 case IrOpcode::kArrayBufferWasNeutered: {
2554 VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kBit); 2554 VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kBit);
2555 return; 2555 return;
2556 } 2556 }
2557 case IrOpcode::kCheckFloat64Hole: { 2557 case IrOpcode::kCheckFloat64Hole: {
2558 if (truncation.IsUnused()) return VisitUnused(node);
2559 CheckFloat64HoleMode mode = CheckFloat64HoleModeOf(node->op()); 2558 CheckFloat64HoleMode mode = CheckFloat64HoleModeOf(node->op());
2560 ProcessInput(node, 0, UseInfo::TruncatingFloat64()); 2559 ProcessInput(node, 0, UseInfo::TruncatingFloat64());
2561 ProcessRemainingInputs(node, 1); 2560 ProcessRemainingInputs(node, 1);
2562 SetOutput(node, MachineRepresentation::kFloat64); 2561 SetOutput(node, MachineRepresentation::kFloat64);
2563 if (truncation.IsUsedAsFloat64() && 2562 if (truncation.IsUsedAsFloat64() &&
2564 mode == CheckFloat64HoleMode::kAllowReturnHole) { 2563 mode == CheckFloat64HoleMode::kAllowReturnHole) {
2565 if (lower()) DeferReplacement(node, node->InputAt(0)); 2564 if (lower()) DeferReplacement(node, node->InputAt(0));
2566 } 2565 }
2567 return; 2566 return;
2568 } 2567 }
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
3508 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3507 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3509 Operator::kNoProperties); 3508 Operator::kNoProperties);
3510 to_number_operator_.set(common()->Call(desc)); 3509 to_number_operator_.set(common()->Call(desc));
3511 } 3510 }
3512 return to_number_operator_.get(); 3511 return to_number_operator_.get();
3513 } 3512 }
3514 3513
3515 } // namespace compiler 3514 } // namespace compiler
3516 } // namespace internal 3515 } // namespace internal
3517 } // namespace v8 3516 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-686737.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698