|
Debugger: prepare code for debugging on a per-function basis.
Prior to this patch, we enter a global debug mode whenever a break point
is set. By entering this mode, all code is deoptimized and activated
frames are recompiled and redirected to newly compiled debug code.
After this patch, we only deoptimize/redirect for functions we want to
debug. Trigger for this is Debug::EnsureDebugInfo, and having DebugInfo
object attached to the SFI prevents optimization/inlining.
The result is that we can have optimized code for functions without break
points alongside functions that do have break points, which are not
optimized.
R=mstarzinger@chromium.org, ulan@chromium.org
BUG= v8:4132
LOG=Y
Committed: https://crrev.com/35c28ce0a742e58346d2dea009428cacd442040d
Cr-Commit-Position: refs/heads/master@{#29758}
Total comments: 18
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+398 lines, -614 lines) |
Patch |
|
M |
src/arm/assembler-arm-inl.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/arm64/assembler-arm64-inl.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/background-parsing-task.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/bailout-reason.h
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler.h
|
View
|
1
|
5 chunks |
+16 lines, -20 lines |
0 comments
|
Download
|
|
M |
src/compiler.cc
|
View
|
1
|
13 chunks |
+54 lines, -69 lines |
0 comments
|
Download
|
|
M |
src/compiler/js-inlining.cc
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/debug.h
|
View
|
1
2
|
4 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/debug.cc
|
View
|
1
|
28 chunks |
+171 lines, -397 lines |
0 comments
|
Download
|
|
M |
src/heap/mark-compact.cc
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
src/hydrogen.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/assembler-ia32-inl.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/ic/ic.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/liveedit.cc
|
View
|
|
5 chunks |
+4 lines, -36 lines |
0 comments
|
Download
|
|
M |
src/mips/assembler-mips-inl.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/mips64/assembler-mips64-inl.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-debug.cc
|
View
|
|
2 chunks |
+9 lines, -54 lines |
0 comments
|
Download
|
|
M |
src/x64/assembler-x64-inl.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-debug.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/cctest/test-func-name-inference.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/debug-evaluate.js
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/debug-optimize.js
|
View
|
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
Total messages: 18 (4 generated)
|