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

Issue 9373028: Initial support for count-based profiling (Closed)

Created:
8 years, 10 months ago by Jakob Kummerow
Modified:
8 years, 10 months ago
CC:
v8-dev
Visibility:
Public.

Description

Initial support for count-based profiling (behind FLAG_count_based_interrupts; only on ia32) Committed: https://code.google.com/p/v8/source/detail?r=10699

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressed comments #

Patch Set 3 : removed unnecessary instruction #

Total comments: 6

Patch Set 4 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -42 lines) Patch
M src/arm/code-stubs-arm.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/code-stubs.h View 3 chunks +14 lines, -1 line 0 comments Download
M src/execution.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/full-codegen.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M src/full-codegen.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/deoptimizer-ia32.cc View 1 2 3 3 chunks +31 lines, -10 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 4 chunks +35 lines, -8 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M src/runtime.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/runtime.cc View 2 chunks +14 lines, -2 lines 0 comments Download
M src/runtime-profiler.cc View 5 chunks +13 lines, -5 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 2 chunks +3 lines, -2 lines 0 comments Download
A test/mjsunit/count-based-osr.js View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jakob Kummerow
A few more new flags :-) Please take a look. This CL looks scarier than ...
8 years, 10 months ago (2012-02-09 16:08:41 UTC) #1
Erik Corry
https://chromiumcodereview.appspot.com/9373028/diff/1/src/full-codegen.h File src/full-codegen.h (right): https://chromiumcodereview.appspot.com/9373028/diff/1/src/full-codegen.h#newcode427 src/full-codegen.h:427: void EmitStackCheck(IterationStatement* stmt, Label* back_edge_target); Please add a comment ...
8 years, 10 months ago (2012-02-10 13:01:42 UTC) #2
Jakob Kummerow
Thanks for the comments, please take another look. https://chromiumcodereview.appspot.com/9373028/diff/1/src/full-codegen.h File src/full-codegen.h (right): https://chromiumcodereview.appspot.com/9373028/diff/1/src/full-codegen.h#newcode427 src/full-codegen.h:427: void ...
8 years, 10 months ago (2012-02-10 13:59:20 UTC) #3
Vyacheslav Egorov (Chromium)
lgtm with comments addressed also please consider adding test that enables the flag and does ...
8 years, 10 months ago (2012-02-14 12:52:47 UTC) #4
Vyacheslav Egorov (Chromium)
lgtm with comments addressed also please consider adding test that enables the flag and does ...
8 years, 10 months ago (2012-02-14 12:52:54 UTC) #5
Jakob Kummerow
8 years, 10 months ago (2012-02-14 13:54:45 UTC) #6
Thanks for the review. I've addressed your comments and added a test.

Landing, unless you have further comments.

https://chromiumcodereview.appspot.com/9373028/diff/9001/src/ia32/deoptimizer...
File src/ia32/deoptimizer-ia32.cc (right):

https://chromiumcodereview.appspot.com/9373028/diff/9001/src/ia32/deoptimizer...
src/ia32/deoptimizer-ia32.cc:234: ASSERT(*(call_target_address - 2) == 0x11); 
// offset
On 2012/02/14 12:52:47, Vyacheslav Egorov wrote:
> Please name magical constants. they are duplicated in the code.

Done.

https://chromiumcodereview.appspot.com/9373028/diff/9001/src/ia32/full-codege...
File src/ia32/full-codegen-ia32.cc (right):

https://chromiumcodereview.appspot.com/9373028/diff/9001/src/ia32/full-codege...
src/ia32/full-codegen-ia32.cc:337: __ sub(Operand::Cell(profiling_counter_),
On 2012/02/14 12:52:47, Vyacheslav Egorov wrote:
> generation of the sub can be moved out of the if and inside the if you can
just
> compute int step

Done.

https://chromiumcodereview.appspot.com/9373028/diff/9001/src/ia32/full-codege...
src/ia32/full-codegen-ia32.cc:347: ExternalReference stack_limit =
On 2012/02/14 12:52:47, Vyacheslav Egorov wrote:
> It is not clear to me why stack check sits in the else branch. 
> 
> It is a conscious decision to postpone interrupts until countdown reaches
zero?
> 
> If so please add a comment about it.

Done.

Powered by Google App Engine
This is Rietveld 408576698