[Webkit-unassigned] [Bug 31415] [v8] do not copy data twice when converting short v8 string into WebCore::String
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 24 14:55:21 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=31415
Darin Fisher (:fishd, Google) <fishd at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #43080|review? |review-
Flag| |
--- Comment #10 from Darin Fisher (:fishd, Google) <fishd at chromium.org> 2009-11-24 14:55:20 PST ---
(From update of attachment 43080)
> Index: WebCore/bindings/v8/V8Binding.cpp
> +template <class S> struct StringTraits
> +{
> + static S getFromResource(WebCoreStringResource* resource);
> +
> + static S convertFromV8(v8::Handle<v8::String> v8String, int length);
how about naming these fromStringResource and fromV8String?
> +template<>
> +struct StringTraits<String>
> +{
> + static String getFromResource(WebCoreStringResource* resource) {
> + return resource->webcoreString();
> + }
please place the opening bracket on a new line per webkit style. same goes
for the other functions in this patch.
> + static AtomicString convertFromV8(v8::Handle<v8::String> v8String, int length) {
...
> + return AtomicString(inlineBuffer, length);
> + } else {
nit: no need for else after return.
R- because of style issues. otherwise, the substance looks good.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list