From 198bcbaa13353ed16150de47082bbba88e60f2ee Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Thu, 20 Jan 2011 08:38:01 +0000 Subject: [PATCH] Adding build script changes to support LiveObjectList functionality. Patch by Mark Lam from Hewlett-Packard Development Company, LP Review URL: http://codereview.chromium.org/6364002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6414 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- SConstruct | 14 ++++++++++++++ src/SConscript | 1 + tools/gyp/v8.gyp | 14 ++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/SConstruct b/SConstruct index e84db84..985e239 100644 --- a/SConstruct +++ b/SConstruct @@ -127,6 +127,10 @@ LIBRARY_FLAGS = { }, 'inspector:on': { 'CPPDEFINES': ['INSPECTOR'], + }, + 'liveobjectlist:on': { + 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR', + 'LIVE_OBJECT_LIST', 'OBJECT_PRINT'], } }, 'gcc': { @@ -752,6 +756,11 @@ SIMPLE_OPTIONS = { 'default': 'off', 'help': 'enable inspector features' }, + 'liveobjectlist': { + 'values': ['on', 'off'], + 'default': 'off', + 'help': 'enable live object list features in the debugger' + }, 'soname': { 'values': ['on', 'off'], 'default': 'off', @@ -1009,6 +1018,11 @@ def PostprocessOptions(options, os): # Print a warning if native regexp is specified for mips print "Warning: forcing regexp to interpreted for mips" options['regexp'] = 'interpreted' + if options['liveobjectlist'] == 'on': + if (options['debuggersupport'] != 'on') or (options['mode'] == 'release'): + # Print a warning that liveobjectlist will implicitly enable the debugger + print "Warning: forcing debuggersupport on for liveobjectlist" + options['debuggersupport'] = 'on' def ParseEnvOverrides(arg, imports): diff --git a/src/SConscript b/src/SConscript index 708edef..f3b9d43 100755 --- a/src/SConscript +++ b/src/SConscript @@ -89,6 +89,7 @@ SOURCES = { lithium-allocator.cc lithium.cc liveedit.cc + liveobjectlist.cc log-utils.cc log.cc mark-compact.cc diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp index 024ecd7..fe45266 100644 --- a/tools/gyp/v8.gyp +++ b/tools/gyp/v8.gyp @@ -32,6 +32,7 @@ 'gcc_version%': 'unknown', 'v8_target_arch%': '<(target_arch)', 'v8_use_snapshot%': 'true', + 'v8_use_liveobjectlist%': 'false', }, 'conditions': [ ['use_system_v8==0', { @@ -66,6 +67,14 @@ }], ], }], + ['v8_use_liveobjectlist=="true"', { + 'defines': [ + 'ENABLE_DEBUGGER_SUPPORT', + 'INSPECTOR', + 'OBJECT_PRINT', + 'LIVEOBJECTLIST', + ], + }], ], 'configurations': { 'Debug': { @@ -417,6 +426,8 @@ '../../src/ic-inl.h', '../../src/ic.cc', '../../src/ic.h', + '../../src/inspector.cc', + '../../src/inspector.h', '../../src/interpreter-irregexp.cc', '../../src/interpreter-irregexp.h', '../../src/jump-target-inl.h', @@ -432,6 +443,9 @@ '../../src/lithium-allocator.h', '../../src/liveedit.cc', '../../src/liveedit.h', + '../../src/liveobjectlist-inl.h', + '../../src/liveobjectlist.cc', + '../../src/liveobjectlist.h', '../../src/log-inl.h', '../../src/log-utils.cc', '../../src/log-utils.h', -- 2.7.4