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 7990: Implement Array::concat function in C++.... (Closed)

Created:
12 years, 2 months ago by Feng Qian
Modified:
9 years, 7 months ago
Reviewers:
iposva, Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Implement Array::concat function in C++. The performance of Array::concat is critical of jQuery benchmark from http://www.dromaeo.com. Our current implementation in JavaScript is very generic and is several times slower than JSC and SpiderMonkey. Re-implement Array::concat in C++ to take advantage of underlying implementation details. This cuts dom-travesal-jquery execution time by half. We may want to move Array specific implementation into a separate source file, say jsarray.cc. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=625

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -41 lines) Patch
M src/array.js View 1 2 1 chunk +7 lines, -40 lines 0 comments Download
M src/factory.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 1 chunk +231 lines, -0 lines 0 comments Download
M test/mjsunit/array-concat.js View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Feng Qian
12 years, 2 months ago (2008-10-24 21:37:46 UTC) #1
iposva
An initial set of comments below. I will now look at the newly uploaded revision. ...
12 years, 2 months ago (2008-10-25 00:29:19 UTC) #2
Kasper Lund
Drive by comment: http://codereview.chromium.org/7990/diff/201/206 File src/array.js (right): http://codereview.chromium.org/7990/diff/201/206#newcode376 Line 376: // TODO: can we just ...
12 years, 1 month ago (2008-10-27 11:02:19 UTC) #3
Feng Qian
http://codereview.chromium.org/7990/diff/1/4 File src/runtime.cc (right): http://codereview.chromium.org/7990/diff/1/4#newcode3990 Line 3990: class ArrayConcatVisitor { On 2008/10/25 00:29:19, iposva wrote: ...
12 years, 1 month ago (2008-10-27 17:35:13 UTC) #4
iposva
More comments to follow in personal discussion. -ip http://codereview.chromium.org/7990/diff/401/603 File src/runtime.cc (right): http://codereview.chromium.org/7990/diff/401/603#newcode3996 Line 3996: ...
12 years, 1 month ago (2008-10-27 23:45:50 UTC) #5
Feng Qian
http://codereview.chromium.org/7990/diff/401/603 File src/runtime.cc (right): http://codereview.chromium.org/7990/diff/401/603#newcode3996 Line 3996: * whether the storage is a fixed array ...
12 years, 1 month ago (2008-10-28 03:28:22 UTC) #6
iposva
12 years, 1 month ago (2008-10-28 06:03:47 UTC) #7
LGTMN

-Ivan

Powered by Google App Engine
This is Rietveld 408576698