Thanks to r136479, we can now initialize V8 integers in IntegerCache's constructor. We can remove IntegerCache::m_initialized, which slightly improves performance. BTW, v8Integer() looks much slower than JSC's one. (https://docs.google.com/a/google.com/spreadsheet/ccc?key=0ArGPzKNdEGeQdGItaF8yVVVMM2trS3R5VW1heDFmcGc#gid=2)
Created attachment 177434 [details] Patch
I'll replace Persistent handles with ScopedPersistents in a follow-up patch.
Comment on attachment 177434 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=177434&action=review > Source/WebCore/bindings/v8/V8ValueCache.cpp:103 > -void IntegerCache::createSmallIntegers(v8::Isolate* isolate) > +IntegerCache::IntegerCache() I probably would have passed in isolate to the constructor, but this is fine too.
(In reply to comment #2) > I'll replace Persistent handles with ScopedPersistents in a follow-up patch. Thanks.
Committed r136590: <http://trac.webkit.org/changeset/136590>
Comment on attachment 177434 [details] Patch Landed manually.