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

Issue 119048: When compiling a stub for store with interceptor, check if this interceptor... (Closed)

Created:
11 years, 6 months ago by antonm
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Don't do local lookup on global object as those (currently) are not JITed anyway. Committed: http://code.google.com/p/v8/source/detail?r=2110

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -13 lines) Patch
M src/ic.cc View 1 2 3 chunks +22 lines, -13 lines 0 comments Download
M test/cctest/test-api.cc View 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
antonm
11 years, 6 months ago (2009-06-02 17:12:36 UTC) #1
Mads Ager (chromium)
LGTM Do we have test cases for this? http://codereview.chromium.org/119048/diff/1/2 File src/ic.cc (right): http://codereview.chromium.org/119048/diff/1/2#newcode878 Line 878: ...
11 years, 6 months ago (2009-06-02 17:22:44 UTC) #2
Kasper Lund
LGTM.
11 years, 6 months ago (2009-06-02 18:31:41 UTC) #3
antonm
Thanks a lot Mads! I've added a test case, but... For some reason ScriptUsingAsciiStringResource started ...
11 years, 6 months ago (2009-06-02 19:42:29 UTC) #4
Mads Ager (chromium)
LGTM On 2009/06/02 19:42:29, antonm wrote: > Thanks a lot Mads! > > I've added ...
11 years, 6 months ago (2009-06-03 06:27:05 UTC) #5
antonm
11 years, 6 months ago (2009-06-04 13:28:04 UTC) #6
Kasper, Mads, tnx a lot for review.

I did some more profiling and found out that apparently check if interceptor has
a setter might be sometimes expensive.  So for this CL only saves us a lookup on
global object.

What would you say if I try to reserve another bit for fast check if interceptor
has a setter (like has_named_interceptor do)?  How precious these bits are?

Powered by Google App Engine
This is Rietveld 408576698