v8/test
Andreas Haas 1016e6257d [d8] Run the message loop in the same RealmScope as the script
In d8 a script is executed in a RealmScope. However, all micro task
which are created by the script are not executed within the RealmScope
at the moment. With this CL I move the execution of the micro task into
the RealmScope.

I thought about creating a new RealmScope for the micro tasks, but
(1) It did not fix the crashing repro;
(2) It seems wrong that the micro tasks are executed in a different
    realm than the script;

Therefore I just moved the execution of the micro tasks into the
RealmScope of the script.

Thereby I moved the execution tasks also into the Context::Scope of the
script. The problem is that the Context::Scope surrounds the RealmScope,
and when I to open the RealmScope before the Context::Scope, not even
the execution of the script works anymore.

R=yangguo@chromium.org

Bug: chromium:797846
Change-Id: If152af282beec8f0b0564dcc9682fee8588e142c
Reviewed-on: https://chromium-review.googlesource.com/856497
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50442}
2018-01-09 13:51:41 +00:00
..
benchmarks [test] Store outcomes in the testcase 2017-12-19 14:10:06 +00:00
cctest [snapshot] support attaching arbitrary v8::Data. 2018-01-09 12:06:40 +00:00
common Add saturating f32 to i32 conversion to WASM 2017-12-27 19:27:19 +00:00
debugger [test] Store expected outcomes in the testcase. 2017-12-18 14:51:20 +00:00
fuzzer [wasm][fuzzer] Generate correct tests with locals 2018-01-08 12:28:30 +00:00
inspector [test] Check output on the worker process. 2018-01-04 14:12:31 +00:00
intl [test] Store expected outcomes in the testcase. 2017-12-18 14:51:20 +00:00
js-perf-test [turbofan] Add benchmarks for String.prototype.charCodeAt to JSTests.json 2017-12-29 15:26:51 +00:00
memory [snapshot] add tracking for builtin snapshot size. 2017-08-31 07:29:31 +00:00
message [test] Check output on the worker process. 2018-01-04 14:12:31 +00:00
mjsunit [d8] Run the message loop in the same RealmScope as the script 2018-01-09 13:51:41 +00:00
mkgrokdump [test] Check output on the worker process. 2018-01-04 14:12:31 +00:00
mozilla [test] Check output on the worker process. 2018-01-04 14:12:31 +00:00
preparser [test] Store expected outcomes in the testcase. 2017-12-18 14:51:20 +00:00
test262 [ESNext] Implement optional catch binding 2018-01-08 18:09:34 +00:00
unittests Refactor bailout reasons 2018-01-04 19:08:45 +00:00
wasm-spec-tests [wasm] Update spec tests. 2017-12-22 13:31:22 +00:00
webkit [test] Check output on the worker process. 2018-01-04 14:12:31 +00:00
bot_default.gyp
bot_default.isolate
BUILD.gn
default.gyp
default.isolate
optimize_for_size.gyp
optimize_for_size.isolate
perf.gyp
perf.isolate Reland "Reland "[test] Creating command before execution phase."" 2017-12-04 13:40:29 +00:00