diff options
Diffstat (limited to 'JavaScriptCore/yarr/RegexJIT.h')
-rw-r--r-- | JavaScriptCore/yarr/RegexJIT.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/JavaScriptCore/yarr/RegexJIT.h b/JavaScriptCore/yarr/RegexJIT.h index 935b9a3..7f9c16e 100644 --- a/JavaScriptCore/yarr/RegexJIT.h +++ b/JavaScriptCore/yarr/RegexJIT.h @@ -26,8 +26,6 @@ #ifndef RegexJIT_h #define RegexJIT_h -#include <wtf/Platform.h> - #if ENABLE(YARR_JIT) #include "MacroAssembler.h" @@ -68,7 +66,7 @@ public: JSRegExp* getFallback() { return m_fallback; } void setFallback(JSRegExp* fallback) { m_fallback = fallback; } - bool operator!() { return !m_ref.m_code.executableAddress(); } + bool operator!() { return (!m_ref.m_code.executableAddress() && !m_fallback); } void set(MacroAssembler::CodeRef ref) { m_ref = ref; } int execute(const UChar* input, unsigned start, unsigned length, int* output) |