Chromium Code Reviews| Index: src/hydrogen-instructions.h |
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
| index a006c44dd54705d90ddf4a041be3e2126b652257..9c16100a97010ed73021c55164566c607d126738 100644 |
| --- a/src/hydrogen-instructions.h |
| +++ b/src/hydrogen-instructions.h |
| @@ -407,6 +407,11 @@ class HType { |
| return ((type_ & kString) == kString); |
| } |
| + bool IsNonString() const { |
| + return (IsTaggedPrimitive() || IsSmi() || IsHeapNumber() || |
|
Toon Verwaest
2013/07/22 16:46:45
Nit: remove () around the expression.
|
| + IsBoolean() || IsJSArray()); |
| + } |
| + |
| bool IsBoolean() const { |
| ASSERT(type_ != kUninitialized); |
| return ((type_ & kBoolean) == kBoolean); |
| @@ -3350,7 +3355,8 @@ class HConstant: public HTemplateInstruction<0> { |
| virtual HType CalculateInferredType(); |
| bool IsInteger() { return handle()->IsSmi(); } |
| HConstant* CopyToRepresentation(Representation r, Zone* zone) const; |
| - HConstant* CopyToTruncatedInt32(Zone* zone) const; |
| + Maybe<HConstant*> CopyToTruncatedInt32(Zone* zone); |
| + Maybe<HConstant*> CopyToTruncatedNumber(Zone* zone); |
| bool HasInteger32Value() const { return has_int32_value_; } |
| int32_t Integer32Value() const { |
| ASSERT(HasInteger32Value()); |