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

Issue 11776007: Handle optimized code blocks in debugger stack trace (Closed)

Created:
7 years, 11 months ago by hausner
Modified:
7 years, 11 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Handle optimized code blocks in debugger stack trace Removed an old restriction that debugger activation frames are expected to be non-optimized code. Fixes bug 5944. Committed: https://code.google.com/p/dart/source/detail?r=16665

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -14 lines) Patch
M runtime/vm/debugger.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 5 chunks +27 lines, -14 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
hausner
7 years, 11 months ago (2013-01-04 22:15:26 UTC) #1
srdjan
LGTM https://codereview.chromium.org/11776007/diff/3001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/11776007/diff/3001/runtime/vm/debugger.cc#newcode166 runtime/vm/debugger.cc:166: function_ = DartCode().function(); Why cache the function at ...
7 years, 11 months ago (2013-01-04 22:50:15 UTC) #2
hausner
7 years, 11 months ago (2013-01-05 00:46:06 UTC) #3
Thanks. Made one addition: do not return any variables to the debugger for
frames that contain optimized code.

https://codereview.chromium.org/11776007/diff/3001/runtime/vm/debugger.cc
File runtime/vm/debugger.cc (right):

https://codereview.chromium.org/11776007/diff/3001/runtime/vm/debugger.cc#new...
runtime/vm/debugger.cc:166: function_ = DartCode().function();
On 2013/01/04 22:50:15, srdjan wrote:
> Why cache the function at all?

It is used in a few locations. May save a few handle allocations.
ActivationFrames are short-lived objects, they go away quickly, so caching this
is cheap.

Powered by Google App Engine
This is Rietveld 408576698