v8/test
Clemens Hammacher d50ebde72d [wasm] Refactor wasm::Result type
- Store std::string instead of std::unique_ptr<char[]> for the error
  message.
- Remove ErrorCode, which was just kSuccess and kError anyway. Error is
  now detected on whether error_msg_ is empty or not.
- Refactor constructors for perfect forwarding; this will allow us to
  implement Result<std::unique_ptr<X*>>.
- Refactor Decoder::toResult for perfect forwarding.
- Remove output operators (operator<<) for Result; it was only used in
  the error case anyway. Print error message directly instead.
  The operator was problematic since it assumed the existence of an
  output operator for every T which is used in Result<T>.
- Remove ModuleError and FunctionError, introduce general static
  Result<T>::Error method instead.

R=ahaas@chromium.org

Change-Id: I1e0f602a61ee9780fee2a3ed33147d431fb092ba
Reviewed-on: https://chromium-review.googlesource.com/472748
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44518}
2017-04-10 12:26:51 +00:00
..
benchmarks
cctest [wasm] Refactor wasm::Result type 2017-04-10 12:26:51 +00:00
common [wasm] Refactor wasm::Result type 2017-04-10 12:26:51 +00:00
debugger [build] Remove remaining disable-inspector options in GN 2017-04-05 17:59:07 +00:00
fuzzer [wasm] Implement extensible name section 2017-04-07 16:31:47 +00:00
inspector [wasm] Implement extensible name section 2017-04-07 16:31:47 +00:00
intl [asm.js] Widen test coverage to cctest and friends. 2017-03-28 08:00:40 +00:00
js-perf-test [Tests] Update resources for SixSpeed and JSTest tests. 2017-03-31 07:57:51 +00:00
memory
message [asm.js] Test and fix function table type checks. 2017-04-10 08:47:34 +00:00
mjsunit [parser] Skipping inner funcs: Fix untrue DCHECK. 2017-04-10 11:03:30 +00:00
mozilla [asm.js] Widen test coverage to cctest and friends. 2017-03-28 08:00:40 +00:00
preparser
promises-aplus
simdjs Store the FunctionTemplateInfo used to create remote objects in the map 2017-03-15 15:57:38 +00:00
test262 [SAB] Fix {newtarget-prototype-is-not-object,proto-from-ctor-realm} tests 2017-04-08 20:13:45 +00:00
unittests [wasm] Refactor wasm::Result type 2017-04-10 12:26:51 +00:00
webkit [asm.js] Widen test coverage to message tests. 2017-03-29 08:42:32 +00:00
bot_default.gyp [build] Make inspector the default in gyp 2017-03-30 15:08:31 +00:00
bot_default.isolate [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
BUILD.gn [build] Remove remaining disable-inspector options in GN 2017-04-05 17:59:07 +00:00
default.gyp [build] Make inspector the default in gyp 2017-03-30 15:08:31 +00:00
default.isolate Add inspector tests to default tests to run locally. 2016-11-04 08:50:07 +00:00
optimize_for_size.gyp
optimize_for_size.isolate [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
perf.gyp
perf.isolate Remove SIMD.js from V8. 2017-02-14 06:57:25 +00:00