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

Issue 24139004: Add toWebCoreString() / toWebCoreAtomicString() overloads taking a v8::String (Closed)

Created:
7 years, 3 months ago by do-not-use
Modified:
7 years, 3 months ago
Reviewers:
haraken
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, do-not-use
Visibility:
Public.

Description

Add toWebCoreString() / toWebCoreAtomicString() overloads taking a v8::String Add toWebCoreString() / toWebCoreAtomicString() overloads taking a v8::String input since as lot of callers already have a v8::String or already did a v8::Value::IsString() check. Those callers now use the faster overload instead of using the one that takes a v8::String as input. The new overload is faster because it does not use v8StringResource and thus bypasses useless checks when the input is already a v8::String. Note that the overload taking a v8::Value as input will eventually disappear. All callers should either use V8TRYCATCH_FOR_V8STRINGRESOURCE() macro instead of the v8::String overload depending on the input type. R=haraken BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157828

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix bad if condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -23 lines) Patch
M Source/bindings/v8/IDBBindingUtilities.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/ScriptEventListener.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/v8/ScriptPreprocessor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/ScriptValue.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 2 chunks +27 lines, -9 lines 0 comments Download
M Source/bindings/v8/V8Initializer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8WindowCustom.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8WorkerGlobalScopeCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-16 07:40:18 UTC) #1
haraken
LGTM https://codereview.chromium.org/24139004/diff/1/Source/bindings/v8/ScriptEventListener.cpp File Source/bindings/v8/ScriptEventListener.cpp (right): https://codereview.chromium.org/24139004/diff/1/Source/bindings/v8/ScriptEventListener.cpp#newcode150 Source/bindings/v8/ScriptEventListener.cpp:150: if (origin.ResourceName()->IsString() && !origin.ResourceName().IsEmpty()) Not related to your ...
7 years, 3 months ago (2013-09-16 12:06:48 UTC) #2
do-not-use
https://codereview.chromium.org/24139004/diff/1/Source/bindings/v8/ScriptEventListener.cpp File Source/bindings/v8/ScriptEventListener.cpp (right): https://codereview.chromium.org/24139004/diff/1/Source/bindings/v8/ScriptEventListener.cpp#newcode150 Source/bindings/v8/ScriptEventListener.cpp:150: if (origin.ResourceName()->IsString() && !origin.ResourceName().IsEmpty()) On 2013/09/16 12:06:48, haraken wrote: ...
7 years, 3 months ago (2013-09-16 12:10:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/24139004/7001
7 years, 3 months ago (2013-09-16 13:26:49 UTC) #4
commit-bot: I haz the power
7 years, 3 months ago (2013-09-16 15:40:57 UTC) #5
Message was sent while issue was closed.
Change committed as 157828

Powered by Google App Engine
This is Rietveld 408576698