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

Side by Side Diff: src/compiler/representation-change.h

Issue 2184513003: [turbofan] Adds handling of number or oddball type feedback to SpeculativeNumberShiftLeft. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_ 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_
6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_
7 7
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // Possibly deoptimizing conversions. 133 // Possibly deoptimizing conversions.
134 static UseInfo CheckedSigned32AsWord32() { 134 static UseInfo CheckedSigned32AsWord32() {
135 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), 135 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(),
136 TypeCheckKind::kSigned32); 136 TypeCheckKind::kSigned32);
137 } 137 }
138 static UseInfo CheckedNumberOrOddballAsFloat64() { 138 static UseInfo CheckedNumberOrOddballAsFloat64() {
139 return UseInfo(MachineRepresentation::kFloat64, Truncation::Any(), 139 return UseInfo(MachineRepresentation::kFloat64, Truncation::Any(),
140 TypeCheckKind::kNumberOrOddball); 140 TypeCheckKind::kNumberOrOddball);
141 } 141 }
142 static UseInfo CheckedNumberOrOddballAsWord32() {
143 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32(),
144 TypeCheckKind::kNumberOrOddball);
145 }
142 146
143 // Undetermined representation. 147 // Undetermined representation.
144 static UseInfo Any() { 148 static UseInfo Any() {
145 return UseInfo(MachineRepresentation::kNone, Truncation::Any()); 149 return UseInfo(MachineRepresentation::kNone, Truncation::Any());
146 } 150 }
147 static UseInfo AnyTruncatingToBool() { 151 static UseInfo AnyTruncatingToBool() {
148 return UseInfo(MachineRepresentation::kNone, Truncation::Bool()); 152 return UseInfo(MachineRepresentation::kNone, Truncation::Bool());
149 } 153 }
150 154
151 // Value not used. 155 // Value not used.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 Factory* factory() const { return isolate()->factory(); } 247 Factory* factory() const { return isolate()->factory(); }
244 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } 248 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); }
245 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 249 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
246 }; 250 };
247 251
248 } // namespace compiler 252 } // namespace compiler
249 } // namespace internal 253 } // namespace internal
250 } // namespace v8 254 } // namespace v8
251 255
252 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ 256 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698