/third_party/node/src/ |
D | node_main_instance.cc | 33 isolate_(isolate), in NodeMainInstance() 39 std::make_unique<IsolateData>(isolate_, event_loop, platform, nullptr); in NodeMainInstance() 41 SetIsolateMiscHandlers(isolate_, {}); in NodeMainInstance() 64 isolate_(nullptr), in NodeMainInstance() 69 isolate_ = Isolate::Allocate(); in NodeMainInstance() 70 CHECK_NOT_NULL(isolate_); in NodeMainInstance() 73 platform->RegisterIsolate(isolate_, event_loop); in NodeMainInstance() 75 Isolate::Initialize(isolate_, *params); in NodeMainInstance() 80 isolate_data_ = std::make_unique<IsolateData>(isolate_, in NodeMainInstance() 86 SetIsolateMiscHandlers(isolate_, s); in NodeMainInstance() [all …]
|
D | aliased_buffer.h | 36 : isolate_(isolate), count_(count), byte_offset_(0) { in AliasedBufferBase() 38 const v8::HandleScope handle_scope(isolate_); in AliasedBufferBase() 44 isolate_, size_in_bytes); in AliasedBufferBase() 66 : isolate_(isolate), count_(count), byte_offset_(byte_offset) { in AliasedBufferBase() 67 const v8::HandleScope handle_scope(isolate_); in AliasedBufferBase() 85 : isolate_(that.isolate_), in AliasedBufferBase() 89 js_array_ = v8::Global<V8T>(that.isolate_, that.GetJSArray()); in AliasedBufferBase() 94 isolate_ = that.isolate_; 99 js_array_.Reset(isolate_, that.js_array_.Get(isolate_)); 158 return js_array_.Get(isolate_); in GetJSArray() [all …]
|
D | heap_utils.cc | 67 explicit JSGraph(Isolate* isolate) : isolate_(isolate) {} in JSGraph() 70 std::unique_ptr<JSGraphJSNode> n { new JSGraphJSNode(isolate_, value) }; in V8Node() 89 EscapableHandleScope handle_scope(isolate_); in CreateObject() 90 Local<Context> context = isolate_->GetCurrentContext(); in CreateObject() 94 Local<Array> nodes = Array::New(isolate_, nodes_.size()); in CreateObject() 95 Local<String> edges_string = FIXED_ONE_BYTE_STRING(isolate_, "edges"); in CreateObject() 96 Local<String> is_root_string = FIXED_ONE_BYTE_STRING(isolate_, "isRoot"); in CreateObject() 100 Local<String> wraps_string = FIXED_ONE_BYTE_STRING(isolate_, "wraps"); in CreateObject() 101 Local<String> to_string = FIXED_ONE_BYTE_STRING(isolate_, "to"); in CreateObject() 104 info_objects[n.get()] = Object::New(isolate_); in CreateObject() [all …]
|
D | env.cc | 90 HandleScope handle_scope(isolate_); in DeserializeProperties() 98 isolate_->GetDataFromSnapshotOnce<TypeName>((*indexes)[i++]); \ in DeserializeProperties() 103 PropertyName##_.Set(isolate_, field); \ in DeserializeProperties() 115 isolate_->GetDataFromSnapshotOnce<String>((*indexes)[i++]); in DeserializeProperties() 120 async_wrap_providers_[j].Set(isolate_, field); in DeserializeProperties() 136 HandleScope handle_scope(isolate_); in CreateProperties() 140 isolate_, \ in CreateProperties() 141 Private::New(isolate_, \ in CreateProperties() 143 isolate_, \ in CreateProperties() 152 isolate_, \ in CreateProperties() [all …]
|
D | aliased_struct-inl.h | 15 : isolate_(isolate) { in AliasedStruct() 28 : AliasedStruct(that.isolate_, *that) {} in AliasedStruct() 34 isolate_ = that.isolate_;
|
D | node_watchdog.h | 51 v8::Isolate* isolate() { return isolate_; } in isolate() 57 v8::Isolate* isolate_; variable 76 v8::Isolate* isolate() { return isolate_; } in isolate() 80 v8::Isolate* isolate_;
|
D | node_worker.cc | 187 w_->isolate_ = isolate; in WorkerThreadData() 195 isolate = w_->isolate_; in ~WorkerThreadData() 196 w_->isolate_ = nullptr; in ~WorkerThreadData() 259 if (isolate_ == nullptr) return; in Run() 264 Locker locker(isolate_); in Run() 265 Isolate::Scope isolate_scope(isolate_); in Run() 266 SealHandleScope outer_seal(isolate_); in Run() 273 isolate_->CancelTerminateExecution(); in Run() 286 Isolate::DisallowJavascriptExecutionScope disallow_js(isolate_, in Run() 293 HandleScope handle_scope(isolate_); in Run() [all …]
|
D | node.cc | 273 isolate_->GetHeapProfiler()->AddBuildEmbedderGraphCallback( in InitializeDiagnostics() 276 isolate_->AddNearHeapLimitCallback(Environment::NearHeapLimitCallback, in InitializeDiagnostics() 280 isolate_->SetCaptureStackTraceForUncaughtExceptions(true); in InitializeDiagnostics() 282 isolate_->SetAtomicsWaitCallback(AtomicsWaitCallback, this); in InitializeDiagnostics() 295 EscapableHandleScope scope(isolate_); in BootstrapInternalLoaders() 300 FIXED_ONE_BYTE_STRING(isolate_, "getLinkedBinding"), in BootstrapInternalLoaders() 301 FIXED_ONE_BYTE_STRING(isolate_, "getInternalBinding"), in BootstrapInternalLoaders() 336 EscapableHandleScope scope(isolate_); in BootstrapNode() 340 global->Set(context(), FIXED_ONE_BYTE_STRING(isolate_, "global"), global) in BootstrapNode() 383 Local<String> env_string = FIXED_ONE_BYTE_STRING(isolate_, "env"); in BootstrapNode() [all …]
|
D | aliased_struct.h | 37 return buffer_.Get(isolate_); in GetArrayBuffer() 53 v8::Isolate* isolate_;
|
D | memory_tracker.h | 253 inline v8::Isolate* isolate() { return isolate_; } in isolate() 257 : isolate_(isolate), graph_(graph) {} in MemoryTracker() 276 v8::Isolate* isolate_; variable
|
D | node_watchdog.cc | 42 : isolate_(isolate), timed_out_(timed_out) { in Watchdog() 104 : isolate_(isolate), received_signal_(received_signal) { in SigintWatchdog() 119 isolate_->TerminateExecution(); in HandleSigint()
|
D | node_platform.cc | 224 : isolate_(isolate), loop_(loop) { in PerIsolatePlatformData() 404 DebugSealHandleScope scope(isolate_); in RunForegroundTask() 405 Environment* env = Environment::GetCurrent(isolate_); in RunForegroundTask() 407 v8::HandleScope scope(isolate_); in RunForegroundTask() 408 InternalCallbackScope cb_scope(env, Object::New(isolate_), { 0, 0 }, in RunForegroundTask()
|
/third_party/node/test/cctest/ |
D | test_platform.cc | 18 isolate_(isolate), in RepostingTask() 27 platform_->GetForegroundTaskRunner(isolate_); in Run() 29 repost_count_, run_count_, isolate_, platform_)); in Run() 36 v8::Isolate* isolate_; member in RepostingTask 43 v8::Isolate::Scope isolate_scope(isolate_); in TEST_F() 44 const v8::HandleScope handle_scope(isolate_); in TEST_F() 49 platform->GetForegroundTaskRunner(isolate_); in TEST_F() 51 std::make_unique<RepostingTask>(2, &run_count, isolate_, platform.get())); in TEST_F() 52 EXPECT_TRUE(platform->FlushForegroundTasks(isolate_)); in TEST_F() 54 EXPECT_TRUE(platform->FlushForegroundTasks(isolate_)); in TEST_F() [all …]
|
D | test_environment.cc | 40 const v8::HandleScope handle_scope(isolate_); in TEST_F() 101 const v8::HandleScope handle_scope(isolate_); in TEST_F() 134 const v8::HandleScope handle_scope(isolate_); in TEST_F() 140 return v8::Null(isolate_); in TEST_F() 143 v8::Local<v8::Context> context = isolate_->GetCurrentContext(); in TEST_F() 147 v8::String::NewFromOneByte(isolate_, in TEST_F() 156 const v8::HandleScope handle_scope(isolate_); in TEST_F() 160 v8::Local<v8::Context> context = isolate_->GetCurrentContext(); in TEST_F() 173 isolate_, in TEST_F() 185 const v8::HandleScope handle_scope(isolate_); in TEST_F() [all …]
|
D | test_linked_binding.cc | 25 const v8::HandleScope handle_scope(isolate_); in TEST_F() 29 v8::Local<v8::Context> context = isolate_->GetCurrentContext(); in TEST_F() 35 v8::String::NewFromOneByte(isolate_, in TEST_F() 40 v8::String::Utf8Value utf8val(isolate_, completion_value); in TEST_F() 63 const v8::HandleScope handle_scope(isolate_); in TEST_F() 70 v8::Local<v8::Context> context = isolate_->GetCurrentContext(); in TEST_F() 76 v8::String::NewFromOneByte(isolate_, in TEST_F() 81 v8::String::Utf8Value utf8val(isolate_, completion_value); in TEST_F() 108 const v8::HandleScope handle_scope(isolate_); in TEST_F() 114 v8::Local<v8::Context> context = isolate_->GetCurrentContext(); in TEST_F() [all …]
|
D | test_aliased_buffer.cc | 152 ReadWriteTest<uint8_t, v8::Uint8Array>(isolate_); in TEST_F() 156 ReadWriteTest<int8_t, v8::Int8Array>(isolate_); in TEST_F() 160 ReadWriteTest<uint16_t, v8::Uint16Array>(isolate_); in TEST_F() 164 ReadWriteTest<int16_t, v8::Int16Array>(isolate_); in TEST_F() 168 ReadWriteTest<uint32_t, v8::Uint32Array>(isolate_); in TEST_F() 172 ReadWriteTest<int32_t, v8::Int32Array>(isolate_); in TEST_F() 176 ReadWriteTest<float, v8::Float32Array>(isolate_); in TEST_F() 180 ReadWriteTest<double, v8::Float64Array>(isolate_); in TEST_F() 187 int8_t, v8::Int8Array>(isolate_, 100, 80, 8); in TEST_F() 194 double, v8::Float64Array>(isolate_, 100, 8, 8); in TEST_F() [all …]
|
D | test_base_object_ptr.cc | 45 const HandleScope handle_scope(isolate_); in TEST_F() 59 const HandleScope handle_scope(isolate_); in TEST_F() 77 const HandleScope handle_scope(isolate_); in TEST_F() 82 node::AddEnvironmentCleanupHook(isolate_, [](void* arg) { in TEST_F() 91 const HandleScope handle_scope(isolate_); in TEST_F() 99 const HandleScope handle_scope(isolate_); in TEST_F() 116 isolate_->RequestGarbageCollectionForTesting(Isolate::kFullGarbageCollection); in TEST_F() 123 const HandleScope handle_scope(isolate_); in TEST_F() 161 const HandleScope handle_scope(isolate_); in TEST_F() 166 node::AddEnvironmentCleanupHook(isolate_, [](void* arg) { in TEST_F()
|
D | node_test_fixture.h | 114 v8::Isolate* isolate_; 118 isolate_ = NewIsolate(allocator.get(), ¤t_loop, platform.get()); in SetUp() 119 CHECK_NOT_NULL(isolate_); in SetUp() 120 isolate_->Enter(); in SetUp() 124 platform->DrainTasks(isolate_); in TearDown() 125 isolate_->Exit(); in TearDown() 126 platform->UnregisterIsolate(isolate_); in TearDown() 127 isolate_->Dispose(); in TearDown() 128 isolate_ = nullptr; in TearDown()
|
D | test_js_native_api_v8.cc | 30 const v8::HandleScope handle_scope(isolate_); in TEST_F() 49 Local<Object> module_obj = Object::New(isolate_); in TEST_F() 50 Local<Object> exports_obj = Object::New(isolate_); in TEST_F() 59 const v8::HandleScope handle_scope(isolate_); in TEST_F() 80 reinterpret_cast<v8::Isolate*>(isolate_), in TEST_F() 93 reinterpret_cast<v8::Isolate*>(isolate_), in TEST_F()
|
D | test_node_postmortem_metadata.cc | 94 const v8::HandleScope handle_scope(isolate_); in TEST_F() 98 v8::Local<v8::ObjectTemplate> obj_templ = v8::ObjectTemplate::New(isolate_); in TEST_F() 115 const v8::HandleScope handle_scope(isolate_); in TEST_F() 126 const v8::HandleScope handle_scope(isolate_); in TEST_F() 137 const v8::HandleScope handle_scope(isolate_); in TEST_F() 149 auto obj_template = v8::FunctionTemplate::New(isolate_); in TEST_F() 171 const v8::HandleScope handle_scope(isolate_); in TEST_F() 182 auto obj_template = v8::FunctionTemplate::New(isolate_); in TEST_F()
|
D | test_node_api.cc | 23 const v8::HandleScope handle_scope(isolate_); in TEST_F() 35 Local<Object> module_obj = Object::New(isolate_); in TEST_F() 36 Local<Object> exports_obj = Object::New(isolate_); in TEST_F()
|
/third_party/node/test/fuzzers/ |
D | fuzz_env.cc | 53 v8::Isolate* isolate_; member in FuzzerFixtureHelper 59 isolate_ = NewIsolate(allocator.get(), ¤t_loop, platform.get()); in FuzzerFixtureHelper() 60 CHECK_NOT_NULL(isolate_); in FuzzerFixtureHelper() 61 isolate_->Enter(); in FuzzerFixtureHelper() 65 platform->DrainTasks(isolate_); in Teardown() 66 isolate_->Exit(); in Teardown() 67 platform->UnregisterIsolate(isolate_); in Teardown() 68 isolate_->Dispose(); in Teardown() 69 isolate_ = nullptr; in Teardown() 73 void EnvTest(v8::Isolate* isolate_, char* env_string) { in EnvTest() argument [all …]
|
/third_party/cef/libcef/renderer/ |
D | v8_impl.cc | 89 : isolate_(v8::Isolate::GetCurrent()), in CefV8IsolateManager() 93 DCHECK(isolate_); in CefV8IsolateManager() 97 DCHECK_EQ(isolate_, v8::Isolate::GetCurrent()); in ~CefV8IsolateManager() 103 DCHECK_EQ(isolate_, v8::Isolate::GetCurrent()); in GetContextState() 104 DCHECK(context.IsEmpty() || isolate_ == context->GetIsolate()); in GetContextState() 107 if (isolate_->InContext()) in GetContextState() 108 context = isolate_->GetCurrentContext(); in GetContextState() 125 DCHECK_EQ(isolate_, v8::Isolate::GetCurrent()); in ReleaseContext() 126 DCHECK_EQ(isolate_, context->GetIsolate()); in ReleaseContext() 137 DCHECK_EQ(isolate_, v8::Isolate::GetCurrent()); in AddGlobalTrackObject() [all …]
|
/third_party/flutter/engine/flutter/runtime/ |
D | dart_isolate_unittests.cc | 99 : isolate_(std::move(isolate)), runner_(std::move(runner)) {} in AutoIsolateShutdown() 106 fml::TaskRunner::RunNowOrPostTask(runner_, [isolate = isolate_, &latch]() { in ~AutoIsolateShutdown() 117 bool IsValid() const { return isolate_ != nullptr && runner_; } in IsValid() 129 tonic::DartIsolateScope scope(isolate_->isolate()); in RunInIsolateScope() 141 FML_CHECK(isolate_); in get() 142 return isolate_.get(); in get() 146 std::shared_ptr<DartIsolate> isolate_; member in flutter::testing::AutoIsolateShutdown
|
/third_party/flutter/engine/flutter/shell/platform/fuchsia/dart_runner/ |
D | dart_component_controller.cc | 326 isolate_ = Dart_CreateIsolateGroup( in CreateIsolate() 331 if (!isolate_) { in CreateIsolate() 336 state->get()->SetIsolate(isolate_); in CreateIsolate() 398 char* error = Dart_IsolateMakeRunnable(isolate_); in Main() 400 Dart_EnterIsolate(isolate_); in Main() 406 Dart_EnterIsolate(isolate_); in Main()
|