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

Issue 11896091: Replace store array length builtin with codestub. (Closed)

Created:
7 years, 11 months ago by Toon Verwaest
Modified:
7 years, 11 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Replace store array length builtin with codestub. Also includes some other minor cleanup to make Keyed related IC code more uniform. Committed: https://code.google.com/p/v8/source/detail?r=13506

Patch Set 1 #

Total comments: 6

Patch Set 2 : Only inform of updating IC after actually updating it. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -247 lines) Patch
M src/arm/code-stubs-arm.cc View 1 chunk +70 lines, -0 lines 0 comments Download
M src/arm/ic-arm.cc View 1 chunk +0 lines, -56 lines 0 comments Download
M src/arm/stub-cache-arm.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M src/builtins.h View 2 chunks +0 lines, -4 lines 0 comments Download
M src/builtins.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M src/code-stubs.h View 3 chunks +35 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 chunk +64 lines, -0 lines 0 comments Download
M src/ia32/ic-ia32.cc View 1 chunk +0 lines, -59 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M src/ic.h View 2 chunks +0 lines, -5 lines 0 comments Download
M src/ic.cc View 1 7 chunks +37 lines, -45 lines 0 comments Download
M src/objects-inl.h View 2 chunks +5 lines, -1 line 0 comments Download
M src/stub-cache.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/stub-cache.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 chunk +62 lines, -0 lines 0 comments Download
M src/x64/ic-x64.cc View 1 chunk +0 lines, -59 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Toon Verwaest
PTAL
7 years, 11 months ago (2013-01-24 16:32:09 UTC) #1
Jakob Kummerow
LGTM with comments. I did not review the assembly code in detail. You just moved ...
7 years, 11 months ago (2013-01-25 11:38:57 UTC) #2
Toon Verwaest
7 years, 11 months ago (2013-01-25 11:46:54 UTC) #3
Addressed comments. The code was mostly just moved yes. Only the header
(choosing incoming registers) and footer (IC miss generation) needed adjustment.

https://chromiumcodereview.appspot.com/11896091/diff/1/src/ic.cc
File src/ic.cc (right):

https://chromiumcodereview.appspot.com/11896091/diff/1/src/ic.cc#newcode816
src/ic.cc:816: TRACE_IC("KeyedCallIC", key, state, target());
On 2013/01/25 11:38:57, Jakob wrote:
> We should only TRACE_IC after setting a new target. Please move this above the
> '}'.

Done.

https://chromiumcodereview.appspot.com/11896091/diff/1/src/ic.cc#newcode1275
src/ic.cc:1275: TRACE_IC("KeyedLoadIC", key, state, target());
On 2013/01/25 11:38:57, Jakob wrote:
> Same here. (Due to the conditions, this code actually does the right thing
> currently, but let's make it explicit nevertheless that TRACE_IC() happens iff
> set_target() was called.)

Done.

https://chromiumcodereview.appspot.com/11896091/diff/1/src/ic.cc#newcode1763
src/ic.cc:1763: TRACE_IC("KeyedStoreIC", key, state, target());
On 2013/01/25 11:38:57, Jakob wrote:
> Again, please move this to right after set_target().

Done.

Powered by Google App Engine
This is Rietveld 408576698