Chromium Code Reviews| Index: src/hydrogen-instructions.h |
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
| index a006c44dd54705d90ddf4a041be3e2126b652257..1d517c400dfa12ec870f1a8a3a8d7b75d749b305 100644 |
| --- a/src/hydrogen-instructions.h |
| +++ b/src/hydrogen-instructions.h |
| @@ -364,6 +364,9 @@ class HType { |
| static HType JSObject() { return HType(kJSObject); } |
| static HType Uninitialized() { return HType(kUninitialized); } |
| + Handle< ::v8::internal::Type> intersect( |
|
Jakob Kummerow
2013/07/18 11:56:15
Wouldn't it be easier to rename HType::Type to HTy
|
| + Handle< ::v8::internal::Type> type, Isolate* isolate); |
| + |
| // Return the weakest (least precise) common type. |
| HType Combine(HType other) { |
| return HType(static_cast<Type>(type_ & other.type_)); |
| @@ -407,6 +410,14 @@ class HType { |
| return ((type_ & kString) == kString); |
| } |
| + bool IsNoString() const { |
| + if (IsTaggedPrimitive() || IsSmi() || IsHeapNumber() || |
| + IsBoolean() || IsJSArray()) { |
| + return true; |
| + } |
| + return false; |
| + } |
| + |
| bool IsBoolean() const { |
| ASSERT(type_ != kUninitialized); |
| return ((type_ & kBoolean) == kBoolean); |