Ignore:
Timestamp:
Apr 30, 2018, 11:02:08 AM (7 years ago)
Author:
Yusuke Suzuki
Message:

[JSC] Remove arity fixup check if the number of parameters is 1
https://bugs.webkit.org/show_bug.cgi?id=183984

Reviewed by Mark Lam.

If the number of parameters is one (|this|), we never hit arity fixup check.
We do not need to emit arity fixup check code.

  • dfg/DFGDriver.cpp:

(JSC::DFG::compileImpl):

  • dfg/DFGJITCompiler.cpp:

(JSC::DFG::JITCompiler::compileFunction):

  • dfg/DFGJITCompiler.h:
  • ftl/FTLLink.cpp:

(JSC::FTL::link):

  • jit/JIT.cpp:

(JSC::JIT::compileWithoutLinking):

File:
1 edited

Legend:

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

    r222871 r231160  
    9090    // Make sure that any stubs that the DFG is going to use are initialized. We want to
    9191    // make sure that all JIT code generation does finalization on the main thread.
     92    vm.getCTIStub(arityFixupGenerator);
    9293    vm.getCTIStub(osrExitThunkGenerator);
    9394    vm.getCTIStub(osrExitGenerationThunkGenerator);
Note: See TracChangeset for help on using the changeset viewer.