v8/test/mjsunit/baseline
Victor Gomes 63be6dde31 [baseline] Update EstimateInstructionSize
Adds a minimum estimated size.

Data suggests that estimated instruction size (+ relocation info size)
is linear to bytecode array length. This CL adds a constant for this
equation. The ratio remains the same.

This is important, because we want to increase success rate of
estimation when compiling on-heap.

When off-heap, we round up the assembler buffer to 4kB, so this CL
will only impact JS functions with more than 585 bytecodes, i.e, the
new added constant will be negligible.

Note: Relocation info (for Sparkplug) is usually so small that it is
not useful to have a separate zone for this.

Bug: v8:11872
Change-Id: I789e72f80b970d1f541965e7ae808b61c8174326
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3069155
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#76144}
2021-08-06 17:40:26 +00:00
..
batch-compilation.js [baseline] Update EstimateInstructionSize 2021-08-06 17:40:26 +00:00
cross-realm.js [sparkplug/ia32] Fix argc clobbering 2021-03-30 12:03:01 +00:00
flush-baseline-code.js [sparkplug] Add support to flush only baseline code 2021-08-04 08:22:18 +00:00
flush-only-baseline-code.js [sparkplug] Add support to flush only baseline code 2021-08-04 08:22:18 +00:00
test-baseline-module-helper.mjs [sparkplug] CompileWithBaseline to Compiler::CompileBaseline 2021-02-17 16:01:45 +00:00
test-baseline-module.mjs [sparkplug] Add always_sparkplug variant 2021-03-19 09:52:50 +00:00
test-baseline.js [interpreter] Remove unused interpreter intrinsics 2021-06-17 13:43:41 +00:00
test-osr.js [test] Force more flags for Sparkplug OSR Test 2021-04-15 16:14:30 +00:00
verify-bytecode-offsets.js Fix d8.test.verifySourcePositions 2021-04-07 08:59:13 +00:00