5 #ifndef INCLUDE_V8_ISOLATE_H_
6 #define INCLUDE_V8_ISOLATE_H_
14 #include "cppgc/common.h"
83 size_t maximum_heap_size_in_bytes);
95 uint64_t virtual_memory_limit);
123 return max_old_generation_size_;
126 max_old_generation_size_ = limit;
135 return max_young_generation_size_;
138 max_young_generation_size_ = limit;
142 return initial_old_generation_size_;
145 initial_old_generation_size_ = initial_size;
149 return initial_young_generation_size_;
152 initial_young_generation_size_ = initial_size;
156 static constexpr size_t kMB = 1048576u;
157 size_t code_range_size_ = 0;
158 size_t max_old_generation_size_ = 0;
159 size_t max_young_generation_size_ = 0;
160 size_t initial_old_generation_size_ = 0;
161 size_t initial_young_generation_size_ = 0;
162 uint32_t* stack_limit_ =
nullptr;
336 bool was_execution_allowed_assert_;
337 bool was_execution_allowed_throws_;
338 bool was_execution_allowed_dump_;
357 bool was_execution_allowed_assert_;
358 bool was_execution_allowed_throws_;
359 bool was_execution_allowed_dump_;
380 internal::MicrotaskQueue*
const microtask_queue_;
551 using UseCounterCallback =
void (*)(
Isolate* isolate,
631 using AbortOnUncaughtExceptionCallback =
bool (*)(
Isolate*);
633 AbortOnUncaughtExceptionCallback callback);
641 HostImportModuleDynamicallyWithImportAssertionsCallback callback);
643 HostImportModuleDynamicallyCallback callback);
650 HostInitializeImportMetaObjectCallback callback);
657 HostCreateShadowRealmContextCallback callback);
825 size_t frames_limit,
SampleInfo* sample_info);
892 return ThrowError(
String::NewFromUtf8Literal(
this, message));
1045 size_t offset_in_bytes, int64_t value,
1046 double timeout_in_ms,
1077 void* data =
nullptr);
1080 using GetExternallyAllocatedMemoryInBytesCallback = size_t (*)();
1089 GetExternallyAllocatedMemoryInBytesCallback callback);
1256 MicrotasksCompletedCallbackWithData callback,
void* data =
nullptr);
1262 MicrotasksCompletedCallbackWithData callback,
void* data =
nullptr);
1414 JitCodeEventHandler event_handler);
1508 ModifyCodeGenerationFromStringsCallback2 callback);
1515 AllowWasmCodeGenerationCallback callback);
1533 WasmDynamicTieringEnabledCallback callback);
1536 SharedArrayBufferConstructorEnabledCallback callback);
1591 bool capture,
int frame_limit = 10,
1678 template <
class K,
class V,
class Traits>
1682 void ReportExternalAllocationLimitReached();
1702 T* data =
reinterpret_cast<T*>(GetDataFromSnapshotOnce(index));
1703 if (data)
internal::PerformCastCheck(data);
1704 return Local<T>(data);