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

Issue 11971015: Skip stack trace formatting in case the global object is already dead. (Closed)

Created:
7 years, 11 months ago by Yang
Modified:
7 years, 5 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Skip stack trace formatting in case the global object is already dead. This fixes assertion failures when running webkit layout tests. Also fixes issue 2500. R=mstarzinger@chromium.org BUG=v8:2500

Patch Set 1 #

Total comments: 1

Patch Set 2 : address comments and fix v8:2500 #

Patch Set 3 : temporarily disable #

Patch Set 4 : change one little thing... #

Patch Set 5 : #

Patch Set 6 : removing stray edit #

Patch Set 7 : fix leaks in the setter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -56 lines) Patch
M src/api.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/handles.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/handles.cc View 1 2 3 5 chunks +30 lines, -25 lines 0 comments Download
M src/heap.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/heap.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M src/json-stringifier.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/messages.js View 1 2 3 4 5 6 4 chunks +10 lines, -6 lines 0 comments Download
M src/runtime.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 8 chunks +27 lines, -13 lines 0 comments Download
M test/cctest/cctest.status View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M test/cctest/test-heap.cc View 1 1 chunk +25 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M test/mjsunit/stack-traces-overflow.js View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M test/mjsunit/unbox-double-arrays.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Yang
7 years, 11 months ago (2013-01-16 13:14:51 UTC) #1
Michael Starzinger
https://chromiumcodereview.appspot.com/11971015/diff/1/src/heap.cc File src/heap.cc (right): https://chromiumcodereview.appspot.com/11971015/diff/1/src/heap.cc#newcode7327 src/heap.cc:7327: if (!isolate->global_proxy()->GetPrototype()->IsJSGlobalProxy()) return; That is quite a hack that ...
7 years, 11 months ago (2013-01-16 13:35:53 UTC) #2
Yang
On 2013/01/16 13:35:53, Michael Starzinger wrote: > https://chromiumcodereview.appspot.com/11971015/diff/1/src/heap.cc > File src/heap.cc (right): > > https://chromiumcodereview.appspot.com/11971015/diff/1/src/heap.cc#newcode7327 ...
7 years, 11 months ago (2013-01-17 13:57:32 UTC) #3
Yang
7 years, 11 months ago (2013-01-17 14:09:48 UTC) #4
On 2013/01/17 13:57:32, Yang wrote:
> On 2013/01/16 13:35:53, Michael Starzinger wrote:
> > https://chromiumcodereview.appspot.com/11971015/diff/1/src/heap.cc
> > File src/heap.cc (right):
> > 
> >
https://chromiumcodereview.appspot.com/11971015/diff/1/src/heap.cc#newcode7327
> > src/heap.cc:7327: if
> > (!isolate->global_proxy()->GetPrototype()->IsJSGlobalProxy()) return;
> > That is quite a hack that is going on here. I think a better approach would
be
> > for %GetDataProperty to actually check  whether the receiver is a
> JSGlobalProxy,
> > skip to the JSGlobalObject and if that is not present return undefined (as
> it's
> > implementing safe semantics that should gracefully fail).
> 
> Please take another look.
> 
> This also includes the fix for v8:2500.
> 
> Patch set 3 disables deferred stack trace formatting for now to not risking
> polluting the next roll.

Patch set 5 actually also changes the test expectations necessary due to the
temporary disable...

Powered by Google App Engine
This is Rietveld 408576698