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/representation-change.cc

Issue 2073683002: [turbofan] The Check and Checked operators don't produce control. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/simplified-lowering.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/representation-change.h" 5 #include "src/compiler/representation-change.h"
6 6
7 #include <sstream> 7 #include <sstream>
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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 } 444 }
445 445
446 Node* RepresentationChanger::InsertConversion(Node* node, const Operator* op, 446 Node* RepresentationChanger::InsertConversion(Node* node, const Operator* op,
447 Node* use_node) { 447 Node* use_node) {
448 if (op->ControlInputCount() > 0) { 448 if (op->ControlInputCount() > 0) {
449 // If the operator can deoptimize (which means it has control 449 // If the operator can deoptimize (which means it has control
450 // input), we need to connect it to the effect and control chains. 450 // input), we need to connect it to the effect and control chains.
451 Node* effect = NodeProperties::GetEffectInput(use_node); 451 Node* effect = NodeProperties::GetEffectInput(use_node);
452 Node* control = NodeProperties::GetControlInput(use_node); 452 Node* control = NodeProperties::GetControlInput(use_node);
453 Node* conversion = jsgraph()->graph()->NewNode(op, node, effect, control); 453 Node* conversion = jsgraph()->graph()->NewNode(op, node, effect, control);
454 NodeProperties::ReplaceControlInput(use_node, control); 454 NodeProperties::ReplaceEffectInput(use_node, conversion);
455 NodeProperties::ReplaceEffectInput(use_node, effect);
456 return conversion; 455 return conversion;
457 } 456 }
458 return jsgraph()->graph()->NewNode(op, node); 457 return jsgraph()->graph()->NewNode(op, node);
459 } 458 }
460 459
461 460
462 Node* RepresentationChanger::GetBitRepresentationFor( 461 Node* RepresentationChanger::GetBitRepresentationFor(
463 Node* node, MachineRepresentation output_rep, Type* output_type) { 462 Node* node, MachineRepresentation output_rep, Type* output_type) {
464 // Eagerly fold representation changes for constants. 463 // Eagerly fold representation changes for constants.
465 switch (node->opcode()) { 464 switch (node->opcode()) {
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } 721 }
723 722
724 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 723 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
725 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 724 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
726 node); 725 node);
727 } 726 }
728 727
729 } // namespace compiler 728 } // namespace compiler
730 } // namespace internal 729 } // namespace internal
731 } // namespace v8 730 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698