Handle rejected promises better for workers.

Rework how the rejected promises that v8 reports are processed in
a worker context, attaching the queue containing them to
WorkerScriptController, which is then drained by the worker thread's
task observer.

Along with that, make the individual rejected promises Oilpan friendly.

R=haraken
BUG=420515

Review URL: https://codereview.chromium.org/897523002

git-svn-id: svn://svn.chromium.org/blink/trunk@189785 bbb929c8-8fbe-4397-9dbb-9b2b20218538
9 files changed
tree: fb054f8eebacde910722230b066b15eb288960f4
  1. third_party/