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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.cc

Issue 1757213003: [turbofan] Do not produce 2 ops for Int32AddWithOverflow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 } 1778 }
1779 } 1779 }
1780 } 1780 }
1781 VisitWord64Compare(this, node, &cont); 1781 VisitWord64Compare(this, node, &cont);
1782 } 1782 }
1783 1783
1784 1784
1785 void InstructionSelector::VisitInt32AddWithOverflow(Node* node) { 1785 void InstructionSelector::VisitInt32AddWithOverflow(Node* node) {
1786 if (Node* ovf = NodeProperties::FindProjection(node, 1)) { 1786 if (Node* ovf = NodeProperties::FindProjection(node, 1)) {
1787 FlagsContinuation cont = FlagsContinuation::ForSet(kOverflow, ovf); 1787 FlagsContinuation cont = FlagsContinuation::ForSet(kOverflow, ovf);
1788 VisitBinop(this, node, kX64Add32, &cont); 1788 return VisitBinop(this, node, kX64Add32, &cont);
1789 } 1789 }
1790 FlagsContinuation cont; 1790 FlagsContinuation cont;
1791 VisitBinop(this, node, kX64Add32, &cont); 1791 VisitBinop(this, node, kX64Add32, &cont);
1792 } 1792 }
1793 1793
1794 1794
1795 void InstructionSelector::VisitInt32SubWithOverflow(Node* node) { 1795 void InstructionSelector::VisitInt32SubWithOverflow(Node* node) {
1796 if (Node* ovf = NodeProperties::FindProjection(node, 1)) { 1796 if (Node* ovf = NodeProperties::FindProjection(node, 1)) {
1797 FlagsContinuation cont = FlagsContinuation::ForSet(kOverflow, ovf); 1797 FlagsContinuation cont = FlagsContinuation::ForSet(kOverflow, ovf);
1798 return VisitBinop(this, node, kX64Sub32, &cont); 1798 return VisitBinop(this, node, kX64Sub32, &cont);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 MachineOperatorBuilder::kFloat64RoundTruncate | 1928 MachineOperatorBuilder::kFloat64RoundTruncate |
1929 MachineOperatorBuilder::kFloat32RoundTiesEven | 1929 MachineOperatorBuilder::kFloat32RoundTiesEven |
1930 MachineOperatorBuilder::kFloat64RoundTiesEven; 1930 MachineOperatorBuilder::kFloat64RoundTiesEven;
1931 } 1931 }
1932 return flags; 1932 return flags;
1933 } 1933 }
1934 1934
1935 } // namespace compiler 1935 } // namespace compiler
1936 } // namespace internal 1936 } // namespace internal
1937 } // namespace v8 1937 } // 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