Two tweaks to improve Array instantiation performance.

1) For reference-type arrays, we no longer need to initialize to 'null' explicitly since 'undefined' works just as well.

2) Instead of caching a protoTypeArray and using for-in to copy expandos, cache the names and values in a pair of arrays.  Array iteration is generally faster than for-in.  This also uses the "static-initializer-inner-class" pattern to avoid lazy checks and also factor the code out.

Review by: bobv

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@3651 8db76d5a-ed1c-0410-87a9-c151d255dfc7
1 file changed