]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - yarr/YarrJIT.h
JavaScriptCore-7600.1.4.11.8.tar.gz
[apple/javascriptcore.git] / yarr / YarrJIT.h
index e7b222a8e6b349c8970ba4a136204bddf362b9d0..8ce1bf1b63c3ef031d84595444d74e2cc8936286 100644 (file)
@@ -108,7 +108,37 @@ public:
     }
 
 #if ENABLE(REGEXP_TRACING)
-    void *getAddr() { return m_ref.code().executableAddress(); }
+    void *get8BitMatchOnlyAddr()
+    {
+        if (!has8BitCodeMatchOnly())
+            return 0;
+
+        return m_matchOnly8.code().executableAddress();
+    }
+
+    void *get16BitMatchOnlyAddr()
+    {
+        if (!has16BitCodeMatchOnly())
+            return 0;
+
+        return m_matchOnly16.code().executableAddress();
+    }
+
+    void *get8BitMatchAddr()
+    {
+        if (!has8BitCode())
+            return 0;
+
+        return m_ref8.code().executableAddress();
+    }
+
+    void *get16BitMatchAddr()
+    {
+        if (!has16BitCode())
+            return 0;
+
+        return m_ref16.code().executableAddress();
+    }
 #endif
 
     void clear()