| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
| 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
| 7 | 7 |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 | 10 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 bool IsMostGeneric() const { | 230 bool IsMostGeneric() const { |
| 231 return lower_ == kMinInt && upper_ == kMaxInt && CanBeMinusZero(); | 231 return lower_ == kMinInt && upper_ == kMaxInt && CanBeMinusZero(); |
| 232 } | 232 } |
| 233 bool IsInSmiRange() const { | 233 bool IsInSmiRange() const { |
| 234 return lower_ >= Smi::kMinValue && upper_ <= Smi::kMaxValue; | 234 return lower_ >= Smi::kMinValue && upper_ <= Smi::kMaxValue; |
| 235 } | 235 } |
| 236 void ClampToSmi() { | 236 void ClampToSmi() { |
| 237 lower_ = Max(lower_, Smi::kMinValue); | 237 lower_ = Max(lower_, Smi::kMinValue); |
| 238 upper_ = Min(upper_, Smi::kMaxValue); | 238 upper_ = Min(upper_, Smi::kMaxValue); |
| 239 } | 239 } |
| 240 void Clear(); |
| 240 void KeepOrder(); | 241 void KeepOrder(); |
| 241 #ifdef DEBUG | 242 #ifdef DEBUG |
| 242 void Verify() const; | 243 void Verify() const; |
| 243 #endif | 244 #endif |
| 244 | 245 |
| 245 void StackUpon(Range* other) { | 246 void StackUpon(Range* other) { |
| 246 Intersect(other); | 247 Intersect(other); |
| 247 next_ = other; | 248 next_ = other; |
| 248 } | 249 } |
| 249 | 250 |
| (...skipping 6876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7126 bool IsDeletable() const override { return true; } | 7127 bool IsDeletable() const override { return true; } |
| 7127 }; | 7128 }; |
| 7128 | 7129 |
| 7129 #undef DECLARE_INSTRUCTION | 7130 #undef DECLARE_INSTRUCTION |
| 7130 #undef DECLARE_CONCRETE_INSTRUCTION | 7131 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7131 | 7132 |
| 7132 } // namespace internal | 7133 } // namespace internal |
| 7133 } // namespace v8 | 7134 } // namespace v8 |
| 7134 | 7135 |
| 7135 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 7136 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |