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

Issue 290093005: Introduce a separate event for CodeDisableOpt (Closed)

Created:
6 years, 7 months ago by alph
Modified:
6 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Introduce a separate event for CodeDeopt The reuse of CodeCreateEvent for deopt events caused a CodeCreateEvent fired twice for a code object. When the event was processed for the first time it seized the no-fp-ranges from code object, so the second event had no ranges info leaving code entry without them. As a result when a cpu profile sample falls into the region it missed the 2nd stack frame. LOG=N BUG= R=bmeurer@chromium.org, loislo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21418

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments. #

Total comments: 2

Patch Set 3 : Fixed logger #

Patch Set 4 : removed extra line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -3 lines) Patch
M src/cpu-profiler.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
M src/cpu-profiler.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/cpu-profiler-inl.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/log.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M src/log.cc View 1 2 3 5 chunks +22 lines, -0 lines 0 comments Download
M src/objects.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/serialize.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
alph
6 years, 7 months ago (2014-05-19 17:47:02 UTC) #1
yurys
Don't you need to update tickprocessor.js and profviz code? https://codereview.chromium.org/290093005/diff/1/src/log.cc File src/log.cc (right): https://codereview.chromium.org/290093005/diff/1/src/log.cc#newcode1454 src/log.cc:1454: ...
6 years, 7 months ago (2014-05-20 07:59:01 UTC) #2
loislo
https://codereview.chromium.org/290093005/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/290093005/diff/1/src/objects.cc#newcode10690 src/objects.cc:10690: PROFILE(GetIsolate(), CodeDeoptEvent(code(), this)); I'd say that the event named ...
6 years, 7 months ago (2014-05-20 08:14:04 UTC) #3
loislo
https://codereview.chromium.org/290093005/diff/1/src/log.cc File src/log.cc (right): https://codereview.chromium.org/290093005/diff/1/src/log.cc#newcode1454 src/log.cc:1454: void Logger::CodeDeoptEvent(Code* code, On 2014/05/20 07:59:02, yurys wrote: > ...
6 years, 7 months ago (2014-05-20 08:16:17 UTC) #4
alph
On 2014/05/20 07:59:01, yurys wrote: > Don't you need to update tickprocessor.js and profviz code? ...
6 years, 7 months ago (2014-05-21 13:55:26 UTC) #5
alph
https://codereview.chromium.org/290093005/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/290093005/diff/1/src/objects.cc#newcode10690 src/objects.cc:10690: PROFILE(GetIsolate(), CodeDeoptEvent(code(), this)); On 2014/05/20 08:14:05, loislo wrote: > ...
6 years, 7 months ago (2014-05-21 13:55:32 UTC) #6
yurys
https://codereview.chromium.org/290093005/diff/20001/src/log.cc File src/log.cc (right): https://codereview.chromium.org/290093005/diff/20001/src/log.cc#newcode1465 src/log.cc:1465: msg.Append("\"%s\"\n", name.get()); This looks odd, you are logging just ...
6 years, 7 months ago (2014-05-21 14:13:30 UTC) #7
alph
Benedict, could you please take a look. https://codereview.chromium.org/290093005/diff/20001/src/log.cc File src/log.cc (right): https://codereview.chromium.org/290093005/diff/20001/src/log.cc#newcode1465 src/log.cc:1465: msg.Append("\"%s\"\n", name.get()); ...
6 years, 7 months ago (2014-05-21 15:06:47 UTC) #8
loislo
lgtm
6 years, 7 months ago (2014-05-21 19:04:36 UTC) #9
loislo
lgtm lgtm
6 years, 7 months ago (2014-05-21 19:04:38 UTC) #10
Benedikt Meurer
LGTM
6 years, 7 months ago (2014-05-22 05:27:13 UTC) #11
alph
6 years, 7 months ago (2014-05-22 05:36:38 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 manually as r21418 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698