• bmeurer's avatar
    [turbofan] Sanitize typing rules for function calls. · 3fbbfc38
    bmeurer authored
    Currently we (mostly) infer FunctionType for JSFunction constants, and
    match the FunctionType in the typing rule for JSCallFunction. This has
    several drawbacks for JavaScript, especially we don't have Constant
    types for global functions (i.e. String, Object, Reflect and friends).
    Plus the FunctionType magic doesn't actually buy us anything. So this
    changes the typing rule for HeapConstant constant to actually infer
    Constant types for JSFunction objects and moves the recognition of
    builtin functions to the typing rule for JSCallFunction.
    
    Also adapts the specialized lowering in JSTypedLowering to Constant
    functions instead of FunctionType, which has the additional advantage
    that we can do the receiver wrapping/converting based on the (known)
    SharedFunctionInfo.
    
    R=jarin@chromium.org
    
    Review URL: https://codereview.chromium.org/1420093005
    
    Cr-Commit-Position: refs/heads/master@{#31553}
    3fbbfc38
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
docs Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...