|
[Interpreter] Enable runtime profiler support for Ignition.
Adds a profiling counter to each BytecodeArray object, and adds
code to Jump and Return bytecode handlers to update this
counter by the size of the jump or the distance from the return
to the start of the function. This is more accurate than fullcodegen's
approach since it takes forward jumps into account as well as back-edges.
Modifies RuntimeProfiler to track ticks for interpreted frames.
Currently we use the SharedFunctionInfo::profiler_ticks() instead
of adding another to tick field to avoid adding another field to
BytecodeArray since SharedFunctionInfo::profiler_ticks() is only
used by Crankshaft otherwise so we shouldn't need both for
BUG= v8:4689
LOG=N
Committed: https://crrev.com/b62bf1e6fb7061f89b9ba0a06493109042b86978
Cr-Commit-Position: refs/heads/master@{#34166}
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+268 lines, -134 lines) |
Patch |
|
M |
src/arm/builtins-arm.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/arm64/builtins-arm64.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/code-stub-assembler.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/execution.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/heap/heap.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/heap/objects-visiting-inl.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ia32/builtins-ia32.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter-assembler.h
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter-assembler.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+47 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/mips/builtins-mips.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/mips64/builtins-mips64.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ppc/builtins-ppc.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/runtime-profiler.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
src/runtime-profiler.cc
|
View
|
1
2
3
4
|
4 chunks |
+165 lines, -98 lines |
0 comments
|
Download
|
|
M |
src/x64/builtins-x64.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/x87/builtins-x87.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.status
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/unittests/interpreter/interpreter-assembler-unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
8 chunks |
+16 lines, -15 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 35 (19 generated)
|