• gsathya's avatar
    [promises] Remove deferred object · 5668ce39
    gsathya authored
    This patch stores the promise, resolve, reject properties of the
    deferred object created by CreateInternalPromiseCapability and
    NewPromiseCapability directly on the promise (if the promise hasn't
    been fulfilled), otherwise they are stored on the
    PromiseReactionJobInfo.
    
    This patch removes the currently unused
    CreateInternalPromiseCapability and inlines the call to create the
    deferred promise object.
    
    NewPromiseCapability is the only function that works with a deferred.
    
    This patch results in a 8.5% improvement in benchmarks over 5 runs.
    
    BUG=v8:5343
    
    Review-Url: https://codereview.chromium.org/2590563003
    Cr-Commit-Position: refs/heads/master@{#41991}
    5668ce39
builtins-promise.cc 37.9 KB