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

Issue 10828066: Inline simple getter calls. (Closed)

Created:
8 years, 4 months ago by Sven Panne
Modified:
8 years, 4 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Inline simple getter calls. Currently only simple getter calls are handled (i.e. no calls in count operations or compound assignments), and deoptimization in the getter is not handled at all. Because of the latter, we temporarily hide this feature behind a new flag --inline-accessors, which is false by default. Committed: https://code.google.com/p/v8/source/detail?r=12223

Patch Set 1 #

Patch Set 2 : Deactivate accessor inlining by default. #

Total comments: 6

Patch Set 3 : Incorporated review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M src/arm/full-codegen-arm.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ast.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/hydrogen.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 2 chunks +17 lines, -1 line 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Sven Panne
8 years, 4 months ago (2012-07-30 07:23:16 UTC) #1
Michael Starzinger
LGTM (with one comment and a few nits). https://chromiumcodereview.appspot.com/10828066/diff/2001/src/ast.h File src/ast.h (right): https://chromiumcodereview.appspot.com/10828066/diff/2001/src/ast.h#newcode1515 src/ast.h:1515: int ...
8 years, 4 months ago (2012-07-30 09:38:43 UTC) #2
Sven Panne
8 years, 4 months ago (2012-07-30 10:41:55 UTC) #3
Landing...

http://codereview.chromium.org/10828066/diff/2001/src/ast.h
File src/ast.h (right):

http://codereview.chromium.org/10828066/diff/2001/src/ast.h#newcode1515
src/ast.h:1515: int ReturnId() const { return return_id_; }
On 2012/07/30 09:38:43, Michael Starzinger wrote:
> Can we put the usual "// Bailout support." comment in from of the ID getter,
> that helps us grep for all occurences where IDs are used for bailout points.

Done.

http://codereview.chromium.org/10828066/diff/2001/src/flag-definitions.h
File src/flag-definitions.h (right):

http://codereview.chromium.org/10828066/diff/2001/src/flag-definitions.h#newc...
src/flag-definitions.h:174: "inline JavaScript accessors (not fully functional
yet)")
On 2012/07/30 09:38:43, Michael Starzinger wrote:
> Can we move that down to the other inline flags like inline_construct? Also
drop
> the "not fully functional yet" comment.

Done.

http://codereview.chromium.org/10828066/diff/2001/src/hydrogen.cc
File src/hydrogen.cc (right):

http://codereview.chromium.org/10828066/diff/2001/src/hydrogen.cc#newcode6928
src/hydrogen.cc:6928: bool HGraphBuilder::TryInlineGetter(Handle<JSFunction>
getter,
On 2012/07/30 09:38:43, Michael Starzinger wrote:
> It might be better to pass the "Property* expr" as first parameter instead of
> the two IDs and let this helper method load get the appropriate IDs. Because a
> getter can only be called if you have the appropriate "Property" AST node
> available.

Done.

Powered by Google App Engine
This is Rietveld 408576698