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

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

Issue 1971163002: [turbofan] Fix optimized lowering of Math.imul. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unittests. Reorder as pointed out by Michi. Created 4 years, 7 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 | « src/compiler/representation-change.cc ('k') | src/compiler/simplified-operator.h » ('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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 lowering->DoShift(node, lowering->machine()->Word32Shr(), rhs_type); 1036 lowering->DoShift(node, lowering->machine()->Word32Shr(), rhs_type);
1037 } 1037 }
1038 break; 1038 break;
1039 } 1039 }
1040 case IrOpcode::kNumberClz32: { 1040 case IrOpcode::kNumberClz32: {
1041 VisitUnop(node, UseInfo::TruncatingWord32(), 1041 VisitUnop(node, UseInfo::TruncatingWord32(),
1042 MachineRepresentation::kWord32); 1042 MachineRepresentation::kWord32);
1043 if (lower()) NodeProperties::ChangeOp(node, Uint32Op(node)); 1043 if (lower()) NodeProperties::ChangeOp(node, Uint32Op(node));
1044 break; 1044 break;
1045 } 1045 }
1046 case IrOpcode::kNumberImul: {
1047 VisitBinop(node, UseInfo::TruncatingWord32(),
1048 UseInfo::TruncatingWord32(), MachineRepresentation::kWord32);
1049 if (lower()) NodeProperties::ChangeOp(node, Uint32Op(node));
1050 break;
1051 }
1046 case IrOpcode::kNumberCeil: { 1052 case IrOpcode::kNumberCeil: {
1047 VisitUnop(node, UseInfo::TruncatingFloat64(), 1053 VisitUnop(node, UseInfo::TruncatingFloat64(),
1048 MachineRepresentation::kFloat64); 1054 MachineRepresentation::kFloat64);
1049 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node)); 1055 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node));
1050 break; 1056 break;
1051 } 1057 }
1052 case IrOpcode::kNumberFloor: { 1058 case IrOpcode::kNumberFloor: {
1053 VisitUnop(node, UseInfo::TruncatingFloat64(), 1059 VisitUnop(node, UseInfo::TruncatingFloat64(),
1054 MachineRepresentation::kFloat64); 1060 MachineRepresentation::kFloat64);
1055 if (lower()) DeferReplacement(node, lowering->Float64Floor(node)); 1061 if (lower()) DeferReplacement(node, lowering->Float64Floor(node));
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
2460 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 2466 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
2461 Operator::kNoProperties); 2467 Operator::kNoProperties);
2462 to_number_operator_.set(common()->Call(desc)); 2468 to_number_operator_.set(common()->Call(desc));
2463 } 2469 }
2464 return to_number_operator_.get(); 2470 return to_number_operator_.get();
2465 } 2471 }
2466 2472
2467 } // namespace compiler 2473 } // namespace compiler
2468 } // namespace internal 2474 } // namespace internal
2469 } // namespace v8 2475 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/representation-change.cc ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698