aboutsummaryrefslogtreecommitdiffstats
path: root/regexec.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-22 16:58:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-22 16:58:22 +0000
commit7fdd289959b7843201d31b3d596d8a907c710d5a (patch)
treefc009b2e69e9f52ee8f554398fe2b1554cf23af0 /regexec.c
parentaca1eeec29e3d10d4f9fc97ac7831b7bef79b8e9 (diff)
downloadruby-7fdd289959b7843201d31b3d596d8a907c710d5a.tar.gz
regexec.c: enable direct threaded VM
* regexec.c (USE_DIRECT_THREADED_VM): enable direct threaded VM by the default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/regexec.c b/regexec.c
index 412e4a1f47..e6a89cac56 100644
--- a/regexec.c
+++ b/regexec.c
@@ -32,6 +32,10 @@
/* #define USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE */
+#ifndef USE_DIRECT_THREADED_VM
+#define USE_DIRECT_THREADED_VM 1
+#endif
+
#ifdef USE_CRNL_AS_LINE_TERMINATOR
#define ONIGENC_IS_MBC_CRNL(enc,p,end) \
(ONIGENC_MBC_TO_CODE(enc,p,end) == 13 && \