Implement Array::concat function in C++.
authorfeng@chromium.org <feng@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Oct 2008 14:47:50 +0000 (14:47 +0000)
committerfeng@chromium.org <feng@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Oct 2008 14:47:50 +0000 (14:47 +0000)
commit4c1a5810b9b2aae078ab2457732f544dceb97df8
tree0d237d1b4120a4d5ba072fd3d1dfe280f7745649
parent44340e39c56ac322aa0984bc9cbadeac032feb51
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.

Review URL: http://codereview.chromium.org/7990

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@625 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/array.js
src/factory.cc
src/factory.h
src/objects.cc
src/runtime.cc
src/runtime.h
test/mjsunit/array-concat.js