v8/test/cctest/wasm
Vicky Kontoura eb0ef4d7c8 [wasm] Reverse count logic for the tiering of js-to-wasm wrappers
This CL reverses the count logic for the tiering strategy of the
js-to-wasm wrappers. The initial approach was that calls to each
function were counted up, until a threshold was reached and the function
would tier up. With this CL, each function is assigned a budget of calls
that can be handled through the generic wrapper. Calls are counted down
until the budget is exhausted, which will trigger the tier-up
for the function.

This approach comes with two advantages. Firstly, determining whether
a function's budget is exhausted is as simple as checking the flags set
from the decrement of the budget. Secondly, the code generated by the
generic wrapper does not depend on the specific value of the initial
budget.

Bug: v8:10982
Change-Id: I5e186c6cf836a9c197b41d0f7ad075b07c87a4da
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2532300
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Vicky Kontoura <vkont@google.com>
Cr-Commit-Position: refs/heads/master@{#71153}
2020-11-12 14:31:25 +00:00
..
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
test-c-wasm-entry.cc Use safe conversion helper to convert double to int64_t 2020-10-15 19:47:13 +00:00
test-compilation-cache.cc Reland "Reland "[wasm] Cache streaming compilation result"" 2020-02-03 13:49:18 +00:00
test-gc.cc [wasm-gc][bug] call_indirect should check for null table entries 2020-10-05 13:08:20 +00:00
test-grow-memory.cc [wasm][fuzzer] Merge redundant functions 2020-08-11 12:30:53 +00:00
test-jump-table-assembler.cc [cctest][wasm] Fix JumpTablePatchingStress on systems with 64k pages 2020-10-12 15:43:15 +00:00
test-liftoff-inspection.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-64.cc Reland "Add int64_t min and max to value helpers for test" 2020-10-27 23:20:41 +00:00
test-run-wasm-asmjs.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-atomics64.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-atomics.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-bulk-memory.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-exceptions.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-interpreter.cc [wasm][cleanup] Rename kLocal<type> constants -> k<type>Code 2020-09-29 08:48:21 +00:00
test-run-wasm-js.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-module.cc [wasm][memory64] Start implementing the memory64 proposal 2020-09-24 09:38:08 +00:00
test-run-wasm-sign-extension.cc [wasm] Remove Sign Extension flag, and helper functions 2019-12-06 13:14:44 +00:00
test-run-wasm-simd-liftoff.cc [wasm-simd] Rename shuffle & swizzle instructions to match spec 2020-09-25 19:07:12 +00:00
test-run-wasm-simd-scalar-lowering.cc [wasm-simd][scalar-lowering] Fix lowering of narrowing 2020-10-01 21:01:56 +00:00
test-run-wasm-simd.cc [scalar-lowering] Implement lowering for load zero 2020-11-10 02:39:44 +00:00
test-run-wasm-wrappers.cc [wasm] Reverse count logic for the tiering of js-to-wasm wrappers 2020-11-12 14:31:25 +00:00
test-run-wasm.cc [wasm-gc][bug] call_indirect should check for null table entries 2020-10-05 13:08:20 +00:00
test-streaming-compilation.cc [test] Fix platform lifetime in test-streaming-compilation 2020-11-03 15:06:26 +00:00
test-wasm-breakpoints.cc [wasm][debug] Fix DebugInfo deadlock 2020-09-14 16:54:06 +00:00
test-wasm-codegen.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-debug-evaluate.cc Add the remaining spaces to the WebAssembly JS debug proxy 2020-10-06 15:07:51 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Faster wasm-to-js calls with arguments mismatch 2020-07-28 15:53:21 +00:00
test-wasm-metrics.cc (Step 1 of 2): Prepping Wasm events in the Recorder interface 2020-11-09 15:29:14 +00:00
test-wasm-serialization.cc [wasm] Fix tier down after deserialization 2020-08-18 15:15:53 +00:00
test-wasm-shared-engine.cc [wasm] Allow specifying larger code space limits 2020-08-28 16:25:36 +00:00
test-wasm-stack.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
test-wasm-trap-position.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
wasm-atomics-utils.h [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
wasm-run-utils.cc [wasm-gc][bug] call_indirect should check for null table entries 2020-10-05 13:08:20 +00:00
wasm-run-utils.h [wasm-gc][bug] Fix signature canonicalization 2020-10-05 16:16:51 +00:00