v8/test/unittests
Tobias Tebbi 8ed9be48d5 [torque] allow allocation of strings
This CL generalizes and improves how we handle allocations in Torque.

Overview of the changes:
- Remove obsolete special handling for JSObject classes, since it was
  incomplete: It breaks as soon as slack tracking is active.
- Handle array initialization using slices.
- Properly align allocation sizes. This enabled allocating strings.
- Port AllocateSeq{One,Two}ByteString to Torque, which is much easier
  now than the old CSA code since allocation size alignment and
  large-object space allocation just happen out-of-the-box.
- Remove obsolete or unnecessary intrinsics, some of them turn into
  macros in the torque_internal namespace.
- Distinguish between header size and overall size for ClassType,
  make size optional and only defined when it is statically known.


Bug: v8:10004 v8:7793
Change-Id: I623db233e7fb4deed54e8039ae0c24705e9a44e8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1932356
Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65397}
2019-12-10 09:22:11 +00:00
..
api Replace base::make_unique by std::make_unique 2019-09-10 11:21:51 +00:00
asmjs Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
assembler [arm64][cleanup] Remove CPURegister::Is and CPURegister::is 2019-11-14 12:58:09 +00:00
base [utils] Move {WhichPowerOf2} to base::bits 2019-11-08 09:45:50 +00:00
codegen [csa] move TNode to separate header 2019-09-12 14:48:03 +00:00
compiler [compiler] Fold constants for kInt64Mul 2019-12-03 15:15:47 +00:00
compiler-dispatcher [compile] Collect RuntimeCallStats for AssembleCode 2019-11-27 19:06:18 +00:00
date Reland "[d8] Remove maximum workers limitation" 2019-07-30 07:56:17 +00:00
diagnostics Move unittest files 2019-05-27 08:52:23 +00:00
execution [WeakRefs] Make cleanup callback run as a task 2019-07-30 12:19:39 +00:00
heap [heap] Reland: Reduce size of possibly empty buckets 2019-12-09 11:31:58 +00:00
interpreter [cleanup] Remove sloppy-ness from SetAccumulator 2019-11-14 10:47:59 +00:00
libplatform Reland "Refactor platform tests to avoid deprecated API" 2019-10-21 14:03:21 +00:00
logging Reland "Unconditionally enable snapshot builds and remove 'v8_use_snapshot'" 2019-10-16 06:01:05 +00:00
numbers [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
objects Introduce stack locals black list field on the ScopeInfo object 2019-12-09 10:25:27 +00:00
parser Move remaining files in src/ 2019-05-24 18:24:36 +00:00
profiler [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
regress Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
strings Fix some issues caught by _LIBCPP_DEBUG=0 2019-11-21 12:17:03 +00:00
tasks Replace base::make_unique by std::make_unique 2019-09-10 11:21:51 +00:00
torque [torque] allow allocation of strings 2019-12-10 09:22:11 +00:00
utils [test] Use Fuchsia test runner for unittests 2019-12-05 14:22:01 +00:00
wasm [wasm] Remove Sign Extension flag, and helper functions 2019-12-06 13:14:44 +00:00
zone [zone] Remove segment pooling from accounting allocator 2019-03-01 09:25:48 +00:00
BUILD.gn [test] Use Fuchsia test runner for unittests 2019-12-05 14:22:01 +00:00
DEPS Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
run-all-unittests.cc Reland "Add test to show the crashing of TimeZone::AdoptDefault" 2019-05-16 09:38:43 +00:00
test-helpers.cc Replace base::make_unique by std::make_unique 2019-09-10 11:21:51 +00:00
test-helpers.h [Compiler] Remove CompilerDispatcherJob and use BackgroundCompileTask directly 2018-10-09 10:39:27 +00:00
test-utils.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-utils.h [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
testcfg.py Reland "Preparing v8 to use with python3 /test" 2019-03-20 09:56:06 +00:00
unittests.status [ptr-compr] Added tagged equality cases to DecompressionOptimizer 2019-10-23 13:53:04 +00:00