Ignore:
Timestamp:
Sep 17, 2013, 6:06:49 PM (12 years ago)
Author:
[email protected]
Message:

Use CheckStructure for checking the types of typed arrays whenever possible
https://bugs.webkit.org/show_bug.cgi?id=121514

Reviewed by Oliver Hunt.

  • bytecode/ArrayProfile.cpp:

(JSC::ArrayProfile::computeUpdatedPrediction):

  • dfg/DFGArrayMode.cpp:

(JSC::DFG::ArrayMode::fromObserved):
(JSC::DFG::ArrayMode::refine):
(JSC::DFG::ArrayMode::originalArrayStructure):
(JSC::DFG::arrayClassToString):

  • dfg/DFGArrayMode.h:

(JSC::DFG::ArrayMode::ArrayMode):
(JSC::DFG::ArrayMode::arrayModesWithIndexingShape):

  • runtime/JSGlobalObject.h:

(JSC::JSGlobalObject::isOriginalTypedArrayStructure):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h

    r155711 r156017  
    424424        return m_typedArrays[toIndex(type)].structure.get();
    425425    }
     426    bool isOriginalTypedArrayStructure(Structure* structure)
     427    {
     428        TypedArrayType type = structure->classInfo()->typedArrayStorageType;
     429        if (type == NotTypedArray)
     430            return false;
     431        return typedArrayStructure(type) == structure;
     432    }
    426433
    427434    void* actualPointerFor(Special::Pointer pointer)
Note: See TracChangeset for help on using the changeset viewer.