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

Issue 6347067: Fix potential overwriting of debug jumps of following code. (Closed)

Created:
9 years, 10 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix potential overwriting of debug jumps of following code. Add JSArrayLength, CallKnownFunction, and InstanceType operations. Remove LadGlobal and StoreGlobal again (they fail). Committed: http://code.google.com/p/v8/source/detail?r=6645

Patch Set 1 #

Total comments: 29

Patch Set 2 : Refactored DeoptimizeFunction. Addressed comments. #

Patch Set 3 : Lints and compiles in debug mode #

Patch Set 4 : Fix significant typo that made it all fail. #

Patch Set 5 : Readded DoStoreGlobal code. #

Total comments: 21

Patch Set 6 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -82 lines) Patch
M src/objects.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/safepoint-table.h View 1 3 chunks +8 lines, -3 lines 0 comments Download
M src/safepoint-table.cc View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
M src/x64/assembler-x64.h View 1 3 chunks +11 lines, -3 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M src/x64/deoptimizer-x64.cc View 1 2 3 4 5 4 chunks +117 lines, -30 lines 0 comments Download
M src/x64/frames-x64.h View 2 chunks +2 lines, -3 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 5 7 chunks +95 lines, -25 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 5 chunks +12 lines, -9 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 2 chunks +7 lines, -1 line 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +3 lines, -1 line 0 comments Download
M test/cctest/cctest.status View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Lasse Reichstein
9 years, 10 months ago (2011-02-01 13:48:55 UTC) #1
Rico
LGTM, but I am wondering if we could avoid this jump table. This will be ...
9 years, 10 months ago (2011-02-02 11:35:37 UTC) #2
fschneider
drive-by comments: Do you have a regression test for this? http://codereview.chromium.org/6347067/diff/1/src/safepoint-table.cc File src/safepoint-table.cc (right): http://codereview.chromium.org/6347067/diff/1/src/safepoint-table.cc#newcode225 ...
9 years, 10 months ago (2011-02-02 12:54:16 UTC) #3
Kevin Millikin (Chromium)
I really only looked at the deoptimizer stuff. It's too complicated. http://codereview.chromium.org/6347067/diff/1/src/safepoint-table.cc File src/safepoint-table.cc (right): ...
9 years, 10 months ago (2011-02-02 13:05:33 UTC) #4
Lasse Reichstein
Please see if it makes more sense now. http://codereview.chromium.org/6347067/diff/1/src/safepoint-table.cc File src/safepoint-table.cc (right): http://codereview.chromium.org/6347067/diff/1/src/safepoint-table.cc#newcode225 src/safepoint-table.cc:225: int ...
9 years, 10 months ago (2011-02-03 14:14:12 UTC) #5
Kevin Millikin (Chromium)
http://codereview.chromium.org/6347067/diff/1/src/x64/deoptimizer-x64.cc File src/x64/deoptimizer-x64.cc (right): http://codereview.chromium.org/6347067/diff/1/src/x64/deoptimizer-x64.cc#newcode72 src/x64/deoptimizer-x64.cc:72: while (instructions > 0) { You can (but I'm ...
9 years, 10 months ago (2011-02-04 10:27:29 UTC) #6
Kevin Millikin (Chromium)
The jump table patching looks nice. I still have comments. I'm not concerned about the ...
9 years, 10 months ago (2011-02-04 11:34:54 UTC) #7
Lasse Reichstein
Thanks for the comments. http://codereview.chromium.org/6347067/diff/4012/src/safepoint-table.cc File src/safepoint-table.cc (right): http://codereview.chromium.org/6347067/diff/4012/src/safepoint-table.cc#newcode235 src/safepoint-table.cc:235: if (deoptimization_info_.length() > 0) { ...
9 years, 10 months ago (2011-02-04 12:32:13 UTC) #8
Kevin Millikin (Chromium)
http://codereview.chromium.org/6347067/diff/4012/src/x64/assembler-x64.cc File src/x64/assembler-x64.cc (right): http://codereview.chromium.org/6347067/diff/4012/src/x64/assembler-x64.cc#newcode919 src/x64/assembler-x64.cc:919: void Assembler::call(Address target) { On 2011/02/04 12:32:13, Lasse Reichstein ...
9 years, 10 months ago (2011-02-04 12:58:24 UTC) #9
Lasse Reichstein
9 years, 10 months ago (2011-02-04 13:04:11 UTC) #10
http://codereview.chromium.org/6347067/diff/4012/src/x64/assembler-x64.cc
File src/x64/assembler-x64.cc (right):

http://codereview.chromium.org/6347067/diff/4012/src/x64/assembler-x64.cc#new...
src/x64/assembler-x64.cc:919: void Assembler::call(Address target) {
My bad. That was indeed what I did, but not what I wrote that I had done.

Powered by Google App Engine
This is Rietveld 408576698