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

Issue 1247743002: Debugger: fix crash when debugger is enabled between parsing and compiling. (Closed)

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

Description

Debugger: fix crash when debugger is enabled between parsing and compiling. The background parser checks for debugger state in its constructor. This is not good enough, since the debugger state may change afterwards, but before compiling takes place. As the background parser can only parse lazily, this could mean that due to debugging, we try to eagerly compile an inner function we have not eagerly parsed. R=jochen@chromium.org Committed: https://crrev.com/e8752eb9cef68297ff34cf9d87d187d679677f62 Cr-Commit-Position: refs/heads/master@{#29784}

Patch Set 1 #

Total comments: 1

Patch Set 2 : added assertion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -37 lines) Patch
M src/background-parsing-task.cc View 1 chunk +1 line, -8 lines 0 comments Download
M src/compiler.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M src/debug.h View 1 chunk +0 lines, -5 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +29 lines, -22 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Yang
Please take a look. https://codereview.chromium.org/1247743002/diff/1/src/compiler.cc File src/compiler.cc (left): https://codereview.chromium.org/1247743002/diff/1/src/compiler.cc#oldcode1337 src/compiler.cc:1337: // real code caching lands, ...
5 years, 5 months ago (2015-07-21 08:40:40 UTC) #1
jochen (gone - plz use gerrit)
+vogelheim
5 years, 5 months ago (2015-07-21 08:45:02 UTC) #3
vogelheim
lgtm Nice unit test. :) One nitpick/suggestion: Maybe add a DCHECK for !(is_debug() && allow_lazy_parsing()) ...
5 years, 5 months ago (2015-07-21 13:22:09 UTC) #4
Yang
Assertion added as suggested.
5 years, 5 months ago (2015-07-22 07:09:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247743002/20001
5 years, 5 months ago (2015-07-22 07:10:05 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-22 07:37:27 UTC) #9
commit-bot: I haz the power
5 years, 5 months ago (2015-07-22 07:37:47 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e8752eb9cef68297ff34cf9d87d187d679677f62
Cr-Commit-Position: refs/heads/master@{#29784}

Powered by Google App Engine
This is Rietveld 408576698