v8/test/unittests
Andreas Haas 0ef8da2664 [wasm] Check code section bytes in the streaming decoder
The streaming decoder allocates the whole section buffer of the code
section when it reads the section length of the code section. Therefore
we have to check that the different parts of the code section actually
use all the bytes, and that the different parts of the code section do
not need more bytes than available. The check that all bytes are used
was missing in the case where the code section contained zero functions.

In addition, this CL adds some tracing to the streaming decoder which
may be useful in future debugging.

R=clemensh@chromium.org

Bug: chromium:783595
Change-Id: Icf056c25a3000b4a08a791939dab0ccde9fc3f80
Reviewed-on: https://chromium-review.googlesource.com/768788
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49380}
2017-11-15 12:42:54 +00:00
..
api [lazy-accessor-pairs] Don't take the fast paths if the context needs to be switched 2017-10-27 11:31:34 +00:00
asmjs [cleanup] Fix remaining (D)CHECK macro usages 2017-10-18 10:12:31 +00:00
base Reland "[Memory] Use OS::Allocate for all OS memory allocations." 2017-11-14 17:21:58 +00:00
compiler Revert "[TurboFan] Diagnostic code to track down bug in representation selection" 2017-11-14 09:26:51 +00:00
compiler-dispatcher [unittests] Add TestWithIsolate::RunJS helper method 2017-11-13 14:27:51 +00:00
heap Revert "[Memory] Move GetRandomMmapAddr from base::OS platform to v8::internal." 2017-10-18 18:48:27 +00:00
interpreter [jumbo] fix B macro/symbol clashes in arm64 builds 2017-11-09 09:33:45 +00:00
libplatform Reland "[platform] Implement TaskRunners in the DefaultPlatform" 2017-11-15 12:35:54 +00:00
parser [unittests] Add TestWithIsolate::RunJS helper method 2017-11-13 14:27:51 +00:00
wasm [wasm] Check code section bytes in the streaming decoder 2017-11-15 12:42:54 +00:00
zone [heap] Simplify and linearly scale ResourceConstraints::ConfigureDefaults. 2017-05-23 17:00:57 +00:00
bigint-unittest.cc [bigint] Fix StringToBigInt("") to return 0n. 2017-10-20 17:00:41 +00:00
BUILD.gn [bigint] Implement comparisons with Numbers/Strings 2017-10-19 07:25:38 +00:00
cancelable-tasks-unittest.cc Make CancelableTask ids unique 2017-08-02 16:10:42 +00:00
char-predicates-unittest.cc Use ICU for ID_START, ID_CONTINUE and WhiteSpace check 2017-06-14 20:32:49 +00:00
code-stub-assembler-unittest.cc Remove ComputeFlags, simply pass in Code::Kind instead of Code::Flags 2017-09-29 15:37:27 +00:00
code-stub-assembler-unittest.h [csa] Add constant folding more universally to CodeAssembler operators 2017-09-12 10:03:10 +00:00
counters-unittest.cc [RCS] Add explicit tests for function callbacks 2017-11-14 09:48:08 +00:00
DEPS Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
detachable-vector-unittest.cc [cleanup] Replace List with std::vector in api. 2017-09-28 09:32:18 +00:00
eh-frame-iterator-unittest.cc [turbofan] Avoid disallowed "using namespace" directive. 2017-08-31 11:52:15 +00:00
eh-frame-writer-unittest.cc [turbofan] Avoid disallowed "using namespace" directive. 2017-08-31 11:52:15 +00:00
locked-queue-unittest.cc Add lock-based unbounded queue 2015-11-18 10:54:13 +00:00
object-unittest.cc Remove UnseededNumberDictionary. 2017-11-07 11:45:30 +00:00
register-configuration-unittest.cc [Turbofan] Add concept of FP register aliasing on ARM 32. 2016-10-26 16:04:33 +00:00
run-all-unittests.cc [cleanup] use unique_ptr for the DefaultPlatform 2017-11-14 09:57:18 +00:00
source-position-table-unittest.cc [runtime] Allocate source position table before Code. 2017-10-20 10:58:52 +00:00
test-helpers.cc [unittests] Add TestWithIsolate::RunJS helper method 2017-11-13 14:27:51 +00:00
test-helpers.h [unittests] Add TestWithIsolate::RunJS helper method 2017-11-13 14:27:51 +00:00
test-utils.cc [RCS] Add explicit tests for function callbacks 2017-11-14 09:48:08 +00:00
test-utils.h [RCS] Add explicit tests for function callbacks 2017-11-14 09:48:08 +00:00
unicode-unittest.cc [unicode] Add tests for UTF-8 decoders + minor cleanups. 2017-09-29 13:18:52 +00:00
unittests.gyp [bigint] Implement comparisons with Numbers/Strings 2017-10-19 07:25:38 +00:00
unittests.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
unittests.status Enable RCS unittests again 2017-11-10 09:40:23 +00:00
value-serializer-unittest.cc Fix WebAssembly.Memory deserialization in more complex objects 2017-10-20 01:18:13 +00:00