Download include/node/cppgc/heap-handle.h from Ouzhang/node-v20-11-0-linux-x64: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/datasets/Ouzhang/node-v20-11-0-linux-x64/resolve/main/include/node/cppgc/heap-handle.h
- Command line
-
hf download hf://datasets/Ouzhang/node-v20-11-0-linux-x64/include/node/cppgc/heap-handle.h
-
curl -L -o heap-handle.h https://huggingface.co/datasets/Ouzhang/node-v20-11-0-linux-x64/resolve/main/include/node/cppgc/heap-handle.h
1.29 kB
| // Copyright 2022 the V8 project authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| namespace cppgc { | |
| namespace internal { | |
| class HeapBase; | |
| class WriteBarrierTypeForCagedHeapPolicy; | |
| class WriteBarrierTypeForNonCagedHeapPolicy; | |
| } // namespace internal | |
| /** | |
| * Opaque handle used for additional heap APIs. | |
| */ | |
| class HeapHandle { | |
| public: | |
| // Deleted copy ctor to avoid treating the type by value. | |
| HeapHandle(const HeapHandle&) = delete; | |
| HeapHandle& operator=(const HeapHandle&) = delete; | |
| private: | |
| HeapHandle() = default; | |
| V8_INLINE bool is_incremental_marking_in_progress() const { | |
| return is_incremental_marking_in_progress_; | |
| } | |
| V8_INLINE bool is_young_generation_enabled() const { | |
| return is_young_generation_enabled_; | |
| } | |
| bool is_incremental_marking_in_progress_ = false; | |
| bool is_young_generation_enabled_ = false; | |
| friend class internal::HeapBase; | |
| friend class internal::WriteBarrierTypeForCagedHeapPolicy; | |
| friend class internal::WriteBarrierTypeForNonCagedHeapPolicy; | |
| }; | |
| } // namespace cppgc | |