RESOLVED FIXED103862
[V8] Make v8::Null(isolate) faster by caching the value in V8 bindings
https://bugs.webkit.org/show_bug.cgi?id=103862
Summary [V8] Make v8::Null(isolate) faster by caching the value in V8 bindings
Kentaro Hara
Reported 2012-12-02 23:53:17 PST
Performance comparison between V8 and JSC revealed that DOM attributes that return v8::Null(isolate) are much slower than JSC. (https://docs.google.com/a/chromium.org/spreadsheet/ccc?key=0AlobCOyvTnPKdDg5S0dMdGRGRTRSaW53V1ppVzh6eXc#gid=2) We can optimize v8::Null(isolate) by caching the value to V8PerIsolateData. (Although I don't like the optimization, it looks difficult to optimize v8::Null(isolate) more.)
Attachments
Patch (13.73 KB, patch)
2012-12-03 00:01 PST, Kentaro Hara
no flags
Patch (13.62 KB, patch)
2012-12-03 23:56 PST, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2012-12-03 00:01:05 PST
Adam Barth
Comment 2 2012-12-03 08:03:42 PST
Comment on attachment 177196 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=177196&action=review > Source/WebCore/bindings/v8/V8PerIsolateData.h:143 > + v8::Handle<v8::Value> m_v8Null; Do we need to use a ScopedPersistent here? It's unclear to me whether V8 promises to return a persistent handel to null via v8::Null
Adam Barth
Comment 3 2012-12-03 10:17:25 PST
Comment on attachment 177196 [details] Patch This patch seems to be causing lots of crashes on the ews bots.
Kentaro Hara
Comment 4 2012-12-03 16:52:45 PST
(In reply to comment #3) > (From update of attachment 177196 [details]) > This patch seems to be causing lots of crashes on the ews bots. The problem will be fixed in bug 103949.
Kentaro Hara
Comment 5 2012-12-03 23:56:53 PST
WebKit Review Bot
Comment 6 2012-12-04 10:29:27 PST
Comment on attachment 177427 [details] Patch Clearing flags on attachment: 177427 Committed r136526: <http://trac.webkit.org/changeset/136526>
WebKit Review Bot
Comment 7 2012-12-04 10:29:30 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.