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

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

Issue 2407153007: [turbofan] Remove Float32 truncation. (Closed)
Patch Set: Created 4 years, 2 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
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 UseInfo TruncatingUseInfoFromRepresentation(MachineRepresentation rep) { 123 UseInfo TruncatingUseInfoFromRepresentation(MachineRepresentation rep) {
124 switch (rep) { 124 switch (rep) {
125 case MachineRepresentation::kTaggedSigned: 125 case MachineRepresentation::kTaggedSigned:
126 case MachineRepresentation::kTaggedPointer: 126 case MachineRepresentation::kTaggedPointer:
127 case MachineRepresentation::kTagged: 127 case MachineRepresentation::kTagged:
128 return UseInfo::AnyTagged(); 128 return UseInfo::AnyTagged();
129 case MachineRepresentation::kFloat64: 129 case MachineRepresentation::kFloat64:
130 return UseInfo::TruncatingFloat64(); 130 return UseInfo::TruncatingFloat64();
131 case MachineRepresentation::kFloat32: 131 case MachineRepresentation::kFloat32:
132 return UseInfo::TruncatingFloat32(); 132 return UseInfo::Float32();
133 case MachineRepresentation::kWord64: 133 case MachineRepresentation::kWord64:
134 return UseInfo::TruncatingWord64(); 134 return UseInfo::TruncatingWord64();
135 case MachineRepresentation::kWord8: 135 case MachineRepresentation::kWord8:
136 case MachineRepresentation::kWord16: 136 case MachineRepresentation::kWord16:
137 case MachineRepresentation::kWord32: 137 case MachineRepresentation::kWord32:
138 return UseInfo::TruncatingWord32(); 138 return UseInfo::TruncatingWord32();
139 case MachineRepresentation::kBit: 139 case MachineRepresentation::kBit:
140 return UseInfo::Bool(); 140 return UseInfo::Bool();
141 case MachineRepresentation::kSimd128: // Fall through. 141 case MachineRepresentation::kSimd128: // Fall through.
142 case MachineRepresentation::kNone: 142 case MachineRepresentation::kNone:
(...skipping 3107 matching lines...) Expand 10 before | Expand all | Expand 10 after
3250 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3250 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3251 Operator::kNoProperties); 3251 Operator::kNoProperties);
3252 to_number_operator_.set(common()->Call(desc)); 3252 to_number_operator_.set(common()->Call(desc));
3253 } 3253 }
3254 return to_number_operator_.get(); 3254 return to_number_operator_.get();
3255 } 3255 }
3256 3256
3257 } // namespace compiler 3257 } // namespace compiler
3258 } // namespace internal 3258 } // namespace internal
3259 } // namespace v8 3259 } // namespace v8
OLDNEW
« src/compiler/representation-change.h ('K') | « src/compiler/representation-change.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698