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

Issue 1648263002: [debugger] correctly find function context. (Closed)

Created:
4 years, 10 months ago by Yang
Modified:
4 years, 10 months ago
Reviewers:
rossberg
CC:
v8-reviews_googlegroups.com, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[debugger] correctly find function context. In the debugger we are interested in getting the context for the current frame, which is usually a function context. To do that, we used to call Context::declaration_context, which may also return a block context. This is wrong and can lead to crashes. Instead, we now use a newly introduced Context::closure_context, which skips block contexts. This works fine for the debugger, since we have other means to find and materialize block contexts. R=rossberg@chromium.org BUG=chromium:582051 LOG=N Committed: https://crrev.com/835b038331b0fd4d351d9cb5ffbccef186b9919f Cr-Commit-Position: refs/heads/master@{#33627}

Patch Set 1 #

Patch Set 2 : skip ignition tests #

Total comments: 2

Patch Set 3 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -2 lines) Patch
M src/contexts.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/contexts.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M src/debug/debug-scopes.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/mjsunit.status View 1 1 chunk +1 line, -0 lines 0 comments Download
A test/mjsunit/regress/regress-crbug-582051.js View 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Yang
4 years, 10 months ago (2016-01-29 14:44:04 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648263002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648263002/1
4 years, 10 months ago (2016-01-29 14:44:23 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_dbg_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_dbg_ng/builds/690) v8_linux_dbg_ng_triggered on ...
4 years, 10 months ago (2016-01-29 15:05:46 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648263002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648263002/20001
4 years, 10 months ago (2016-01-29 15:08:20 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-29 15:35:51 UTC) #9
rossberg
LGTM modulo nit https://codereview.chromium.org/1648263002/diff/20001/src/contexts.h File src/contexts.h (right): https://codereview.chromium.org/1648263002/diff/20001/src/contexts.h#newcode454 src/contexts.h:454: Context* local_context(); Nit: Scope has an ...
4 years, 10 months ago (2016-01-29 19:46:25 UTC) #10
Yang
https://codereview.chromium.org/1648263002/diff/20001/src/contexts.h File src/contexts.h (right): https://codereview.chromium.org/1648263002/diff/20001/src/contexts.h#newcode454 src/contexts.h:454: Context* local_context(); On 2016/01/29 19:46:25, rossberg wrote: > Nit: ...
4 years, 10 months ago (2016-02-01 06:28:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648263002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648263002/40001
4 years, 10 months ago (2016-02-01 06:28:59 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-01 07:03:18 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-02-01 07:03:50 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/835b038331b0fd4d351d9cb5ffbccef186b9919f
Cr-Commit-Position: refs/heads/master@{#33627}

Powered by Google App Engine
This is Rietveld 408576698