diff options
Diffstat (limited to 'Source/JavaScriptCore/bytecode/SpeculatedType.h')
-rw-r--r-- | Source/JavaScriptCore/bytecode/SpeculatedType.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/bytecode/SpeculatedType.h b/Source/JavaScriptCore/bytecode/SpeculatedType.h index 91fb4fe4d..4ecc53776 100644 --- a/Source/JavaScriptCore/bytecode/SpeculatedType.h +++ b/Source/JavaScriptCore/bytecode/SpeculatedType.h @@ -243,6 +243,11 @@ inline bool isOtherSpeculation(SpeculatedType value) return value == SpecOther; } +inline bool isOtherOrEmptySpeculation(SpeculatedType value) +{ + return !value || value == SpecOther; +} + inline bool isEmptySpeculation(SpeculatedType value) { return value == SpecEmpty; |