v8/test/unittests/api
Ulan Degenbaev e423f00403 [api] Add a way to specify the max heap size in ResourceConstraints
The new API function is called ConfigureDefaultsFromHeapSize and
accepts two parameters: the initial and the maximum heap size.
Based on the given limits the function computes the default size
for the young and the old generation.

The patch also cleans up the existing functions to make them
consistent in terms of units and heap structure.

Bug: v8:9306
Change-Id: If2200a9cdb45b0b818a373207efe4e6426f7b688
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1631593
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62017}
2019-06-06 10:22:56 +00:00
..
access-check-unittest.cc Enable clang's -Wunreachable-code warning. 2017-12-04 13:09:25 +00:00
exception-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
interceptor-unittest.cc [cleanup] Refactor general tests to use default members. 2018-09-14 14:40:47 +00:00
isolate-unittest.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
remote-object-unittest.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
resource-constraints-unittest.cc [api] Add a way to specify the max heap size in ResourceConstraints 2019-06-06 10:22:56 +00:00
v8-object-unittest.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00