• gsathya's avatar
    [promises] Refactor debug code · a2c15ba3
    gsathya authored
    -- Removes remaning debug from promise.js and moves it to c++
    -- Changes debug_id to be a smi in PromiseReactionJobInfo and
       PromiseResolveThenableJobInfo.
    -- Changes debug_name to be a smi in PromiseReactionJobInfo and
       PromiseResolveThenableJobInfo.
    -- Adds PromiseDebugActionName and PromiseDebugActionType enums
    -- Adds PromiseDebugActionNameToString and
       PromiseDebugActionTypeToString helper methods
    -- Changes variable `status` to be int in runtime functions.
    -- Changes debug_id to start from 1, not 0 for easier bookkeeping.
    
    BUG=v8:5343
    
    Review-Url: https://codereview.chromium.org/2606093002
    Cr-Commit-Position: refs/heads/master@{#42052}
    a2c15ba3
debug.h 27.6 KB