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

Issue 6735007: Add more details the --trace-deopt output (Closed)

Created:
9 years, 9 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add more details the --trace-deopt output R=ager@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=7387

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -9 lines) Patch
M src/arm/deoptimizer-arm.cc View 1 2 1 chunk +22 lines, -3 lines 0 comments Download
M src/ia32/deoptimizer-ia32.cc View 1 2 3 1 chunk +21 lines, -3 lines 0 comments Download
M src/x64/deoptimizer-x64.cc View 1 2 1 chunk +22 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Thygesen Gjesse
9 years, 9 months ago (2011-03-28 07:19:42 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/6735007/diff/2002/src/ia32/deoptimizer-ia32.cc File src/ia32/deoptimizer-ia32.cc (right): http://codereview.chromium.org/6735007/diff/2002/src/ia32/deoptimizer-ia32.cc#newcode596 src/ia32/deoptimizer-ia32.cc:596: PrintF("Deoptimizer::EntryGenerator::Generate()\n"); Remove?
9 years, 9 months ago (2011-03-28 07:43:11 UTC) #2
Kevin Millikin (Chromium)
Drive by suggestion. http://codereview.chromium.org/6735007/diff/2002/src/arm/deoptimizer-arm.cc File src/arm/deoptimizer-arm.cc (right): http://codereview.chromium.org/6735007/diff/2002/src/arm/deoptimizer-arm.cc#newcode295 src/arm/deoptimizer-arm.cc:295: switch (i) { Maybe it would ...
9 years, 9 months ago (2011-03-28 09:07:01 UTC) #3
Søren Thygesen Gjesse
http://codereview.chromium.org/6735007/diff/2002/src/arm/deoptimizer-arm.cc File src/arm/deoptimizer-arm.cc (right): http://codereview.chromium.org/6735007/diff/2002/src/arm/deoptimizer-arm.cc#newcode295 src/arm/deoptimizer-arm.cc:295: switch (i) { On 2011/03/28 09:07:01, Kevin Millikin wrote: ...
9 years, 9 months ago (2011-03-28 12:27:29 UTC) #4
Kevin Millikin (Chromium)
9 years, 9 months ago (2011-03-28 13:11:40 UTC) #5
http://codereview.chromium.org/6735007/diff/2002/src/arm/deoptimizer-arm.cc
File src/arm/deoptimizer-arm.cc (right):

http://codereview.chromium.org/6735007/diff/2002/src/arm/deoptimizer-arm.cc#n...
src/arm/deoptimizer-arm.cc:295: switch (i) {
On 2011/03/28 12:27:29, Søren Gjesse wrote:
> On 2011/03/28 09:07:01, Kevin Millikin wrote:
> > Maybe it would be nicer to use the constants in frames-arm.h.  This bit of
the
> > frame is uninterpreted by OSR, so it doesn't actually matter what "i"
> > corresponds to.  You could do something like:
> > 
> > for (int i = 1; ok && i >= -2; --i) {
> >   ...
> >   if (FLAG_trace_osr) {
> >     const char* name = "UNKNOWN";
> >     switch (i * kPointerSize) {
> >       case StandardFrameConstants::kCallerPCOffset:
> >         name = "caller's pc";
> >         break;
> >       case StandardFrameConstants::kCallerFPOffset:
> >         name = "caller's fp";
> >         break;
> >       case StandardFrameConstants::kContextOffset:
> >         name = "context";
> >         break;
> >       case JavaScriptFrameConstants::kFunctionOffset:
> >         name = "function";
> >         break;
> >     }
> 
> Good point, used
> 
>   for (int i =  StandardFrameConstants::kCallerPCOffset;
>        ok && i >=  StandardFrameConstants::kMarkerOffset;
>        i -= kPointerSize) {
> 
> for the looping.

Sounds good.

Powered by Google App Engine
This is Rietveld 408576698