Reviewers: Yang,

Message:
PTAQL

Description:
Add build system infrastructure for ENABLE_EXTRA_CHECKS flag (not used yet)


Please review this at https://chromiumcodereview.appspot.com/10905093/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M Makefile
  M build/common.gypi


Index: Makefile
diff --git a/Makefile b/Makefile
index 99a220d3106026594956360d0ecb8ced3fde049d..8db3193860cdc8407ae7668fc632c783507ced67 100644
--- a/Makefile
+++ b/Makefile
@@ -62,6 +62,13 @@ endif
 ifeq ($(snapshot), off)
   GYPFLAGS += -Dv8_use_snapshot='false'
 endif
+# extrachecks=on/off
+ifeq ($(extrachecks), on)
+  GYPFLAGS += -Dv8_enable_extra_checks=1
+endif
+ifeq ($(extrachecks), off)
+  GYPFLAGS += -Dv8_enable_extra_checks=0
+endif
 # gdbjit=on
 ifeq ($(gdbjit), on)
   GYPFLAGS += -Dv8_enable_gdbjit=1
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index b8cd11098f9ad21b3988465b4cc3770f251a7543..96055d22f60b20fdf22c7a83ddd9b116f7f2fdfc 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -70,6 +70,9 @@

     'v8_enable_disassembler%': 0,

+    # Enable extra checks in API functions and other strategic places.
+    'v8_enable_extra_checks%' 1,
+
     'v8_object_print%': 0,

     'v8_enable_gdbjit%': 0,
@@ -109,6 +112,9 @@
       ['v8_enable_disassembler==1', {
         'defines': ['ENABLE_DISASSEMBLER',],
       }],
+      ['v8_enable_extra_checks==1', {
+        'defines': ['ENABLE_EXTRA_CHECKS',],
+      }],
       ['v8_object_print==1', {
         'defines': ['OBJECT_PRINT',],
       }],


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to