v8/test/unittests
Simon Zünd bdfd1e4b38 [torque] More flexibel and uniform error reporting
This CL changes the existing TorqueError struct into a more general
TorqueMessage by adding a "kind" enum. The contextual for lint errors
is removed and replaced by a list of TorqueMessages.

A MessageBuilder is introduced to help with the different
combinations of present information and method of reporting. A lint
error with custom SourcePosition can be reported like this:

Lint("naming convention error").Position(<src_pos_var>);

While a fatal error, with CurrentSourcePosition can be thrown
like this:

Error("something went horrible wrong").Throw();

This approach is both backwards compatible and should prove flexible
enough to add more information to messages or add other message kinds.

Bug: v8:7793
Change-Id: Ib04fa188e34b3e8e9a6526a086f80da8f690a6f5
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1617245
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61696}
2019-05-21 13:26:08 +00:00
..
api Reland "Move API-related files" 2019-05-17 12:52:27 +00:00
asmjs [ubsan] Fix errors related to AsmType 2019-01-07 13:07:26 +00:00
assembler Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
base test: Replace _TEST_CASE_ with _TEST_SUITE_. 2019-02-18 21:36:56 +00:00
compiler Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
compiler-dispatcher Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
heap [heap] Refactor MemoryController and HeapController 2019-05-17 20:17:37 +00:00
interpreter Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
libplatform [tracing] Implement RunsTasksOnCurrentThread for the worker task runner 2019-05-08 09:03:04 +00:00
parser Reland "Move API-related files" 2019-05-17 12:52:27 +00:00
regress [heap] Throw OOM when allocating FixedDoubleArrays with negative length 2019-03-06 10:55:42 +00:00
torque [torque] More flexibel and uniform error reporting 2019-05-21 13:26:08 +00:00
wasm Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
zone [zone] Remove segment pooling from accounting allocator 2019-03-01 09:25:48 +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 Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
bigint-unittest.cc Move number related files to src/numbers 2019-05-15 19:34:44 +00:00
BUILD.gn [heap] Make CodeObjectRegistry a separate class. 2019-05-16 18:41:33 +00:00
cancelable-tasks-unittest.cc [wasm] Reschedule compilation tasks 2019-01-17 18:27:08 +00:00
char-predicates-unittest.cc Move string-related files to src/strings 2019-05-21 07:17:48 +00:00
code-stub-assembler-unittest.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
code-stub-assembler-unittest.h Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
conversions-unittest.cc Move number related files to src/numbers 2019-05-15 19:34:44 +00:00
counters-unittest.cc Reland "Move logging and diagnostics related source files" 2019-05-20 09:54:57 +00:00
date-cache-unittest.cc Reland "Add test to show the crashing of TimeZone::AdoptDefault" 2019-05-16 09:38:43 +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 Reland "Move logging and diagnostics related source files" 2019-05-20 09:54:57 +00:00
eh-frame-writer-unittest.cc Reland "Move logging and diagnostics related source files" 2019-05-20 09:54:57 +00:00
locked-queue-unittest.cc Add lock-based unbounded queue 2015-11-18 10:54:13 +00:00
microtask-queue-unittest.cc Run correct MicrotaskQueue on MicrotasksScope instead of the default one 2019-04-11 09:35:12 +00:00
object-unittest.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
register-configuration-unittest.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
run-all-unittests.cc Reland "Add test to show the crashing of TimeZone::AdoptDefault" 2019-05-16 09:38:43 +00:00
source-position-table-unittest.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
strings-storage-unittest.cc Extend hash seed to 64 bits 2018-07-16 11:19:42 +00:00
test-helpers.cc Reland "Move API-related files" 2019-05-17 12:52:27 +00:00
test-helpers.h [Compiler] Remove CompilerDispatcherJob and use BackgroundCompileTask directly 2018-10-09 10:39:27 +00:00
test-utils.cc Reland "Move API-related files" 2019-05-17 12:52:27 +00:00
test-utils.h Reland "Move API-related files" 2019-05-17 12:52:27 +00:00
testcfg.py Reland "Preparing v8 to use with python3 /test" 2019-03-20 09:56:06 +00:00
unicode-unittest.cc Move string-related files to src/strings 2019-05-21 07:17:48 +00:00
unittests.status [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
utils-unittest.cc test: Replace _TEST_CASE_ with _TEST_SUITE_. 2019-02-18 21:36:56 +00:00
value-serializer-unittest.cc Reland "Move API-related files" 2019-05-17 12:52:27 +00:00