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

Issue 116983005: Use v8AtomicString instead of v8::String::NewFromUtf8 (Closed)

Created:
6 years, 11 months ago by haraken
Modified:
6 years, 11 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive
Visibility:
Public.

Description

Use v8AtomicString instead of v8::String::NewFromUtf8 We should use utility methods as much as possible. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164510

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -73 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 5 6 5 chunks +5 lines, -5 lines 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 3 4 5 6 6 chunks +6 lines, -6 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8SupportTestInterface.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceCheckSecurity.cpp View 1 2 3 4 5 6 5 chunks +5 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 6 3 chunks +7 lines, -7 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/IDBBindingUtilitiesTest.cpp View 1 2 3 4 5 6 5 chunks +7 lines, -7 lines 0 comments Download
M Source/bindings/v8/NPV8Object.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -14 lines 0 comments Download
M Source/bindings/v8/V8DOMConfiguration.h View 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M Source/bindings/v8/V8DOMConfiguration.cpp View 1 4 chunks +6 lines, -5 lines 0 comments Download
M Source/bindings/v8/V8PerContextData.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
haraken
PTAL
6 years, 11 months ago (2013-12-29 12:09:54 UTC) #1
sof
https://codereview.chromium.org/116983005/diff/1/Source/bindings/v8/V8DOMConfiguration.cpp File Source/bindings/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/116983005/diff/1/Source/bindings/v8/V8DOMConfiguration.cpp#newcode72 Source/bindings/v8/V8DOMConfiguration.cpp:72: functionDescriptor->Set(v8AtomicString(isolate, constant->name), v8::Integer::New(isolate, constant->value), static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete)); Possible to ...
6 years, 11 months ago (2013-12-29 13:20:11 UTC) #2
haraken
https://codereview.chromium.org/116983005/diff/1/Source/bindings/v8/V8DOMConfiguration.cpp File Source/bindings/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/116983005/diff/1/Source/bindings/v8/V8DOMConfiguration.cpp#newcode72 Source/bindings/v8/V8DOMConfiguration.cpp:72: functionDescriptor->Set(v8AtomicString(isolate, constant->name), v8::Integer::New(isolate, constant->value), static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete)); On 2013/12/29 ...
6 years, 11 months ago (2013-12-29 13:47:56 UTC) #3
sof
On 2013/12/29 13:47:56, haraken wrote: > https://codereview.chromium.org/116983005/diff/1/Source/bindings/v8/V8DOMConfiguration.cpp > File Source/bindings/v8/V8DOMConfiguration.cpp (right): > > https://codereview.chromium.org/116983005/diff/1/Source/bindings/v8/V8DOMConfiguration.cpp#newcode72 > ...
6 years, 11 months ago (2013-12-29 20:35:46 UTC) #4
dcarney
On 2013/12/29 20:35:46, sof wrote: > On 2013/12/29 13:47:56, haraken wrote: > > > https://codereview.chromium.org/116983005/diff/1/Source/bindings/v8/V8DOMConfiguration.cpp ...
6 years, 11 months ago (2013-12-29 21:43:14 UTC) #5
haraken
On 2013/12/29 21:43:14, dcarney wrote: > On 2013/12/29 20:35:46, sof wrote: > > On 2013/12/29 ...
6 years, 11 months ago (2013-12-30 04:44:50 UTC) #6
sof
On 2013/12/30 04:44:50, haraken wrote: > On 2013/12/29 21:43:14, dcarney wrote: > > On 2013/12/29 ...
6 years, 11 months ago (2013-12-30 11:53:41 UTC) #7
haraken
> > Then, as a general rule, how should we distinguish: > > > > ...
6 years, 11 months ago (2013-12-30 17:42:51 UTC) #8
eseidel
v8LongLivedAtom(String) v8TemporaryAtom(String) ?
6 years, 11 months ago (2013-12-30 18:38:05 UTC) #9
haraken
On 2013/12/30 18:38:05, eseidel wrote: > v8LongLivedAtom(String) > v8TemporaryAtom(String) > ? Yeah, I agree with ...
6 years, 11 months ago (2013-12-30 18:59:30 UTC) #10
sof
On 2013/12/30 18:59:30, haraken wrote: > On 2013/12/30 18:38:05, eseidel wrote: > > v8LongLivedAtom(String) > ...
6 years, 11 months ago (2013-12-30 19:14:47 UTC) #11
haraken
Either way, I reverted the controversial part from this CL. I just replaced v8::String::NewFromUtf8(kInternalizedString) with ...
6 years, 11 months ago (2014-01-01 02:41:53 UTC) #12
dcarney
lgtm https://codereview.chromium.org/116983005/diff/310001/Source/bindings/v8/ScriptDebugServer.cpp File Source/bindings/v8/ScriptDebugServer.cpp (right): https://codereview.chromium.org/116983005/diff/310001/Source/bindings/v8/ScriptDebugServer.cpp#newcode546 Source/bindings/v8/ScriptDebugServer.cpp:546: return m_isolate->ThrowException(v8::String::NewFromUtf8(m_isolate, "Debugging is not enabled.", v8::String::kNormalString)); kNormalString ...
6 years, 11 months ago (2014-01-01 13:13:48 UTC) #13
haraken
Thanks Dan, all comments addressed.
6 years, 11 months ago (2014-01-06 14:34:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/116983005/390001
6 years, 11 months ago (2014-01-06 14:34:25 UTC) #15
commit-bot: I haz the power
Failed to apply patch for Source/bindings/templates/interface.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 11 months ago (2014-01-06 14:34:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/116983005/480001
6 years, 11 months ago (2014-01-06 14:49:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/116983005/540002
6 years, 11 months ago (2014-01-06 15:08:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/116983005/620001
6 years, 11 months ago (2014-01-06 15:17:26 UTC) #19
commit-bot: I haz the power
6 years, 11 months ago (2014-01-06 16:17:28 UTC) #20
Message was sent while issue was closed.
Change committed as 164510

Powered by Google App Engine
This is Rietveld 408576698