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

Issue 23578025: Remove useless calls to v8::Value::ToString() (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, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, do-not-use
Visibility:
Public.

Description

Remove useless calls to v8::Value::ToString() Remove useless calls to v8::Value::ToString() after we already checked that v8::Value::IsString() already returns true. Use v8::Handle::As<v8::String>() instead, which is more efficient as it does not call v8::Value::IsString() again. R=haraken BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157678

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M Source/bindings/v8/ScriptDebugServer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8NPUtils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8WindowCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-12 11:58:42 UTC) #1
haraken
LGTM. Another thing is that we're inconsistently mixing .As() and .Cast() in the code base. ...
7 years, 3 months ago (2013-09-12 12:35:18 UTC) #2
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/23578025/1
7 years, 3 months ago (2013-09-12 12:37:44 UTC) #3
commit-bot: I haz the power
7 years, 3 months ago (2013-09-12 13:48:56 UTC) #4
Message was sent while issue was closed.
Change committed as 157678

Powered by Google App Engine
This is Rietveld 408576698