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

Issue 2782783003: [inspector] deoptimize function in Debug::PrepareStepIn

Created:
3 years, 8 months ago by kozy
Modified:
3 years, 8 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] deoptimize function in Debug::PrepareStepIn We should deoptimize function to get DebugOnFunctionCall callbacks if current function is blackboxed. BUG=v8:6171 R=yangguo@chromium.org

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 1

Patch Set 3 : ensure compilation before deoptimization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M src/debug/debug.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M test/inspector/inspector.status View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
kozy
Yang, please take a look. I found that Deoptimizer::DeoptimizeFunction is not enough and we need ...
3 years, 8 months ago (2017-03-29 16:41:21 UTC) #1
Yang
https://codereview.chromium.org/2782783003/diff/20001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2782783003/diff/20001/src/debug/debug.cc#newcode900 src/debug/debug.cc:900: EnsureDebugInfo(shared); We don't want a DebugInfo, since we are ...
3 years, 8 months ago (2017-03-31 07:20:43 UTC) #3
kozy
On 2017/03/31 07:20:43, Yang wrote: > https://codereview.chromium.org/2782783003/diff/20001/src/debug/debug.cc > File src/debug/debug.cc (right): > > https://codereview.chromium.org/2782783003/diff/20001/src/debug/debug.cc#newcode900 > ...
3 years, 8 months ago (2017-03-31 07:51:29 UTC) #4
Yang
On 2017/03/31 07:51:29, kozy wrote: > On 2017/03/31 07:20:43, Yang wrote: > > https://codereview.chromium.org/2782783003/diff/20001/src/debug/debug.cc > ...
3 years, 8 months ago (2017-03-31 08:06:40 UTC) #5
kozy
On 2017/03/31 08:06:40, Yang wrote: > On 2017/03/31 07:51:29, kozy wrote: > > On 2017/03/31 ...
3 years, 8 months ago (2017-03-31 16:27:43 UTC) #6
Yang
On 2017/03/31 16:27:43, kozy wrote: > On 2017/03/31 08:06:40, Yang wrote: > > On 2017/03/31 ...
3 years, 8 months ago (2017-03-31 16:39:26 UTC) #9
Yang
On 2017/03/31 07:51:29, kozy wrote: > On 2017/03/31 07:20:43, Yang wrote: > > https://codereview.chromium.org/2782783003/diff/20001/src/debug/debug.cc > ...
3 years, 8 months ago (2017-03-31 16:42:25 UTC) #10
Yang
3 years, 8 months ago (2017-03-31 16:51:49 UTC) #11
On 2017/03/31 16:42:25, Yang wrote:
> On 2017/03/31 07:51:29, kozy wrote:
> > On 2017/03/31 07:20:43, Yang wrote:
> > > https://codereview.chromium.org/2782783003/diff/20001/src/debug/debug.cc
> > > File src/debug/debug.cc (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/2782783003/diff/20001/src/debug/debug.cc#newc...
> > > src/debug/debug.cc:900: EnsureDebugInfo(shared);
> > > We don't want a DebugInfo, since we are not going to set break points in
> here.
> > > 
> > > What you want is
> > >   Deoptimizer::DeoptimizeFunction(frame->function());
> > > 
> > > See Debug::PrepareStepOnThrow for example.
> > 
> > I tried and it didn't solve an issue. It looks like with always-opt we super
> > aggressively inline functions and deoptimize function does not process all
> > inlining correctly. I think that heap iteration in Prepare function call
> > actually resolve an issue.
> > But during solving another issue I find that some times when we inline
> function
> > to top level function we don't mark function correctly as inlined - it's
> reason
> > of crashing console.profile tests. I'll investigate this more.

let's simply disable always-opt for this test.

Powered by Google App Engine
This is Rietveld 408576698