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

Issue 337045: Support for property access (named, keyed) in the fast compiler.... (Closed)

Created:
11 years, 1 month ago by fschneider
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Support for property access (named, keyed) in the fast compiler. The generated code is similar to the existing code, but we never inline any IC code in the fast compiler. Committed: http://code.google.com/p/v8/source/detail?r=3152

Patch Set 1 #

Patch Set 2 : Support for property access (named, keyed) in the fast compiler.... #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -10 lines) Patch
M src/arm/fast-codegen-arm.cc View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 chunk +3 lines, -1 line 0 comments Download
M src/fast-codegen.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M src/ia32/fast-codegen-ia32.cc View 1 2 2 chunks +45 lines, -4 lines 0 comments Download
M src/x64/fast-codegen-x64.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A test/mjsunit/compiler/property-simple.js View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
fschneider
11 years, 1 month ago (2009-10-27 14:48:12 UTC) #1
Kevin Millikin (Chromium)
LGTM. http://codereview.chromium.org/337045/diff/1001/2001 File src/ia32/fast-codegen-ia32.cc (right): http://codereview.chromium.org/337045/diff/1001/2001#newcode507 Line 507: Comment cmnt(masm_, "[ Load from named Property"); ...
11 years, 1 month ago (2009-10-27 15:08:54 UTC) #2
fschneider
11 years, 1 month ago (2009-10-27 15:40:03 UTC) #3
http://codereview.chromium.org/337045/diff/1001/2001
File src/ia32/fast-codegen-ia32.cc (right):

http://codereview.chromium.org/337045/diff/1001/2001#newcode507
Line 507: Comment cmnt(masm_, "[ Load from named Property");
On 2009/10/27 15:08:54, Kevin Millikin wrote:
> These comments in the generated code might not be necessary.

Done. (also for x64, arm)

http://codereview.chromium.org/337045/diff/1001/2001#newcode516
Line 516: __ add(Operand(esp), Immediate(kPointerSize));
On 2009/10/27 15:08:54, Kevin Millikin wrote:
> You might consider omitting this, and using the drop-and-move pattern to move
> eax to the expression's location after the if...then...else.


Done. (also on x64, arm)

Right. This is better for the common case (location != NOWHERE). The only case
where we generate an extra pop() is a keyed load with location NOWHERE.

Powered by Google App Engine
This is Rietveld 408576698