Introduce regexp=interpreted to GYP to enable building with interpreted regexp engine.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Jun 2012 08:01:05 +0000 (08:01 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Jun 2012 08:01:05 +0000 (08:01 +0000)
This option existis for scons. It does not compile yet since there are some broken stuff yet to be fixed.

R=jkummerow@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10544138

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11805 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

Makefile
build/common.gypi

index 0d825c079508b439f35a4301ab7c4476d5962d27..9a17d6baa585f1d261ebd2257d40310f68ca98eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,10 @@ endif
 ifeq ($(strictaliasing), off)
   GYPFLAGS += -Dv8_no_strict_aliasing=1
 endif
+# regexp=interpreted
+ifeq ($(regexp), interpreted)
+  GYPFLAGS += -Dv8_interpreted_regexp=1
+endif
 
 # ----------------- available targets: --------------------
 # - "dependencies": pulls in external dependencies (currently: GYP)
index 7f084b8c1dbbd5b64b8e67a1b8150fbfccfba27b..98cc8cb3b59d7e3b21edd9f5bc8132938153fa31 100644 (file)
 
     # For a shared library build, results in "libv8-<(soname_version).so".
     'soname_version%': '',
+    
+    # Interpreted regexp engine exists as platform-independent alternative
+    # based where the regular expression is compiled to a bytecode.
+    'v8_interpreted_regexp%': 0,
   },
   'target_defaults': {
     'conditions': [
       ['v8_enable_gdbjit==1', {
         'defines': ['ENABLE_GDB_JIT_INTERFACE',],
       }],
+      ['v8_interpreted_regexp==1', {
+        'defines': ['V8_INTERPRETED_REGEXP',],
+      }],
       ['v8_target_arch=="arm"', {
         'defines': [
           'V8_TARGET_ARCH_ARM',