v8/test/unittests
Andreas Haas 148ef606a7 [wasm] Load thread-in-wasm flag from the isolate
The existing implementation embedded an isolate-specific pointer to the
thread-in-wasm flag in the wrapper code. However, when the module code
is shared among multiple workers, this can mean that the workers
share the same thread-in-wasm flag.

With this change we load the pointer to the flag at runtime from the
current isolate. Thereby the correct flag is used even when the same
code is executed on different workers.

Note that we could access the right flag address by going through the
root register. However, changing the code generation to use the root
register requires some inconvenient steps:
* Pass the isolate to the pipeline again, which we don't want.
* Change the WasmCallDescriptor to allow the use of the root register
  for wrappers but not for other code.
To avoid these issues, and allow the CL to be easy to merge back, we
got for the changes proposed here.

R=mstarzinger@chromium.org, ishell@chromium.org

Bug: v8:8533
Change-Id: If15565a7ad7cba835cfc1628e7a4d3fdef90a5c0
Reviewed-on: https://chromium-review.googlesource.com/c/1358518
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58044}
2018-12-05 15:10:11 +00:00
..
api Make Isolate::GetIncumbentContext() work fine with ASAN 2018-11-21 05:40:08 +00:00
asmjs [asm.js] Remove dead switch logic helper code. 2018-11-26 13:54:27 +00:00
assembler ppc64,aix: fixed Abort() calling sequence on Aix 2018-10-03 19:40:59 +00:00
base [scopes] Push unresolved variables at the back so we can MoveTail to rescope 2018-11-27 11:55:46 +00:00
compiler [cleanup] Remove unneeded Printable wrappers 2018-11-22 10:01:56 +00:00
compiler-dispatcher Reland "[Compiler] Introduce IsCompiledScope which prevents flushing of compiled code" 2018-11-30 22:13:14 +00:00
heap [heap] Reland improvements for embedder tracing 2018-11-26 17:44:10 +00:00
interpreter [interpreter] Store CreateObjectLiteral's result into the accumulator. 2018-11-08 10:31:45 +00:00
libplatform [cleanup] Mark libplatform methods in subclasses with override. 2018-09-14 16:43:37 +00:00
parser [cleanup] Refactor general tests to use default members. 2018-09-14 14:40:47 +00:00
torque [torque] fix bug in Stack::DeleteRange 2018-10-16 09:24:45 +00:00
wasm [wasm] Load thread-in-wasm flag from the isolate 2018-12-05 15:10:11 +00:00
zone [zone] Revert to previous zone allocation strategies due to severe memory regressions. 2018-11-27 12:55:45 +00:00
allocation-unittest.cc [cleanup] Mark test/ methods in subclasses with override. 2018-09-17 07:40:00 +00:00
background-compile-task-unittest.cc [ubsan] Port Smi to the new design 2018-11-05 20:52:51 +00:00
bigint-unittest.cc Reland: [cleanup] Refactor the Factory 2018-04-09 19:52:22 +00:00
BUILD.gn Reland: [wasm] Add more unit tests for trap handler 2018-11-29 16:33:10 +00:00
cancelable-tasks-unittest.cc Remove testing-only method and field from Cancelable 2018-11-09 16:27:20 +00:00
char-predicates-unittest.cc [cleanup] Make unicode predicate cache tables static 2018-11-14 15:33:45 +00:00
code-stub-assembler-unittest.cc [csa] re-schedule CSA graph 2018-11-13 17:12:01 +00:00
code-stub-assembler-unittest.h [cleanup] Refactor general tests to use default members. 2018-09-14 14:40:47 +00:00
counters-unittest.cc [cleanup] Mark test/ methods in subclasses with override. 2018-09-17 07:40:00 +00:00
DEPS Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
detachable-vector-unittest.cc Make DetachableVector accessible from builtins 2018-11-13 01:30:16 +00:00
eh-frame-iterator-unittest.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
eh-frame-writer-unittest.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
locked-queue-unittest.cc Add lock-based unbounded queue 2015-11-18 10:54:13 +00:00
microtask-queue-unittest.cc Reland "Implement Faster MicrotaskQueue Step 2" 2018-11-27 11:27:46 +00:00
object-unittest.cc [cleanup] Introduce STRUCT_MAPS_LIST generated from STRUCT_LIST. 2018-09-21 16:10:34 +00:00
register-configuration-unittest.cc Use static RegisterName function instead of RegisterConfiguration 2018-11-21 10:24:13 +00:00
run-all-unittests.cc [cleanup] Refactor general tests to use default members. 2018-09-14 14:40:47 +00:00
source-position-table-unittest.cc [cleanup] Refactor general tests to use default members. 2018-09-14 14:40:47 +00:00
strings-storage-unittest.cc Extend hash seed to 64 bits 2018-07-16 11:19:42 +00:00
test-helpers.cc [Compile] Refactor CompilerDispatcher for inner function compilation jobs 2018-09-20 14:06:39 +00:00
test-helpers.h [Compiler] Remove CompilerDispatcherJob and use BackgroundCompileTask directly 2018-10-09 10:39:27 +00:00
test-utils.cc [heap] Reimplement unmapper tests using tracking page allocator 2018-11-07 09:47:17 +00:00
test-utils.h [ubsan] Be more explicit about casting ObjectPtr 2018-11-29 09:44:34 +00:00
testcfg.py [test] Remove dead code from suites and tests 2018-02-01 14:12:49 +00:00
unicode-unittest.cc [base] Introduce VectorOf helper 2018-11-15 13:02:22 +00:00
unittests.status [wasm] Skip failing test on native arm/mips 2018-09-19 06:06:58 +00:00
utils-unittest.cc [turbofan] Add --trace-turbo-filter 2018-05-16 09:33:15 +00:00
value-serializer-unittest.cc Gracefully fail in ValueDeserializer. 2018-12-05 11:20:23 +00:00