Reviewers: Jakob,

Message:
PTAL

Description:
Allow gyp build to turn on OBJECT_PRINT

BUG=none
TEST=none


Please review this at http://codereview.chromium.org/7970015/

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 ab4fe646875a077e67db8cf0aa108977c46e9055..ebf68312b56830fc091faa551b71f75bf70c58c4 100644
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,10 @@ endif
 ifeq ($(disassembler), on)
   GYPFLAGS += -Dv8_enable_disassembler=1
 endif
+# objectprint=on
+ifeq ($(objectprint), on)
+  GYPFLAGS += -Dv8_object_print=1
+endif
 # snapshot=off
 ifeq ($(snapshot), off)
   GYPFLAGS += -Dv8_use_snapshot='false'
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 34508913fedd2d8b7f3482b91c25821c311a6507..09ecd3623b219d76112ce43fa7e0fcbfecbe2131 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -60,6 +60,8 @@

     'v8_enable_disassembler%': 0,

+    'v8_object_print%': 0,
+
     'v8_enable_gdbjit%': 0,

     # Enable profiling support. Only required on Windows.
@@ -84,6 +86,9 @@
       ['v8_enable_disassembler==1', {
         'defines': ['ENABLE_DISASSEMBLER',],
       }],
+      ['v8_object_print==1', {
+        'defines': ['OBJECT_PRINT',],
+      }],
       ['v8_enable_gdbjit==1', {
         'defines': ['ENABLE_GDB_JIT_INTERFACE',],
       }],


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

Reply via email to