• Clemens Hammacher's avatar
    [wasm] Use pending exceptions consistently · d6aed443
    Clemens Hammacher authored
    In our internal code, we should only use pending exceptions. They will
    be converted to scheduled exceptions on the API boundary.
    Hence, the ErrorThrower just sets a pending exception; it should never
    have to think about scheduled exceptions. The new
    ScheduledErrorThrower inherits from ErrorThrower and reschedules any
    pending exceptions in its destructor (turning them into scheduled
    exceptions).
    In some situations, there might already be a scheduled exception, e.g.
    when calling other API methods (v8::Value::Get). In this case, the
    ErrorThrower should also not set another pending exception. For the
    reasons mentioned above, this can only be handled in the
    ScheduledErrorThrower, which is used the API methods.
    
    This fixes one DCHECK failure and one TODO about scheduled exceptions
    if no instance can be created, because the start function throws.
    
    R=mtrofin@chromium.org, mstarzinger@chromium.org
    BUG=v8:6232,chromium:736256
    
    Change-Id: I4905be04c565df9495de18fb26adbb5c05d193d2
    Reviewed-on: https://chromium-review.googlesource.com/548641
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Reviewed-by: 's avatarMircea Trofin <mtrofin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#46314}
    d6aed443
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector 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...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests 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...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...