Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Issue 22926025: Add --trace-hydrogen-filter flag. (Closed)

Created:
7 years, 4 months ago by Jakob Kummerow
Modified:
7 years, 3 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Add --trace-hydrogen-filter flag. The flag restricts hydrogen.cfg output to functions passing the filter, similar to what --hydrogen-filter does for optimization in general. This is useful for investigating large repro cases where tracing all functions would lead to an impractically large hydrogen.cfg file, but restricting optimization using --hydrogen-filter is undesirable (e.g. because it might cause the issue to no longer reproduce). R=mstarzinger@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=16302

Patch Set 1 #

Total comments: 2

Patch Set 2 : refactored #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -29 lines) Patch
M src/compiler.cc View 1 2 chunks +5 lines, -4 lines 1 comment Download
M src/flag-definitions.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.cc View 1 1 chunk +20 lines, -23 lines 0 comments Download
M src/runtime-profiler.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Jakob Kummerow
PTAL.
7 years, 4 months ago (2013-08-23 10:38:27 UTC) #1
Michael Starzinger
https://codereview.chromium.org/22926025/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/22926025/diff/1/src/objects.h#newcode8310 src/objects.h:8310: bool PassesFilter(const char* raw_filter); IMHO this should be a ...
7 years, 4 months ago (2013-08-23 11:18:13 UTC) #2
Jakob Kummerow
https://codereview.chromium.org/22926025/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/22926025/diff/1/src/objects.h#newcode8310 src/objects.h:8310: bool PassesFilter(const char* raw_filter); On 2013/08/23 11:18:13, Michael Starzinger ...
7 years, 4 months ago (2013-08-23 13:19:23 UTC) #3
Michael Starzinger
LGTM.
7 years, 4 months ago (2013-08-23 13:22:52 UTC) #4
Jakob Kummerow
Committed patchset #2 manually as r16302 (presubmit successful).
7 years, 4 months ago (2013-08-23 13:30:13 UTC) #5
Michael Starzinger
7 years, 3 months ago (2013-08-26 18:00:00 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/22926025/diff/6001/src/compiler.cc
File src/compiler.cc (right):

https://codereview.chromium.org/22926025/diff/6001/src/compiler.cc#newcode1264
src/compiler.cc:1264:
info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
This breaks --trace-hydrogen in debug mode with --enable-slow-asserts ...

#
# Fatal error in ../src/handles-inl.h, line 69
# CHECK(!FLAG_enable_slow_asserts ||
(IsDereferenceAllowed(INCLUDE_DEFERRED_CHECK))) failed
#

#14 0x083c5d16 in v8::internal::CompilationPhase::ShouldProduceTraceOutput
(this=0xffffca24) at ../src/compiler.cc:1268
#15 0x084db967 in v8::internal::HPhase::~HPhase (this=0xffffca24,
__in_chrg=<optimized out>) at ../src/hydrogen.cc:9849
#16 0x084bb15d in v8::internal::HGraph::AssignDominators (this=0x8abecc0) at
../src/hydrogen.cc:2448
#17 0x084bcd76 in v8::internal::HGraph::Optimize (this=0x8abecc0,
bailout_reason=0xffffcadc) at ../src/hydrogen.cc:2920
#18 0x083c26f2 in v8::internal::OptimizingCompiler::OptimizeGraph
(this=0xffffcb00) at ../src/compiler.cc:463
#19 0x083c1c80 in v8::internal::MakeCrankshaftCode (info=0xffffcc24) at
../src/compiler.cc:303

Powered by Google App Engine
This is Rietveld 408576698