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

Issue 10914065: Fix FindSharedFunctionInfoInScript to not optimize. (Closed)

Created:
8 years, 3 months ago by Michael Starzinger
Modified:
8 years, 3 months ago
Reviewers:
Toon Verwaest
CC:
v8-dev
Visibility:
Public.

Description

Fix FindSharedFunctionInfoInScript to not optimize. This prevents a corner case in FindSharedFunctionInfoInScript that would cause functions to be optimized because an intermittent GC would clear the flag indicating whether breakpoints are present. Above method was also moved into the Debug class because it is only used by the debugger. R=verwaest@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=12428

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed comments by Toon Verwaest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -124 lines) Patch
M src/compiler.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/debug.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/debug.cc View 1 3 chunks +114 lines, -6 lines 0 comments Download
M src/runtime.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/runtime.cc View 1 chunk +0 lines, -109 lines 0 comments Download
M test/cctest/test-func-name-inference.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Michael Starzinger
8 years, 3 months ago (2012-09-03 13:15:28 UTC) #1
Michael Starzinger
https://chromiumcodereview.appspot.com/10914065/diff/1/src/debug.cc File src/debug.cc (right): https://chromiumcodereview.appspot.com/10914065/diff/1/src/debug.cc#newcode2182 src/debug.cc:2182: has_break_points_ = true; These are the only two lines ...
8 years, 3 months ago (2012-09-03 13:36:53 UTC) #2
Toon Verwaest
LGTM with one nit. https://chromiumcodereview.appspot.com/10914065/diff/1/src/debug.cc File src/debug.cc (right): https://chromiumcodereview.appspot.com/10914065/diff/1/src/debug.cc#newcode1176 src/debug.cc:1176: // implicitly by Debug::FindSharedFunctionInfoInScript. Just ...
8 years, 3 months ago (2012-09-03 13:44:22 UTC) #3
Michael Starzinger
8 years, 3 months ago (2012-09-03 14:08:49 UTC) #4
Addressed comments. Landing.

https://chromiumcodereview.appspot.com/10914065/diff/1/src/debug.cc
File src/debug.cc (right):

https://chromiumcodereview.appspot.com/10914065/diff/1/src/debug.cc#newcode1176
src/debug.cc:1176: // implicitly by Debug::FindSharedFunctionInfoInScript.
On 2012/09/03 13:44:22, Toon Verwaest wrote:
> Just move PrepareForBreakPoints() here from FindSharedFunctionInfoInScript so
no
> explanation is needed.

Done.

Powered by Google App Engine
This is Rietveld 408576698