Reviewers: Søren Gjesse,
Message:
Søren, can you have a look at this change, please?
The bulk of this change is to split out object printing functions under the
OBJECT_PRINT #define symbol instead of DEBUG. This allows us to enable this
functionality in release builds if desired. Ideally, these OBJECT_PRINT
functions (which are staggered through out objects-debug.cc) can be
re-factored
out into an objects-printer.cc, but I left them where they are to make it
easier
to diff and show that I didn't change any code. The refactoring into a
separate
file (if desired) can be applied in a subsequent patch.
The other bulk of the change is to allow re-directing of the print output
to a
specified file instead of being hardwired to stdout. This is needed for
other
functionality that I'll submit in a subsequent patch.
I've updated the files for platform-nullos.cc and platform-win32.cc as
well, but
I'm only able to test the changes on macos and linux. This set of mods have
been built successfully with scons for debug mode, release more, and release
more + objectprint=on.
Thanks.
Description:
1. Added support for object printing for release mode using the
objectprint=on (defaults to off) option (which defines OBJECT_PRINT).
2. Added the ability to print objects to a specified file instead of
just stdout.
3. Added a use_verbose_printer flag (true by default) to allow some
object printouts to be less verbose when the flag is false.
4. Fixed a bug in VSNPrintF() where it can potentially write into an
empty char vector.
Please review this at http://codereview.chromium.org/5998001/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M SConstruct
M src/SConscript
M src/assembler.h
M src/assembler.cc
M src/deoptimizer.h
M src/deoptimizer.cc
M src/flag-definitions.h
M src/objects-debug.cc
M src/objects.h
M src/objects.cc
M src/platform-nullos.cc
M src/platform-posix.cc
M src/platform-win32.cc
M src/platform.h
M src/property.h
M src/property.cc
M src/string-stream.h
M src/string-stream.cc
M src/utils.cc
M src/v8utils.h
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev