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

Issue 576323004: Drop unnecessary v8::TryCatch in V8StringResource::prepare() (Closed)

Created:
6 years, 3 months ago by Jens Widell
Modified:
6 years, 3 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Skip unnecessary v8::TryCatch in V8StringResource::prepare() Since we're only interested in detecting and propagating an exception, check whether v8::Value::ToString()'s return value is an empty handle instead of using a v8::TryCatch local. This is faster, since initializing a v8::TryCatch has non-zero cost, and should also be less binary code (v8::Handle::IsEmpty() is inlined and simply a null check.) BUG=413257 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182476

Patch Set 1 #

Patch Set 2 : adjust line nr in expected test output #

Patch Set 3 : adjust more test expected output files #

Patch Set 4 : rebased #

Patch Set 5 : attempt at fixing before-unload-return-bad-value.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M LayoutTests/fast/events/before-unload-return-bad-value.html View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M LayoutTests/platform/linux/storage/websql/sql-error-codes-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/mac/storage/websql/sql-error-codes-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/sql-error-codes-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/V8StringResource.h View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Jens Widell
PTAL
6 years, 3 months ago (2014-09-19 12:10:01 UTC) #2
haraken
LGTM
6 years, 3 months ago (2014-09-19 12:31:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/576323004/1
6 years, 3 months ago (2014-09-19 12:51:31 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/25604)
6 years, 3 months ago (2014-09-19 13:54:19 UTC) #7
Jens Widell
On 2014/09/19 13:54:19, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-09-19 14:19:06 UTC) #8
haraken
On 2014/09/19 14:19:06, Jens Widell wrote: > On 2014/09/19 13:54:19, I haz the power (commit-bot) ...
6 years, 3 months ago (2014-09-19 14:33:19 UTC) #9
Jens Widell
On 2014/09/19 14:33:19, haraken(OOO til Sep 21) wrote: > On 2014/09/19 14:19:06, Jens Widell wrote: ...
6 years, 3 months ago (2014-09-19 15:33:29 UTC) #10
Jens Widell
I've updated the expected output of sql-error-codes.html; I think the old line number was due ...
6 years, 3 months ago (2014-09-23 05:51:28 UTC) #11
haraken
On 2014/09/23 05:51:28, Jens Widell wrote: > I've updated the expected output of sql-error-codes.html; I ...
6 years, 3 months ago (2014-09-23 05:53:01 UTC) #12
Jens Widell
On 2014/09/23 05:53:01, haraken wrote: > On 2014/09/23 05:51:28, Jens Widell wrote: > > I've ...
6 years, 3 months ago (2014-09-23 06:30:10 UTC) #13
Jens Widell
On 2014/09/23 06:30:10, Jens Widell wrote: > On 2014/09/23 05:53:01, haraken wrote: > > On ...
6 years, 3 months ago (2014-09-23 08:30:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/576323004/80001
6 years, 3 months ago (2014-09-23 08:30:42 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 08:56:30 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 182476

Powered by Google App Engine
This is Rietveld 408576698