]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - yarr/RegexJIT.h
JavaScriptCore-621.1.tar.gz
[apple/javascriptcore.git] / yarr / RegexJIT.h
index 935b9a3a18c18e51d1dbb71553d540bb97c99fd3..7f9c16e09dfcce0e89ac7a78228af266df6ec1b0 100644 (file)
@@ -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)