Ignore:
Timestamp:
May 12, 2014, 11:26:17 AM (11 years ago)
Author:
[email protected]
Message:

0.4% of PLT3 in JSCell::structure() below JSObject::visitChildren().
<https://webkit.org/b/132828>
<rdar://problem/16886285>

Reviewed by Michael Saboff.

  • runtime/JSObject.cpp:

(JSC::JSObject::visitButterfly):
(JSC::JSObject::visitChildren):

Use JSCell::structure(VM&) to reduce the number of hoops we jump
through to find Structures during marking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSObject.cpp

    r167394 r168631  
    166166    ASSERT(butterfly);
    167167   
    168     Structure* structure = this->structure();
     168    Structure* structure = this->structure(visitor.vm());
    169169   
    170170    size_t propertyCapacity = structure->outOfLineCapacity();
     
    215215    Butterfly* butterfly = thisObject->butterfly();
    216216    if (butterfly)
    217         thisObject->visitButterfly(visitor, butterfly, thisObject->structure()->outOfLineSize());
     217        thisObject->visitButterfly(visitor, butterfly, thisObject->structure(visitor.vm())->outOfLineSize());
    218218
    219219#if !ASSERT_DISABLED
Note: See TracChangeset for help on using the changeset viewer.