Lines Matching defs:isolate

10 #include "src/execution/isolate.h"
107 void RecordStatus(Isolate* isolate, AllocationStatus status) {
108 isolate->counters()->wasm_memory_allocation_result()->AddSample(
116 void RecordSandboxMemoryAllocationResult(Isolate* isolate, void* result) {
128 isolate->counters()->caged_memory_allocation_outcome()->AddSample(
287 Isolate* isolate, size_t byte_length, SharedFlag shared,
290 auto allocator = isolate->array_buffer_allocator();
293 auto counters = isolate->counters();
319 buffer_start = isolate->heap()->AllocateExternalBackingStore(
343 result->SetAllocatorFromIsolate(isolate);
347 void BackingStore::SetAllocatorFromIsolate(Isolate* isolate) {
348 if (auto allocator_shared = isolate->array_buffer_allocator_shared()) {
355 isolate->array_buffer_allocator();
363 Isolate* isolate, size_t initial_pages, size_t maximum_pages,
370 isolate, initial_pages * wasm::kWasmPageSize,
383 Isolate* isolate, size_t byte_length, size_t max_byte_length,
414 isolate->heap()->MemoryPressureNotification(
449 RecordStatus(isolate, AllocationStatus::kOtherFailure);
450 RecordSandboxMemoryAllocationResult(isolate, nullptr);
485 RecordStatus(isolate, did_retry ? AllocationStatus::kSuccessAfterRetry
487 RecordSandboxMemoryAllocationResult(isolate, allocation_base);
516 Isolate* isolate, size_t initial_pages, size_t maximum_pages,
525 TryAllocateWasmMemory(isolate, initial_pages, maximum_pages, shared);
539 TryAllocateWasmMemory(isolate, initial_pages, sizes[i], shared);
544 std::unique_ptr<BackingStore> BackingStore::CopyWasmMemory(Isolate* isolate,
551 isolate, new_pages, max_pages,
570 base::Optional<size_t> BackingStore::GrowWasmMemoryInPlace(Isolate* isolate,
636 // Only do per-isolate accounting for non-shared backing stores.
637 reinterpret_cast<v8::Isolate*>(isolate)
644 Isolate* isolate, Handle<WasmMemoryObject> memory_object) {
648 GlobalBackingStoreRegistry::AddSharedWasmMemoryObject(isolate, this,
653 Isolate* isolate, std::shared_ptr<BackingStore> backing_store) {
654 GlobalBackingStoreRegistry::BroadcastSharedWasmMemoryGrow(isolate,
658 void BackingStore::RemoveSharedWasmMemoryObjects(Isolate* isolate) {
659 GlobalBackingStoreRegistry::Purge(isolate);
662 void BackingStore::UpdateSharedWasmMemoryObjects(Isolate* isolate) {
663 GlobalBackingStoreRegistry::UpdateSharedWasmMemoryObjects(isolate);
669 Isolate* isolate, size_t new_byte_length, size_t new_committed_length) {
700 // Do per-isolate accounting for non-shared backing stores.
702 reinterpret_cast<v8::Isolate*>(isolate)
710 Isolate* isolate, size_t new_byte_length, size_t new_committed_length) {
751 Isolate* isolate, void* allocation_base, size_t allocation_length,
764 result->SetAllocatorFromIsolate(isolate);
809 bool BackingStore::Reallocate(Isolate* isolate, size_t new_byte_length) {
813 CHECK_EQ(isolate->array_buffer_allocator(), allocator);
889 void GlobalBackingStoreRegistry::Purge(Isolate* isolate) {
897 // Purge all entries in the map that refer to the given isolate.
906 // Remove this isolate from the isolates list.
909 if (isolates[i] == isolate) isolates[i] = nullptr;
916 Isolate* isolate, BackingStore* backing_store,
918 // Add to the weak array list of shared memory objects in the isolate.
919 isolate->AddSharedWasmMemory(memory_object);
921 // Add the isolate to the list of isolates sharing this backing store.
928 if (isolates[i] == isolate) return;
932 isolates[free_entry] = isolate;
934 isolates.push_back(isolate);
938 Isolate* isolate, std::shared_ptr<BackingStore> backing_store) {
945 if (other && other != isolate) {
950 // Update memory objects in this isolate.
951 UpdateSharedWasmMemoryObjects(isolate);
955 Isolate* isolate) {
956 HandleScope scope(isolate);
958 isolate->factory()->shared_wasm_memories();
965 isolate);
966 Handle<JSArrayBuffer> old_buffer(memory_object->array_buffer(), isolate);
970 isolate->factory()->NewJSSharedArrayBuffer(std::move(backing_store));
971 memory_object->update_instances(isolate, new_buffer);