v8/test
clemensh ae1c5746f2 [wasm] Fix ToNumber conversion
There were two bugs, one partly hiding the other one:
1) We generate the ToNumber conversion for each WASM_TO_JS wrapper,
   even if the expected return type is void.
2) The return node in the WASM_TO_JS wrapper did not use the effect of
   the ToNumber conversion.

This CL fixes both, and adds test cases to check that we do throw an
error trying to convert (e.g.) Symbol to a number, but only if the
return type is not void.
Additional test check that a user-provided valueOf method is actually
called the correct number of times.

R=titzer@chromium.org, bradnelson@chromium.org
BUG=v8:4203

Review-Url: https://codereview.chromium.org/2552123004
Cr-Commit-Position: refs/heads/master@{#41552}
2016-12-07 13:54:27 +00:00
..
benchmarks
cctest [debug] do not retroactively apply script break points. 2016-12-07 11:44:12 +00:00
common [wasm] Remove raw byte pointers from WasmModule 2016-11-30 15:03:06 +00:00
debugger [debug] Partial reland of debug API deprecation 2016-12-02 09:02:01 +00:00
fuzzer [wasm] Remove raw byte pointers from WasmModule 2016-11-30 15:03:06 +00:00
inspector [inspector] Introduce debug::WasmScript 2016-12-06 13:20:36 +00:00
intl Fix the uppercasing of U+00E7(ç) and U+00F7(÷) 2016-11-28 22:55:49 +00:00
js-perf-test [test] Add performance test for closures. 2016-12-05 13:10:44 +00:00
memory [snapshot] support multiple contexts in the same snapshot. 2016-06-15 15:39:06 +00:00
message Ensure consistent error handling on 32b/64b platforms. 2016-11-29 15:06:05 +00:00
mjsunit [wasm] Fix ToNumber conversion 2016-12-07 13:54:27 +00:00
mozilla [wasm] Add guard regions to end of WebAssembly.Memory buffers 2016-11-17 20:29:13 +00:00
preparser
promises-aplus
simdjs [test] Deprecate test data download for most test suites 2016-08-08 12:39:48 +00:00
test262 Install the 'name' property in classes at runtime 2016-12-07 10:35:00 +00:00
unittests [Ignition/turbo] Add a NewWithSpread bytecode. 2016-12-07 08:35:09 +00:00
webkit [compiler] Make --debug-code the default in debug builds. 2016-12-02 11:36:55 +00:00
bot_default.gyp Add inspector tests to default tests to run locally. 2016-11-04 08:50:07 +00:00
bot_default.isolate [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
BUILD.gn Properly define v8_enable_inspector and its override in GN. 2016-11-21 19:29:38 +00:00
default.gyp Add inspector tests to default tests to run locally. 2016-11-04 08:50:07 +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 [test] Isolate files the perf runner depends on 2016-11-08 10:25:13 +00:00