Allow redirecting disassembly and deoptimization traces into a file.
authorvegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 7 Nov 2013 16:35:27 +0000 (16:35 +0000)
committervegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 7 Nov 2013 16:35:27 +0000 (16:35 +0000)
commitadae3f77ecc7a8c8109486d44f06dce4dd97b488
treef816f68fb2f6310bd56aa78edd5478177d38f2c0
parentd538ff90b53b7672f089e467d0db1eb1c114909c
Allow redirecting disassembly and deoptimization traces into a file.

This is controlled by two flags:

--redirect_code_traces
--redirect_code_traces_to=<filename>

When redirection is enabled but --redirect_code_traces_to is not specified traces are written to a file code-<pid>-<isolate>.asm. This mangling scheme matches hydrogen.cfg and allows easy discovery of compilation artifacts in a multi-V8 environment (e.g. when compilation is traced from inside Chromium).

D8 defines --redirect_code_traces_to=code.asm similar to hydrogen.cfg redirection.

BUG=
R=danno@chromium.org

Review URL: https://codereview.chromium.org/43273004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17571 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
17 files changed:
src/assembler.cc
src/builtins.cc
src/code-stubs.cc
src/codegen.cc
src/d8.cc
src/deoptimizer.cc
src/deoptimizer.h
src/flag-definitions.h
src/isolate.cc
src/isolate.h
src/jsregexp.cc
src/objects-printer.cc
src/objects.cc
src/objects.h
src/safepoint-table.cc
src/safepoint-table.h
src/stub-cache.cc