Description[turbofan] Sanitize typing rules for function calls.
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
Committed: https://crrev.com/3fbbfc38c22d123c629722a7c29cee952c7ad1d2
Cr-Commit-Position: refs/heads/master@{#31553}
Patch Set 1 #
Messages
Total messages: 8 (1 generated)
|