Skip to content
  • oliver@apple.com's avatar
    fourthTier: testRunner should be able to tell you if a function is DFG compiled · 37172f80
    oliver@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=116847
    
    Reviewed by Mark Hahnenberg.
    
    Source/JavaScriptCore:
    
    * API/JSCTestRunnerUtils.cpp: Added.
    (JSC):
    (JSC::numberOfDFGCompiles):
    * API/JSCTestRunnerUtils.h: Added.
    (JSC):
    * JavaScriptCore.xcodeproj/project.pbxproj:
    * bytecode/CodeBlock.cpp:
    (JSC::CodeBlock::numberOfDFGCompiles):
    (JSC):
    * bytecode/CodeBlock.h:
    (CodeBlock):
    * dfg/DFGWorklist.cpp:
    (JSC::DFG::Worklist::runThread):
    * runtime/Executable.h:
    (JSC):
    * runtime/JSFunctionInlines.h: Added.
    (JSC):
    (JSC::JSFunction::JSFunction):
    (JSC::JSFunction::jsExecutable):
    (JSC::JSFunction::isHostFunction):
    (JSC::JSFunction::nativeFunction):
    (JSC::JSFunction::nativeConstructor):
    * runtime/Operations.h:
    
    Source/WebCore:
    
    Bail early if we're in the compilation thread. This is only relevant for
    debug dumps.
    
    No new tests becase no new behavior.
    
    * loader/cache/CachedScript.cpp:
    (WebCore::CachedScript::script):
    
    Tools:
    
    * DumpRenderTree/TestRunner.cpp:
    (numberOfDFGCompiles):
    (TestRunner::staticFunctions):
    
    LayoutTests:
    
    * fast/js/script-tests/dfg-min-max.js:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    37172f80