v8/test/unittests
Clemens Hammacher 81c7135c84 [wasm] Check for UTF-8 validity of section names
According to the spec, section names must be valid UTF-8. This CL adds
a check for that.
Imported and exported names were already checked before.
In order to use the {consume_string} function from the
WasmSectionIterator, it moved it out of the ModuleDecoder into the
anonymous namespace. It now also gets a name for the string to be
parsed, for better error messages.

R=rossberg@chromium.org

Change-Id: I20b1ddb0bd1c7ada237d8303951073310fe1c714
Reviewed-on: https://chromium-review.googlesource.com/470207
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Andreas Rossberg <rossberg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44550}
2017-04-11 08:52:53 +00:00
..
api Never freeze/seal/preventExtensions objects with interceptors 2017-03-29 13:04:58 +00:00
asmjs [wasm][asm.js] Adding custom asm.js lexer. 2017-03-16 18:10:45 +00:00
base Fix CHECK_OP implementation in Release builds 2017-01-20 15:28:54 +00:00
compiler [turbofan] Add type to the allocation operator. 2017-04-07 08:32:12 +00:00
compiler-dispatcher [compiler-dispatcher] Just parse functions without SFI. 2017-04-10 09:29:50 +00:00
heap Reland of [heap] Fix CompactionSpace test and move to unittests 2017-04-05 07:36:15 +00:00
interpreter Revert "[ignition] Add call bytecodes for undefined receiver" 2017-04-11 06:47:01 +00:00
libplatform Make idle tasks optional in the default platform. 2017-03-07 13:37:41 +00:00
wasm [wasm] Check for UTF-8 validity of section names 2017-04-11 08:52:53 +00:00
zone Add RecyclingZoneAllocator for ZoneDeque. 2017-03-27 15:10:42 +00:00
BUILD.gn Reland "[snapshot] Move builtins generation into mksnapshot" 2017-04-07 13:31:29 +00:00
cancelable-tasks-unittest.cc Implement async AbortAll for the compiler dispatcher 2017-01-04 13:45:56 +00:00
char-predicates-unittest.cc [unibrow] remove mongolian vowel separator as white space. 2017-02-28 13:42:29 +00:00
counters-unittest.cc [counters] RuntimeStats: fix wrong bookkeeping when dynamically changing counters 2016-11-24 10:05:37 +00:00
DEPS Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
eh-frame-iterator-unittest.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
eh-frame-writer-unittest.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
locked-queue-unittest.cc Add lock-based unbounded queue 2015-11-18 10:54:13 +00:00
object-unittest.cc Add unittests to keep InstanceType lists in sync 2016-12-19 12:50: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 Make idle tasks optional in the default platform. 2017-03-07 13:37:41 +00:00
source-position-table-unittest.cc This CL enables precise source positions for all V8 compilers. It merges compiler::SourcePosition and internal::SourcePosition to a single class used throughout the codebase. The new internal::SourcePosition instances store an id identifying an inlined function in addition to a script offset. 2016-11-14 17:22:32 +00:00
test-utils.cc Disable other background modules while testing the CompilerDispatcher 2017-03-14 14:01:03 +00:00
test-utils.h Disable other background modules while testing the CompilerDispatcher 2017-03-14 14:01:03 +00:00
unicode-unittest.cc Fix out-of-range access in unibrow::Utf8::CalculateValue. 2016-11-22 09:27:59 +00:00
unittests.gyp Reland of [heap] Fix CompactionSpace test and move to unittests 2017-04-05 07:36:15 +00:00
unittests.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
unittests.status [asm.js] Widen test coverage to cctest and friends. 2017-03-28 08:00:40 +00:00
value-serializer-unittest.cc Reland of [wasm] Transferrable modules (patchset #1 id:1 of https://codereview.chromium.org/2762163002/ ) 2017-03-21 17:48:05 +00:00