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

Issue 2035643003: Failing DCHECK exposing eval origin bug

Created:
4 years, 6 months ago by Dan Ehrenberg
Modified:
4 years, 6 months ago
Reviewers:
caitp (gmail)
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Failing DCHECK exposing eval origin bug BUG=

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -38 lines) Patch
A + test/mjsunit/harmony/debug-async-liveedit.js View 6 chunks +51 lines, -38 lines 1 comment Download

Messages

Total messages: 4 (1 generated)
caitp (gmail)
A fun thing I notice (from printf-debugging), is that in `LiveEdit::CheckAndDropActivations()`, sometimes "result_elements" and "result->elements()" ...
4 years, 6 months ago (2016-06-07 23:11:12 UTC) #2
caitp (gmail)
On 2016/06/07 23:11:12, caitp wrote: > A fun thing I notice (from printf-debugging), is that ...
4 years, 6 months ago (2016-06-07 23:38:27 UTC) #3
caitp (gmail)
4 years, 6 months ago (2016-06-08 14:01:24 UTC) #4
https://codereview.chromium.org/2035643003/diff/1/test/mjsunit/harmony/debug-...
File test/mjsunit/harmony/debug-async-liveedit.js (left):

https://codereview.chromium.org/2035643003/diff/1/test/mjsunit/harmony/debug-...
test/mjsunit/harmony/debug-async-liveedit.js:108: assertThrows(function() {
patch(fun_outside, "'Cat'", "'Cobra'") },
New theory on why this is broken:

By the time we get here, we have lots of unclosed generators on the heap, but
none actually on the stack (since V8 does not keep track of async stacks
itself)... So there isn't really a way to know if this should throw or not,
theres no recoded relationship between the async call, the inside call, or the
outside call.

I'm not sure how we'd make this work, tbh, at least not on the V8 side

Powered by Google App Engine
This is Rietveld 408576698