⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243268 in webkit


Ignore:
Timestamp:
Mar 20, 2019, 5:40:04 PM (7 years ago)
Author:
sbarati@apple.com
Message:

GetCallee does not report the correct type in AI
https://bugs.webkit.org/show_bug.cgi?id=195981

Reviewed by Yusuke Suzuki.

I found this as part of my work in:
https://bugs.webkit.org/show_bug.cgi?id=195924

I'm not sure how to write a test for it.

GetCallee was always reporting that the result is SpecFunction. However,
for eval, it may result in just a JSCallee object, which is not a JSFunction.

  • dfg/DFGAbstractInterpreterInlines.h:

(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r243254 r243268  
     12019-03-20  Saam Barati  <sbarati@apple.com>
     2
     3        GetCallee does not report the correct type in AI
     4        https://bugs.webkit.org/show_bug.cgi?id=195981
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        I found this as part of my work in:
     9        https://bugs.webkit.org/show_bug.cgi?id=195924
     10       
     11        I'm not sure how to write a test for it.
     12       
     13        GetCallee was always reporting that the result is SpecFunction. However,
     14        for eval, it may result in just a JSCallee object, which is not a JSFunction.
     15
     16        * dfg/DFGAbstractInterpreterInlines.h:
     17        (JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
     18
    1192019-03-20  Mark Lam  <mark.lam@apple.com>
    220
  • trunk/Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h

    r243232 r243268  
    27312731            }
    27322732        }
    2733         setTypeForNode(node, SpecFunction);
     2733        setTypeForNode(node, SpecFunction | SpecObjectOther);
    27342734        break;
    27352735       
Note: See TracChangeset for help on using the changeset viewer.