v8/test/cctest/heap
Pierre Langlois 74565bf390 [test] Make full space simulation work with --no-inline-new.
When inlined allocations are disabled, the space->limit() does not point to the
end of the current page. Instead, it points to the current allocation pointer so
is the same as space->top().

See how the limit is computed, if heap()->inline_allocation_disabled(), then the
limit will be the same as the requested allocation area:

```
Address SpaceWithLinearArea::ComputeLimit(Address start, Address end,
                                          size_t min_size) {
  DCHECK_GE(end - start, min_size);

  if (heap()->inline_allocation_disabled()) {
    // Fit the requested area exactly.
    return start + min_size;
  } else if (SupportsInlineAllocation() && AllocationObserversActive()) {
    // ...
  } else {
    // The entire node can be used as the linear allocation area.
    return end;
  }
}
```

If we want to simulate filling up a whole page in the new space, we can instead
look at the ToSpace's page_high() which will be the end of the current page in
which we're allocating.

Bug: v8:9906
Change-Id: I81113d151bc083cd22d17ea1a4fbae7fef9dff6d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1886914
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Commit-Queue: Pierre Langlois <pierre.langlois@arm.com>
Cr-Commit-Position: refs/heads/master@{#64612}
2019-10-29 13:28:46 +00:00
..
heap-tester.h [heap] Add flag to promote young objects in MC 2019-10-17 13:38:21 +00:00
heap-utils.cc [test] Make full space simulation work with --no-inline-new. 2019-10-29 13:28:46 +00:00
heap-utils.h [test] Make full space simulation work with --no-inline-new. 2019-10-29 13:28:46 +00:00
test-alloc.cc Revert "[heap] Remove ClearRecordedSlots" 2019-08-22 12:06:36 +00:00
test-array-buffer-tracker.cc Reland x6 [arraybuffer] Rearchitect backing store ownership 2019-09-09 13:07:42 +00:00
test-compaction.cc [heap] Add flag to promote young objects in MC 2019-10-17 13:38:21 +00:00
test-concurrent-marking.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-embedder-tracing.cc [api] Move forward deprecations in EmbedderHeapTracer and its references 2019-10-18 19:55:26 +00:00
test-external-string-tracker.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-heap.cc [test] Make full space simulation work with --no-inline-new. 2019-10-29 13:28:46 +00:00
test-incremental-marking.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-invalidated-slots.cc [heap] Insert directly into RememberedSet and remove StoreBuffer 2019-10-07 10:19:53 +00:00
test-iterators.cc [roheap] Move read_only_heap() from heap to isolate 2019-07-05 14:25:00 +00:00
test-lab.cc [torque] Use generated instance types, part 1 2019-10-28 18:30:31 +00:00
test-mark-compact.cc [torque] Use generated instance types, part 1 2019-10-28 18:30:31 +00:00
test-page-promotion.cc [heap] Add flag to promote young objects in MC 2019-10-17 13:38:21 +00:00
test-spaces.cc [heap] Add base class for LargeObjectSpaces 2019-10-25 09:22:57 +00:00
test-unmapper.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-weak-references.cc [heap] Add flag to promote young objects in MC 2019-10-17 13:38:21 +00:00