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

Issue 193057: Cleaned up some debugger stuff on ia32 and x64 (Closed)

Created:
11 years, 3 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Cleaned up some debugger stuff on ia32 and x64. Got rid of the debug break on return entry code which did not add anything. It just jumped directly to the debug break on return code. Removed the CodePatcher class on x64 as it was not implemented. Added instruction cache flush to where the return sequence was patched on x64. Added some missing ENABLE_DEBUGGER_SUPPORT #ifdef/#endif. Committed: http://code.google.com/p/v8/source/detail?r=2863

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -85 lines) Patch
M src/builtins.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/builtins.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/debug.h View 1 3 chunks +2 lines, -8 lines 0 comments Download
M src/debug.cc View 1 4 chunks +10 lines, -18 lines 0 comments Download
M src/ia32/debug-ia32.cc View 1 4 chunks +4 lines, -17 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/x64/assembler-x64.cc View 1 3 chunks +6 lines, -2 lines 0 comments Download
M src/x64/debug-x64.cc View 1 2 chunks +1 line, -13 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
11 years, 3 months ago (2009-09-09 11:18:22 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/193057/diff/1/2 File src/debug.h (right): http://codereview.chromium.org/193057/diff/1/2#newcode338 Line 338: // Access to the debug break on ...
11 years, 3 months ago (2009-09-09 14:26:20 UTC) #2
Søren Thygesen Gjesse
11 years, 3 months ago (2009-09-09 17:44:33 UTC) #3
http://codereview.chromium.org/193057/diff/1/2
File src/debug.h (right):

http://codereview.chromium.org/193057/diff/1/2#newcode338
Line 338: // Access to the debug break on return return code.
On 2009/09/09 14:26:20, Lasse Reichstein wrote:
> "return return" -> "return"?

Done.

http://codereview.chromium.org/193057/diff/1/8
File src/x64/assembler-x64.cc (right):

http://codereview.chromium.org/193057/diff/1/8#newcode181
Line 181: // the 0x00 later, and this lets us write a uint32.
On 2009/09/09 14:26:20, Lasse Reichstein wrote:
> So we really write three bytes. The low byte is only there because we know
that
> the byte before will be written again later (and it doesn't matter that it's
> zero).
> Comment isn't very clear.

I will leave this as is, and add the code patcher in a separate changelist. The
reason I pulled it out of the macro-assembler-x64.h file was that it was not
implemented.

http://codereview.chromium.org/193057/diff/1/8#newcode182
Line 182: Memory::uint32_at(patch_site + 9) = 0xD2FF4900u;  // 0x00, call r10
On 2009/09/09 14:26:20, Lasse Reichstein wrote:
> Ick, can't we use a patcher to emit opcodes, instead of raw binary numbers?

See above.

Powered by Google App Engine
This is Rietveld 408576698