• yangguo's avatar
    [debug] use catch prediction flag for promise rejections. · 6d0a4202
    yangguo authored
    This is in preparation to implementing exception prediction for async
    functions.  Each handler table entry can now predict "caught", "uncaught", or
    "promise". The latter indicates that the exception will lead to a promise
    rejection.
    
    To mark the relevant try-catch blocks, we add a new native syntax.
    try { } %catch (e) { } indicates a TryCatchStatement with the "promise"
    prediction.
    
    The previous implementation of using the function to tell the relevant
    try-catch apart from inner try-catch blocks will not work for async functions
    since these can have inner try-catch blocks inside the same function.
    
    BUG=v8:5167
    
    Review-Url: https://codereview.chromium.org/2161263003
    Cr-Commit-Position: refs/heads/master@{#37966}
    6d0a4202
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
fuzzer Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
ignition.gyp Loading commit data...
ignition.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...