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

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

Issue 1982223002: Version 5.1.281.38 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: 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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 } 955 }
956 case IrOpcode::kNumberShiftRightLogical: { 956 case IrOpcode::kNumberShiftRightLogical: {
957 Type* rhs_type = GetUpperBound(node->InputAt(1)); 957 Type* rhs_type = GetUpperBound(node->InputAt(1));
958 VisitBinop(node, UseInfo::TruncatingWord32(), 958 VisitBinop(node, UseInfo::TruncatingWord32(),
959 UseInfo::TruncatingWord32(), MachineRepresentation::kWord32); 959 UseInfo::TruncatingWord32(), MachineRepresentation::kWord32);
960 if (lower()) { 960 if (lower()) {
961 lowering->DoShift(node, lowering->machine()->Word32Shr(), rhs_type); 961 lowering->DoShift(node, lowering->machine()->Word32Shr(), rhs_type);
962 } 962 }
963 break; 963 break;
964 } 964 }
965 case IrOpcode::kNumberImul: {
966 VisitBinop(node, UseInfo::TruncatingWord32(),
967 UseInfo::TruncatingWord32(), MachineRepresentation::kWord32);
968 if (lower()) NodeProperties::ChangeOp(node, Uint32Op(node));
969 break;
970 }
965 case IrOpcode::kNumberClz32: { 971 case IrOpcode::kNumberClz32: {
966 VisitUnop(node, UseInfo::TruncatingWord32(), 972 VisitUnop(node, UseInfo::TruncatingWord32(),
967 MachineRepresentation::kWord32); 973 MachineRepresentation::kWord32);
968 if (lower()) NodeProperties::ChangeOp(node, Uint32Op(node)); 974 if (lower()) NodeProperties::ChangeOp(node, Uint32Op(node));
969 break; 975 break;
970 } 976 }
971 case IrOpcode::kNumberCeil: { 977 case IrOpcode::kNumberCeil: {
972 VisitUnop(node, UseInfo::Float64(), MachineRepresentation::kFloat64); 978 VisitUnop(node, UseInfo::Float64(), MachineRepresentation::kFloat64);
973 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node)); 979 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node));
974 break; 980 break;
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2190 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) { 2196 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) {
2191 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs, 2197 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs,
2192 jsgraph()->Int32Constant(0x1f))); 2198 jsgraph()->Int32Constant(0x1f)));
2193 } 2199 }
2194 NodeProperties::ChangeOp(node, op); 2200 NodeProperties::ChangeOp(node, op);
2195 } 2201 }
2196 2202
2197 } // namespace compiler 2203 } // namespace compiler
2198 } // namespace internal 2204 } // namespace internal
2199 } // namespace v8 2205 } // 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