v8/test
Clemens Hammacher b8f8860161 [wasm] [interpreter] Implement indirect function calls
This CL adds support for indirect function calls to the interpreter. It
can indirectly call other wasm function in the same instance, which are
then executed in the interpreter, or call imported functions.

Implementing this required some refactoring:
- The wasm interpreter now unwraps import wrappers on demand, instead
  of unwrapping all of them on instantiation and storing a vector of
  handles. This also avoids the DeferredHandleScope completely, instead
  we just store two global handles in the code map.
- The interpreter gets the code table, function tables and signature
  tables directly from the attached wasm instance object. This ensures
  that the interpreter sees all updates to tables that might have been
  performed by external code.
- There is now common functionality for calling a code object. This is
  used for direct calls to imported functions and for all indirect
  calls. As these code objects can also be wasm functions which should
  be executed in the interpreter itself, I introduce a struct to hold
  the outcome of calling the code object, or a pointer to
  InterpreterCode to be called in the interpreter.

R=ahaas@chromium.org
BUG=v8:5822

Change-Id: I20fb2ea007e79e5fcff9afb4b1ca31739ebcb83f
Reviewed-on: https://chromium-review.googlesource.com/458417
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44059}
2017-03-23 10:54:58 +00:00
..
benchmarks
cctest [wasm] [interpreter] Implement indirect function calls 2017-03-23 10:54:58 +00:00
common [wasm] [interpreter] Implement indirect function calls 2017-03-23 10:54:58 +00:00
debugger [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +00:00
fuzzer [wasm] compile fuzzer: initialize temporary before filling. 2017-03-01 17:33:29 +00:00
inspector [inspector] description for weak collections should not contain size 2017-03-22 21:35:14 +00:00
intl [test] Fix fullcode and ignition testing variants 2017-03-14 09:59:04 +00:00
js-perf-test [Test] Fix the regex in array JSPerfTest. 2017-03-22 10:09:45 +00:00
memory
message [asm.js] Add stress mode for the asm.js validator. 2017-03-23 08:54:05 +00:00
mjsunit [wasm] [interpreter] Implement indirect function calls 2017-03-23 10:54:58 +00:00
mozilla [regexp] Correct lastIndex behavior in RegExp.prototype[@@replace] 2017-02-16 09:21:37 +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 [test] Mark slow tests 2017-03-15 12:05:12 +00:00
unittests [Interpreter] Introduce strict equality bytecode that does not collect feedback. 2017-03-22 12:31:11 +00:00
webkit [unibrow] remove mongolian vowel separator as white space. 2017-02-28 13:42:29 +00:00
bot_default.gyp
bot_default.isolate
BUILD.gn Remove SIMD.js from V8. 2017-02-14 06:57:25 +00:00
default.gyp
default.isolate
optimize_for_size.gyp
optimize_for_size.isolate
perf.gyp
perf.isolate Remove SIMD.js from V8. 2017-02-14 06:57:25 +00:00