Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Issue 939923002: [bindings] Break V8Binding::toDouble into fast inline and slower non-inline code paths. (Closed)

Created:
5 years, 10 months ago by vivekg_samsung
Modified:
5 years, 10 months ago
Reviewers:
haraken, vivekg, Jens Widell
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Break V8Binding::toDouble into fast inline and slower non-inline code paths. The call to value->IsNumber() is done twice once in the V8Binding.cpp:toDouble and inside the v8 code. This can be avoided if we invoke V8::Value->NumberValue() directly and catching any exception if thrown. Hence splitting toDouble into fast inilne path and slow non-inline path otherwise. R=haraken@chromium.org, jl@opera.com Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190569

Patch Set 1 #

Patch Set 2 : Review comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -7 lines) Patch
M Source/bindings/core/v8/V8Binding.h View 1 1 chunk +8 lines, -1 line 0 comments Download
M Source/bindings/core/v8/V8Binding.cpp View 1 1 chunk +3 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (3 generated)
vivekg
PTAL, thank you.
5 years, 10 months ago (2015-02-19 14:14:25 UTC) #3
Jens Widell
We have in the past seen rather dramatic performance improvements by eliminating v8::TryCatch objects from ...
5 years, 10 months ago (2015-02-19 14:20:48 UTC) #4
vivekg
On 2015/02/19 at 14:20:48, jl wrote: Thank you jl@ for your feedback. > We have ...
5 years, 10 months ago (2015-02-19 15:38:39 UTC) #5
Jens Widell
On 2015/02/19 15:38:39, vivekg_ wrote: > On 2015/02/19 at 14:20:48, jl wrote: > > Thank ...
5 years, 10 months ago (2015-02-19 15:44:27 UTC) #6
vivekg
On 2015/02/19 15:44:27, Jens Widell wrote: > On 2015/02/19 15:38:39, vivekg_ wrote: > > On ...
5 years, 10 months ago (2015-02-19 16:06:33 UTC) #7
vivekg
Done, PTAL.
5 years, 10 months ago (2015-02-20 04:18:26 UTC) #8
Jens Widell
On 2015/02/20 04:18:26, vivekg_ wrote: > Done, PTAL. That matches what I suggested. Now the ...
5 years, 10 months ago (2015-02-20 07:53:53 UTC) #9
vivekg
On 2015/02/20 at 07:53:53, jl wrote: > On 2015/02/20 04:18:26, vivekg_ wrote: > > Done, ...
5 years, 10 months ago (2015-02-20 08:36:33 UTC) #10
Jens Widell
On 2015/02/20 08:36:33, vivekg_ wrote: > On 2015/02/20 at 07:53:53, jl wrote: > > On ...
5 years, 10 months ago (2015-02-20 08:49:32 UTC) #11
vivekg
Some initial data: Test ==== <!DOCTYPE html> <body> <script src="../resources/runner.js"></script> <script> PerfTestRunner.measureTime({ description: "Micro benchmark ...
5 years, 10 months ago (2015-02-20 12:23:12 UTC) #12
Jens Widell
On 2015/02/20 12:23:12, vivekg_ wrote: > Some initial data: Thanks! That's comparing trunk and PS#2?
5 years, 10 months ago (2015-02-20 12:26:32 UTC) #13
vivekg
On 2015/02/20 at 12:26:32, jl wrote: > On 2015/02/20 12:23:12, vivekg_ wrote: > > Some ...
5 years, 10 months ago (2015-02-20 12:28:02 UTC) #14
vivekg
One more test with slight change of number value setting. Generating this value dynamically now ...
5 years, 10 months ago (2015-02-20 13:26:07 UTC) #15
Jens Widell
On 2015/02/20 13:26:07, vivekg_ wrote: > One more test with slight change of number value ...
5 years, 10 months ago (2015-02-20 14:17:16 UTC) #16
vivekg
<!DOCTYPE html> <body> <script src="../resources/runner.js"></script> <script> PerfTestRunner.measureTime({ description: "Micro benchmark to measure time taken by ...
5 years, 10 months ago (2015-02-20 14:38:57 UTC) #17
Jens Widell
Right. So, I think this is a simple and reasonable enough change that even a ...
5 years, 10 months ago (2015-02-20 15:00:29 UTC) #18
vivekg
On 2015/02/20 15:00:29, Jens Widell wrote: > Right. So, I think this is a simple ...
5 years, 10 months ago (2015-02-20 15:29:28 UTC) #19
Jens Widell
LGTM On 2015/02/20 15:29:28, vivekg_ wrote: > On 2015/02/20 15:00:29, Jens Widell wrote: > > ...
5 years, 10 months ago (2015-02-20 15:35:19 UTC) #20
vivekg
Thank you for your feedback. :)
5 years, 10 months ago (2015-02-20 15:39:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/939923002/20001
5 years, 10 months ago (2015-02-20 15:40:59 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 15:44:56 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190569

Powered by Google App Engine
This is Rietveld 408576698