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

Issue 10270032: Sort functions when doing megamorphic dispatch/inlining so their (Closed)

Created:
8 years, 7 months ago by Erik Corry
Modified:
8 years, 7 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Sort functions when doing megamorphic dispatch/inlining so their order does not depend on the hash seed. Committed: https://code.google.com/p/v8/source/detail?r=11482

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -45 lines) Patch
M src/hydrogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/hydrogen.cc View 4 chunks +115 lines, -45 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Erik Corry
8 years, 7 months ago (2012-05-01 07:55:03 UTC) #1
Michael Starzinger
https://chromiumcodereview.appspot.com/10270032/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://chromiumcodereview.appspot.com/10270032/diff/1/src/hydrogen.cc#newcode5717 src/hydrogen.cc:5717: InliningAstSize(expr->target()), Could we just use "expr->target()->shared()->ast_node_count()" and disregard whether ...
8 years, 7 months ago (2012-05-02 08:10:35 UTC) #2
Erik Corry
8 years, 7 months ago (2012-05-08 12:13:38 UTC) #3
https://chromiumcodereview.appspot.com/10270032/diff/1/src/hydrogen.cc
File src/hydrogen.cc (right):

https://chromiumcodereview.appspot.com/10270032/diff/1/src/hydrogen.cc#newcod...
src/hydrogen.cc:5717: InliningAstSize(expr->target()),
On 2012/05/02 08:10:35, Michael Starzinger wrote:
> Could we just use "expr->target()->shared()->ast_node_count()" and disregard
> whether we potentially inline the target or not? That would simplify the code.
> Also inlining decision is affected by other factors as well.

The reason I don't do this is that we already have code in place to try to avoid
parsing up the function in the case where it is very large.  I don't want to
duplicate that logic to avoid parsing up the function just in order to sort it.

Powered by Google App Engine
This is Rietveld 408576698