Ignore:
Timestamp:
Mar 29, 2018, 12:09:01 PM (7 years ago)
Author:
[email protected]
Message:

ArrayMode should not try to get the DFG to think it can convert TypedArrays
https://bugs.webkit.org/show_bug.cgi?id=184137

Reviewed by Saam Barati.

  • dfg/DFGArrayMode.cpp:

(JSC::DFG::ArrayMode::fromObserved):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGArrayMode.cpp

    r229842 r230078  
    119119
    120120    default:
     121        // If we have seen multiple TypedArray types, or a TypedArray and non-typed array, it doesn't make sense to try to convert the object since you can't convert typed arrays.
     122        if (observed & ALL_TYPED_ARRAY_MODES)
     123            return ArrayMode(Array::Generic, nonArray, Array::AsIs).withProfile(locker, profile, makeSafe);
     124
    121125        if ((observed & asArrayModes(NonArray)) && profile->mayInterceptIndexedAccesses(locker))
    122126            return ArrayMode(Array::SelectUsingPredictions).withSpeculationFromProfile(locker, profile, makeSafe);
Note: See TracChangeset for help on using the changeset viewer.