v8/test
Benedikt Meurer ea4206556e [counters] Introduce proper bottleneck for FunctionCallback.
API calls made via the CallApiCallback builtin, which is used from the
ICs and optimized code, are currently misattributed to the wrong counter
InvokeFunctionCallback instead of FunctionCallback. In addition we don't
use the C trampoline when only runtime call stats are enabled, but the
Chrome DevTools profiler is not active, which means that these calls
will not be attrituted properly at all, and that had to be worked around
using all kinds of tricks (i.e. disabling fast-paths in ICs when RCS is
active and not inlining calls/property accesses into optimized code
depending on the state of RCS).

All of this was really brittle and only due to the fact that the central
builtin didn't properly check for RCS (in addition to checking for the
CDT profiler). With this fix it's now handled in a central place and
attributed to the correct category, so user code doesn't need to worry
about RCS anymore and can just call straight into the fast-path.

Drive-by-fix: Do the same for AccessorInfo getter calls, which share the
core hand-written native code with the API callback logic.

Bug: v8:9183
Change-Id: Id0cd99d3dd676635fe3272b67cd76a19a9a9cea4
Cq-Include-Trybots: luci.chromium.try:linux-rel,win7-rel
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1651470
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62109}
2019-06-12 09:04:38 +00:00
..
benchmarks [test] Skip flaky test on predictable mode 2019-05-07 13:57:18 +00:00
cctest Remove always-enabled --harmony-hashbang flag 2019-06-11 15:47:08 +00:00
common Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
debugger Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
fuzzer Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
inspector [wasm] use standard WebAssembly stack trace format 2019-06-11 18:03:24 +00:00
intl [Intl] Fix RegExp [\W] with i flag 2019-06-12 06:18:08 +00:00
js-perf-test add micro-benchmark for Proxy with PreventExtensions trap 2019-06-11 17:27:36 +00:00
memory Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
message [wasm] use standard WebAssembly stack trace format 2019-06-11 18:03:24 +00:00
mjsunit [wasm] use standard WebAssembly stack trace format 2019-06-11 18:03:24 +00:00
mkgrokdump [heap] Update HeapIterator and space iterator APIs to match other iterators 2019-05-31 12:59:07 +00:00
mozilla Reland "[array] Move Array#sort pre-processing to Torque" 2019-05-24 12:13:17 +00:00
preparser Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
test262 Remove always-enabled --harmony-hashbang flag 2019-06-11 15:47:08 +00:00
torque [torque] Lint errors for unused macros 2019-06-11 13:14:08 +00:00
unittests [counters] Introduce proper bottleneck for FunctionCallback. 2019-06-12 09:04:38 +00:00
wasm-api-tests [wasm-c-api] Add tests and fixes 2019-05-28 09:57:04 +00:00
wasm-js Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
wasm-spec-tests [wasm] Update spec tests 2019-05-22 14:58:45 +00:00
webkit Add quotes around unexpected token SyntaxError 2019-06-11 06:11:58 +00:00
BUILD.gn [wasm-c-api] Add tests and fixes 2019-05-28 09:57:04 +00:00
OWNERS [owners] Make test/ owned by COMMON_OWNERS 2019-06-06 20:56:09 +00:00