Commit 6ac65cfb authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[cctest] Add V8_EXPORT_PRIVATE for cctest (heap part)

Bug: v8:9020

Change-Id: I67e052b3a15ef88c21d056ca824d32da68cbbcfd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1541049
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60548}
parent 5e8eb540
...@@ -53,7 +53,7 @@ class ArrayBufferTracker : public AllStatic { ...@@ -53,7 +53,7 @@ class ArrayBufferTracker : public AllStatic {
static bool ProcessBuffers(Page* page, ProcessingMode mode); static bool ProcessBuffers(Page* page, ProcessingMode mode);
// Returns whether a buffer is currently tracked. // Returns whether a buffer is currently tracked.
static bool IsTracked(JSArrayBuffer buffer); V8_EXPORT_PRIVATE static bool IsTracked(JSArrayBuffer buffer);
// Tears down the tracker and frees up all registered array buffers. // Tears down the tracker and frees up all registered array buffers.
static void TearDown(Heap* heap); static void TearDown(Heap* heap);
......
...@@ -33,7 +33,7 @@ struct MemoryChunkData { ...@@ -33,7 +33,7 @@ struct MemoryChunkData {
using MemoryChunkDataMap = using MemoryChunkDataMap =
std::unordered_map<MemoryChunk*, MemoryChunkData, MemoryChunk::Hasher>; std::unordered_map<MemoryChunk*, MemoryChunkData, MemoryChunk::Hasher>;
class ConcurrentMarking { class V8_EXPORT_PRIVATE ConcurrentMarking {
public: public:
// When the scope is entered, the concurrent marking tasks // When the scope is entered, the concurrent marking tasks
// are preempted and are not looking at the heap objects, concurrent marking // are preempted and are not looking at the heap objects, concurrent marking
......
...@@ -1057,8 +1057,9 @@ class NewFunctionArgs final { ...@@ -1057,8 +1057,9 @@ class NewFunctionArgs final {
static NewFunctionArgs ForWasm( static NewFunctionArgs ForWasm(
Handle<String> name, Handle<String> name,
Handle<WasmExportedFunctionData> exported_function_data, Handle<Map> map); Handle<WasmExportedFunctionData> exported_function_data, Handle<Map> map);
static NewFunctionArgs ForBuiltin(Handle<String> name, Handle<Map> map, V8_EXPORT_PRIVATE static NewFunctionArgs ForBuiltin(Handle<String> name,
int builtin_id); Handle<Map> map,
int builtin_id);
static NewFunctionArgs ForFunctionWithoutCode(Handle<String> name, static NewFunctionArgs ForFunctionWithoutCode(Handle<String> name,
Handle<Map> map, Handle<Map> map,
LanguageMode language_mode); LanguageMode language_mode);
......
This diff is collapsed.
...@@ -28,7 +28,7 @@ using InvalidatedSlots = std::map<HeapObject, int, Object::Comparer>; ...@@ -28,7 +28,7 @@ using InvalidatedSlots = std::map<HeapObject, int, Object::Comparer>;
// implementation with complexity O(m*log(m) + n), where // implementation with complexity O(m*log(m) + n), where
// m is the number of invalidated objects in the memory chunk. // m is the number of invalidated objects in the memory chunk.
// n is the number of IsValid queries. // n is the number of IsValid queries.
class InvalidatedSlotsFilter { class V8_EXPORT_PRIVATE InvalidatedSlotsFilter {
public: public:
explicit InvalidatedSlotsFilter(MemoryChunk* chunk); explicit InvalidatedSlotsFilter(MemoryChunk* chunk);
inline bool IsValid(Address slot); inline bool IsValid(Address slot);
......
...@@ -629,7 +629,7 @@ class MarkCompactCollector final : public MarkCompactCollectorBase { ...@@ -629,7 +629,7 @@ class MarkCompactCollector final : public MarkCompactCollectorBase {
// Ensures that sweeping is finished. // Ensures that sweeping is finished.
// //
// Note: Can only be called safely from main thread. // Note: Can only be called safely from main thread.
void EnsureSweepingCompleted(); V8_EXPORT_PRIVATE void EnsureSweepingCompleted();
// Checks if sweeping is in progress right now on any space. // Checks if sweeping is in progress right now on any space.
bool sweeping_in_progress() const { return sweeper_->sweeping_in_progress(); } bool sweeping_in_progress() const { return sweeper_->sweeping_in_progress(); }
......
...@@ -36,7 +36,7 @@ class ReadOnlyHeap final { ...@@ -36,7 +36,7 @@ class ReadOnlyHeap final {
void OnHeapTearDown(); void OnHeapTearDown();
// Returns whether the object resides in the read-only space. // Returns whether the object resides in the read-only space.
static bool Contains(HeapObject object); V8_EXPORT_PRIVATE static bool Contains(HeapObject object);
std::vector<Object>* read_only_object_cache() { std::vector<Object>* read_only_object_cache() {
return &read_only_object_cache_; return &read_only_object_cache_;
......
...@@ -1327,8 +1327,8 @@ static SlotSet* AllocateAndInitializeSlotSet(size_t size, Address page_start) { ...@@ -1327,8 +1327,8 @@ static SlotSet* AllocateAndInitializeSlotSet(size_t size, Address page_start) {
return slot_set; return slot_set;
} }
template SlotSet* MemoryChunk::AllocateSlotSet<OLD_TO_NEW>(); template V8_EXPORT_PRIVATE SlotSet* MemoryChunk::AllocateSlotSet<OLD_TO_NEW>();
template SlotSet* MemoryChunk::AllocateSlotSet<OLD_TO_OLD>(); template V8_EXPORT_PRIVATE SlotSet* MemoryChunk::AllocateSlotSet<OLD_TO_OLD>();
template <RememberedSetType type> template <RememberedSetType type>
SlotSet* MemoryChunk::AllocateSlotSet() { SlotSet* MemoryChunk::AllocateSlotSet() {
......
This diff is collapsed.
...@@ -96,7 +96,7 @@ class Sweeper { ...@@ -96,7 +96,7 @@ class Sweeper {
// and the main thread can sweep lazily, but the background sweeper tasks // and the main thread can sweep lazily, but the background sweeper tasks
// are not running yet. // are not running yet.
void StartSweeping(); void StartSweeping();
void StartSweeperTasks(); V8_EXPORT_PRIVATE void StartSweeperTasks();
void EnsureCompleted(); void EnsureCompleted();
bool AreSweeperTasksRunning(); bool AreSweeperTasksRunning();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment