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

Issue 10515008: Added LoadIC stub for getters. (Closed)

Created:
8 years, 6 months ago by Sven Panne
Modified:
8 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Added LoadIC stub for getters. Removed some dead constants on the way. Committed: https://code.google.com/p/v8/source/detail?r=11735

Patch Set 1 #

Patch Set 2 : Fixed frame handling in CompileLoadViaGetter. #

Patch Set 3 : Fixed presubmit failure. #

Total comments: 1

Patch Set 4 : Use CALL_AS_METHOD #

Patch Set 5 : Implemented CompileLoadViaGetter on x64 #

Patch Set 6 : Implemented CompileLoadViaGetter on ARM #

Patch Set 7 : Implemented CompileLoadViaGetter on MIPS #

Patch Set 8 : Removed useless fallback #

Total comments: 4

Patch Set 9 : Incorporated review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -13 lines) Patch
M src/arm/stub-cache-arm.cc View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
M src/ic.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -8 lines 0 comments Download
M src/mips/stub-cache-mips.cc View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
M src/stub-cache.h View 2 chunks +10 lines, -0 lines 0 comments Download
M src/stub-cache.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Vyacheslav Egorov (Google)
http://codereview.chromium.org/10515008/diff/4001/src/ia32/stub-cache-ia32.cc File src/ia32/stub-cache-ia32.cc (right): http://codereview.chromium.org/10515008/diff/4001/src/ia32/stub-cache-ia32.cc#newcode2888 src/ia32/stub-cache-ia32.cc:2888: NullCallWrapper(), CALL_AS_FUNCTION); I think it should be CALL_AS_METHOD because ...
8 years, 6 months ago (2012-06-05 14:56:05 UTC) #1
Michael Starzinger
LGTM (with one comment and one nit). https://chromiumcodereview.appspot.com/10515008/diff/4002/src/stub-cache.cc File src/stub-cache.cc (right): https://chromiumcodereview.appspot.com/10515008/diff/4002/src/stub-cache.cc#newcode178 src/stub-cache.cc:178: ASSERT(getter->IsSpecFunction()); Shouldn't ...
8 years, 6 months ago (2012-06-08 07:58:33 UTC) #2
Sven Panne
8 years, 6 months ago (2012-06-08 08:47:52 UTC) #3
Rebasing and landing...

https://chromiumcodereview.appspot.com/10515008/diff/4002/src/stub-cache.cc
File src/stub-cache.cc (right):

https://chromiumcodereview.appspot.com/10515008/diff/4002/src/stub-cache.cc#n...
src/stub-cache.cc:178: ASSERT(getter->IsSpecFunction());
On 2012/06/08 07:58:33, Michael Starzinger wrote:
> Shouldn't that be getter->IsJSFunction() here, or does it correctly handle
> function proxies?

This was just a leftover of a previous weaker typing with Object instead of
JSFunction, so I'll just remove that line.

https://chromiumcodereview.appspot.com/10515008/diff/4002/src/stub-cache.cc#n...
src/stub-cache.cc:180: // Note: map holder = receiver, CheckType =
RECEIVER_MAP_CHECK;
On 2012/06/08 07:58:33, Michael Starzinger wrote:
> I don't understand this comment. Can we either turn it into a full sentence or
> drop it?

And this was just a leftover when trying to make sense of the CallIC stuff used
for this LoadIC => will remove that line.

Powered by Google App Engine
This is Rietveld 408576698