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

Issue 113698: Return empty handle from GetEventContext for ScriptCollected events (Closed)

Created:
11 years, 7 months ago by yurys
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

For ScriptCollected events current context may be null. Message.GetEventContext will return an empty handle in such cases. Committed: http://code.google.com/p/v8/source/detail?r=2024

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

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

Messages

Total messages: 3 (0 generated)
yurys
11 years, 7 months ago (2009-05-21 09:56:01 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/113698/diff/9/1007 File src/debug.cc (right): http://codereview.chromium.org/113698/diff/9/1007#newcode2403 Line 2403: // Top::context() may have been NULL when ...
11 years, 7 months ago (2009-05-21 13:43:38 UTC) #2
yurys
11 years, 7 months ago (2009-05-21 14:16:54 UTC) #3
http://codereview.chromium.org/113698/diff/9/1007
File src/debug.cc (right):

http://codereview.chromium.org/113698/diff/9/1007#newcode2403
Line 2403: // Top::context() may have been NULL when the event occured.
On 2009/05/21 13:43:38, Søren Gjesse wrote:
> Please add "script collected" before event in comment.

Done.

http://codereview.chromium.org/113698/diff/9/1006
File test/cctest/test-debug.cc (right):

http://codereview.chromium.org/113698/diff/9/1006#newcode4849
Line 4849: // Count the number of breaks.
On 2009/05/21 13:43:38, Søren Gjesse wrote:
> breaks -> scripts collected

Done.

http://codereview.chromium.org/113698/diff/9/1006#newcode4884
Line 4884: Heap::CollectAllGarbageIfContextDisposed();
On 2009/05/21 13:43:38, Søren Gjesse wrote:
> Maybe use Heap::CollectAllGarbage(), instad of
> Heap::CollectAllGarbageIfContextDisposed() to avoid depending on the
heuristics
> of the latter.

Done.

http://codereview.chromium.org/113698/diff/9/1006#newcode4889
Line 4889: // Should SetMessageHandler2 cause execution of
Debugger::UnloadDebugger like
On 2009/05/21 13:43:38, Søren Gjesse wrote:
> It should, but please remove this comment and open a bug instead.

Done.

Powered by Google App Engine
This is Rietveld 408576698