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

Issue 910773002: Propagate Deopt reason to cpu-profiler (Closed)

Created:
5 years, 10 months ago by loislo
Modified:
5 years, 10 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Propagate DeoptInfo to cpu-profiler 1) Deoptimizer::Reason was replaced with Deoptimizer::DeoptInfo because it also has raw position. Also the old name clashes with DeoptReason enum. 2) c_entry_fp assignment call was added to EntryGenerator::Generate So we can calculate sp and have a chance to record the stack for the deopting function. btw it makes the test stable. 3) new kind of CodeEvents was added to cpu-profiler 4) GetDeoptInfo method was extracted from PrintDeoptLocation. So it could be reused in cpu profiler. BUG=452067 LOG=n Committed: https://crrev.com/86cae1633caa31f2225b6932850fb13d3a21cf59 Cr-Commit-Position: refs/heads/master@{#26545}

Patch Set 1 : rebased #

Total comments: 6

Patch Set 2 : FLAG_log_timer_events check was fixed #

Patch Set 3 : comments addressed #

Total comments: 2

Patch Set 4 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -92 lines) Patch
M src/arm/deoptimizer-arm.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M src/arm64/deoptimizer-arm64.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M src/cpu-profiler.h View 1 2 4 chunks +20 lines, -6 lines 0 comments Download
M src/cpu-profiler.cc View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M src/cpu-profiler-inl.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/deoptimizer.h View 1 chunk +10 lines, -8 lines 0 comments Download
M src/deoptimizer.cc View 1 2 3 4 chunks +36 lines, -6 lines 0 comments Download
M src/ia32/deoptimizer-ia32.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M src/lithium-codegen.h View 1 chunk +1 line, -1 line 0 comments Download
M src/lithium-codegen.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/log.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/log.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M src/mips/deoptimizer-mips.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/mips/lithium-codegen-mips.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M src/mips64/lithium-codegen-mips64.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M src/objects.cc View 1 chunk +4 lines, -24 lines 0 comments Download
M src/ppc/lithium-codegen-ppc.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M src/profile-generator.h View 2 chunks +6 lines, -0 lines 0 comments Download
M src/profile-generator-inl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/deoptimizer-x64.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M src/x87/lithium-codegen-x87.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 2 chunks +56 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
loislo
PTAL
5 years, 10 months ago (2015-02-09 17:49:58 UTC) #4
yurys
lgtm https://codereview.chromium.org/910773002/diff/120001/src/arm64/deoptimizer-arm64.cc File src/arm64/deoptimizer-arm64.cc (right): https://codereview.chromium.org/910773002/diff/120001/src/arm64/deoptimizer-arm64.cc#newcode135 src/arm64/deoptimizer-arm64.cc:135: __ Mov(x3, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); May be use UseScratchRegisterScope ...
5 years, 10 months ago (2015-02-10 08:27:14 UTC) #9
loislo
https://codereview.chromium.org/910773002/diff/120001/src/arm64/deoptimizer-arm64.cc File src/arm64/deoptimizer-arm64.cc (right): https://codereview.chromium.org/910773002/diff/120001/src/arm64/deoptimizer-arm64.cc#newcode135 src/arm64/deoptimizer-arm64.cc:135: __ Mov(x3, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); On 2015/02/10 08:27:13, yurys wrote: ...
5 years, 10 months ago (2015-02-10 08:54:33 UTC) #10
Sven Panne
LGTM from my side, too, but jarin@ (a.k.a. "Mr. Deopt" :-) might want to have ...
5 years, 10 months ago (2015-02-10 13:13:01 UTC) #14
Jarin
One question: https://codereview.chromium.org/910773002/diff/180001/src/deoptimizer.cc File src/deoptimizer.cc (right): https://codereview.chromium.org/910773002/diff/180001/src/deoptimizer.cc#newcode597 src/deoptimizer.cc:597: fp_to_sp_delta_)); I believe it is important that ...
5 years, 10 months ago (2015-02-10 14:00:27 UTC) #15
loislo
https://codereview.chromium.org/910773002/diff/180001/src/deoptimizer.cc File src/deoptimizer.cc (right): https://codereview.chromium.org/910773002/diff/180001/src/deoptimizer.cc#newcode597 src/deoptimizer.cc:597: fp_to_sp_delta_)); On 2015/02/10 14:00:27, jarin wrote: > I believe ...
5 years, 10 months ago (2015-02-10 14:07:29 UTC) #17
Jarin
On 2015/02/10 14:07:29, loislo wrote: > https://codereview.chromium.org/910773002/diff/180001/src/deoptimizer.cc > File src/deoptimizer.cc (right): > > https://codereview.chromium.org/910773002/diff/180001/src/deoptimizer.cc#newcode597 > ...
5 years, 10 months ago (2015-02-10 14:09:18 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910773002/200001
5 years, 10 months ago (2015-02-10 14:10:33 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:200001)
5 years, 10 months ago (2015-02-10 14:32:50 UTC) #21
commit-bot: I haz the power
5 years, 10 months ago (2015-02-10 14:33:16 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/86cae1633caa31f2225b6932850fb13d3a21cf59
Cr-Commit-Position: refs/heads/master@{#26545}

Powered by Google App Engine
This is Rietveld 408576698