diff options
Diffstat (limited to 'chromium/v8/src/compiler/types.h')
-rw-r--r-- | chromium/v8/src/compiler/types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/v8/src/compiler/types.h b/chromium/v8/src/compiler/types.h index b5692298ab0..a28a28c59e9 100644 --- a/chromium/v8/src/compiler/types.h +++ b/chromium/v8/src/compiler/types.h @@ -267,7 +267,7 @@ class V8_EXPORT_PRIVATE BitsetType { static bitset ExpandInternals(bitset bits); static const char* Name(bitset); - static void Print(std::ostream& os, bitset); // NOLINT + static void Print(std::ostream& os, bitset); #ifdef DEBUG static void Print(bitset); #endif @@ -413,6 +413,10 @@ class V8_EXPORT_PRIVATE Type { (Is(Type::PlainNumber()) && Min() == Max()); } + bool CanBeAsserted() const { + return IsRange() || (Is(Type::Integral32()) && !IsNone()); + } + const HeapConstantType* AsHeapConstant() const; const OtherNumberConstantType* AsOtherNumberConstant() const; const RangeType* AsRange() const; |