• Benedikt Meurer's avatar
    [builtins] Use appropriate ConvertReceiverMode in Promise builtins. · 6b050c03
    Benedikt Meurer authored
    The Promise builtins call out to arbitrary JavaScript a lot, but always
    use the generic Call builtin with the "any" mode, which means that the
    builtin has to dispatch based on the type of receiver. Yet these
    builtins always know for sure that the receiver is either undefined or
    definitely not null or undefined. So this changes the builtins to pass
    the correct ConvertReceiverMode and thus save a couple of checks.
    
    Bug: v8:7253
    Change-Id: I4efbc1e379169cbeefc40e5455713cd7fbe947ed
    Reviewed-on: https://chromium-review.googlesource.com/850000
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#50359}
    6b050c03
builtins-promise-gen.cc 82.9 KB