Changeset 60797 in webkit


Ignore:
Timestamp:
Jun 7, 2010 1:01:29 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-07 Anton Muhin <antonm@chromium.org>

Reviewed by Nate Chapin.

[Chromium] convert a key to AtomicString in V8NodeList::namedPropertyGetter
https://bugs.webkit.org/show_bug.cgi?id=40238

Comparison to "length" below could be performed faster in this (major) case
as it would only require direct pointer comparison (cf. to full text
comparison if key is converted to WebCore::String.)

  • bindings/v8/custom/V8NodeListCustom.cpp: (WebCore::V8NodeList::namedPropertyGetter):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r60796 r60797  
     12010-06-07  Anton Muhin  <antonm@chromium.org>
     2
     3        Reviewed by Nate Chapin.
     4
     5        [Chromium] convert a key to AtomicString in V8NodeList::namedPropertyGetter
     6        https://bugs.webkit.org/show_bug.cgi?id=40238
     7
     8        Comparison to "length" below could be performed faster in this (major) case
     9        as it would only require direct pointer comparison (cf. to full text
     10        comparison if key is converted to WebCore::String.)
     11
     12        * bindings/v8/custom/V8NodeListCustom.cpp:
     13        (WebCore::V8NodeList::namedPropertyGetter):
     14
    1152010-06-07  Ariya Hidayat  <ariya.hidayat@codeaurora.org>
    216
  • trunk/WebCore/bindings/v8/custom/V8NodeListCustom.cpp

    r54305 r60797  
    4646    INC_STATS("DOM.NodeList.NamedPropertyGetter");
    4747    NodeList* list = V8NodeList::toNative(info.Holder());
    48     String key = toWebCoreString(name);
     48    AtomicString key = v8ValueToAtomicWebCoreString(name);
    4949
    5050    // Length property cannot be overridden.
Note: See TracChangeset for help on using the changeset viewer.