v8/test
Enrico Bacis d74ec7efa8 [wasm] Add tests for grow_memory inside functions
This CL introduces 6 tests that verify that the effects of a grow_memory
instruction executed inside a function are visible also from the caller of
the function.

The tests verify that:

 * the current_memory instruction returns the correct value after
 returning from a function that grew memory;

 * accessing a memory page that has been created inside a function does
 not trap in the caller;

 * when a function grows the memory and then store something in the grown
 memory, the caller always reads from the grown memory. This checks that
 the memory start address gets updated in the caller (the memory buffer
 could in fact be relocated by the grow_memory instruction).

These tests are implemented for direct and indirect function calls.

R=ahaas@chromium.org,clemensh@chromium.org

Change-Id: Iac8db0fa7a6dd6f530e090af5423fc165d87e863
Reviewed-on: https://chromium-review.googlesource.com/616150
Commit-Queue: Enrico Bacis <enricobacis@google.com>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47398}
2017-08-17 12:35:51 +00:00
..
benchmarks Use --opt instead of --crankshaft in tests. 2017-04-28 14:20:39 +00:00
cctest Revert "[Compiler] Remove CompileDebugCode and EnsureBytecode and replace with Compile" 2017-08-17 11:00:15 +00:00
common [wasm] Naming consistency for min/max pages and sizes in wasm-module.h 2017-08-10 15:43:10 +00:00
debugger Revert "[Compiler] Remove CompileDebugCode and EnsureBytecode and replace with Compile" 2017-08-17 11:00:15 +00:00
fuzzer add gn jumbo build support 2017-08-09 09:05:29 +00:00
inspector Revert "[Compiler] Remove CompileDebugCode and EnsureBytecode and replace with Compile" 2017-08-17 11:00:15 +00:00
intl Fix common misspellings 2017-08-02 09:35:28 +00:00
js-perf-test Add benchmark for TypedArray.prototype.set from array-like 2017-08-14 19:45:49 +00:00
memory
message [test] Add call-undeclared-constructor message test. 2017-08-02 07:31:31 +00:00
mjsunit [wasm] Add tests for grow_memory inside functions 2017-08-17 12:35:51 +00:00
mkgrokdump Fix compilation failure due to overload of virtual function 2017-05-24 21:19:48 +00:00
mozilla Enable --harmony-strict-legacy-accessor-builtins by default 2017-08-02 21:30:57 +00:00
preparser
promises-aplus Fix common misspellings 2017-08-02 09:35:28 +00:00
test262 Fix common misspellings 2017-08-02 09:35:28 +00:00
unittests [turbofan] Never generate loop exit phis for the accumulator 2017-08-17 05:09:31 +00:00
wasm-spec-tests [wasm] Update spec tests 2017-07-25 14:55:07 +00:00
webkit Fix common misspellings 2017-08-02 09:35:28 +00:00
bot_default.gyp [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
bot_default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
BUILD.gn [wasm] Remove the wasm-asmjs fuzzer 2017-06-21 10:59:35 +00:00
default.gyp [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
optimize_for_size.gyp
optimize_for_size.isolate
perf.gyp
perf.isolate