Changeset 259572 in webkit


Ignore:
Timestamp:
Apr 6, 2020 8:41:48 AM (4 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Put ensureStillAliveHere for Integer TypedArrays in GetByVal
https://bugs.webkit.org/show_bug.cgi?id=210047

Reviewed by Mark Lam.

While r258381 puts ensureStillAliveHere in FTL to keep base alive for float/double TypedArrays,
we need to do the same thing for integer TypedArrays too. This patch places it.

  • ftl/FTLLowerDFGToB3.cpp:

(JSC::FTL::DFG::LowerDFGToB3::compileGetByVal):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r259565 r259572  
     12020-04-06  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Put ensureStillAliveHere for Integer TypedArrays in GetByVal
     4        https://bugs.webkit.org/show_bug.cgi?id=210047
     5
     6        Reviewed by Mark Lam.
     7
     8        While r258381 puts ensureStillAliveHere in FTL to keep base alive for float/double TypedArrays,
     9        we need to do the same thing for integer TypedArrays too. This patch places it.
     10
     11        * ftl/FTLLowerDFGToB3.cpp:
     12        (JSC::FTL::DFG::LowerDFGToB3::compileGetByVal):
     13
    1142020-04-05  Gus Caplan  <me@gus.host> and Ross Kirsling  <ross.kirsling@sony.com>
    215
  • trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp

    r259463 r259572  
    47074707                if (isInt(type)) {
    47084708                    LValue result = loadFromIntTypedArray(pointer, type);
     4709                    // We have to keep base alive since that keeps storage alive.
     4710                    ensureStillAliveHere(base);
    47094711                    bool canSpeculate = true;
    47104712                    setIntTypedArrayLoadResult(result, type, canSpeculate);
Note: See TracChangeset for help on using the changeset viewer.