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

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

Issue 2291103002: [TurboFan]: Rename "upper" types to just types. (Closed)
Patch Set: nit. Created 4 years, 3 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/verifier.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 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 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 if (truncation.IsUnused()) return VisitUnused(node); 1583 if (truncation.IsUnused()) return VisitUnused(node);
1584 } 1584 }
1585 if (BothInputsAreUnsigned32(node) && truncation.IsUsedAsWord32()) { 1585 if (BothInputsAreUnsigned32(node) && truncation.IsUsedAsWord32()) {
1586 // => unsigned Uint32Div 1586 // => unsigned Uint32Div
1587 VisitWord32TruncatingBinop(node); 1587 VisitWord32TruncatingBinop(node);
1588 if (lower()) DeferReplacement(node, lowering->Uint32Div(node)); 1588 if (lower()) DeferReplacement(node, lowering->Uint32Div(node));
1589 return; 1589 return;
1590 } 1590 }
1591 if (BothInputsAreSigned32(node)) { 1591 if (BothInputsAreSigned32(node)) {
1592 if (NodeProperties::GetType(node)->Is(Type::Signed32())) { 1592 if (NodeProperties::GetType(node)->Is(Type::Signed32())) {
1593 // => signed Int32Div 1593 // => signed Int32Div
1594 VisitInt32Binop(node); 1594 VisitInt32Binop(node);
1595 if (lower()) DeferReplacement(node, lowering->Int32Div(node)); 1595 if (lower()) DeferReplacement(node, lowering->Int32Div(node));
1596 return; 1596 return;
1597 } 1597 }
1598 if (truncation.IsUsedAsWord32()) { 1598 if (truncation.IsUsedAsWord32()) {
1599 // => signed Int32Div 1599 // => signed Int32Div
1600 VisitWord32TruncatingBinop(node); 1600 VisitWord32TruncatingBinop(node);
1601 if (lower()) DeferReplacement(node, lowering->Int32Div(node)); 1601 if (lower()) DeferReplacement(node, lowering->Int32Div(node));
1602 return; 1602 return;
1603 } 1603 }
1604 } 1604 }
1605 1605
1606 // Try to use type feedback. 1606 // Try to use type feedback.
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3191 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3192 Operator::kNoProperties); 3192 Operator::kNoProperties);
3193 to_number_operator_.set(common()->Call(desc)); 3193 to_number_operator_.set(common()->Call(desc));
3194 } 3194 }
3195 return to_number_operator_.get(); 3195 return to_number_operator_.get();
3196 } 3196 }
3197 3197
3198 } // namespace compiler 3198 } // namespace compiler
3199 } // namespace internal 3199 } // namespace internal
3200 } // namespace v8 3200 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698