Home
last modified time | relevance | path

Searched full:isolate (Results 1 – 25 of 660) sorted by relevance

12345678910>>...27

/third_party/node/src/api/
Dexceptions.cc16 using v8::Isolate;
22 Local<Value> ErrnoException(Isolate* isolate, in ErrnoException() argument
27 Environment* env = Environment::GetCurrent(isolate); in ErrnoException()
31 Local<String> estring = OneByteString(isolate, errors::errno_string(errorno)); in ErrnoException()
35 Local<String> message = OneByteString(isolate, msg); in ErrnoException()
38 String::Concat(isolate, estring, FIXED_ONE_BYTE_STRING(isolate, ", ")); in ErrnoException()
39 cons = String::Concat(isolate, cons, message); in ErrnoException()
44 path_string = String::NewFromUtf8(isolate, path).ToLocalChecked(); in ErrnoException()
48 cons = String::Concat(isolate, cons, FIXED_ONE_BYTE_STRING(isolate, " '")); in ErrnoException()
49 cons = String::Concat(isolate, cons, path_string); in ErrnoException()
[all …]
Denvironment.cc22 using v8::Isolate;
40 bool ShouldAbortOnUncaughtException(Isolate* isolate) { in ShouldAbortOnUncaughtException() argument
41 DebugSealHandleScope scope(isolate); in ShouldAbortOnUncaughtException()
42 Environment* env = Environment::GetCurrent(isolate); in ShouldAbortOnUncaughtException()
72 context, Undefined(env->isolate()), arraysize(args), args); in PrepareStackTraceCallback()
202 void SetIsolateCreateParamsForNode(Isolate::CreateParams* params) { in SetIsolateCreateParamsForNode()
215 void SetIsolateErrorHandlers(v8::Isolate* isolate, const IsolateSettings& s) { in SetIsolateErrorHandlers() argument
217 isolate->AddMessageListenerWithErrorLevel( in SetIsolateErrorHandlers()
219 Isolate::MessageErrorLevel::kMessageError | in SetIsolateErrorHandlers()
220 Isolate::MessageErrorLevel::kMessageWarning); in SetIsolateErrorHandlers()
[all …]
Dhooks.cc11 using v8::Isolate;
45 HandleScope handle_scope(env->isolate()); in EmitProcessBeforeExit()
67 HandleScope handle_scope(env->isolate()); in EmitProcessExit()
77 FIXED_ONE_BYTE_STRING(env->isolate(), "_exiting"), in EmitProcessExit()
78 True(env->isolate())).IsNothing()) return Nothing<int>(); in EmitProcessExit()
85 ProcessEmit(env, "exit", Integer::New(env->isolate(), code)).IsEmpty() || in EmitProcessExit()
122 void AddEnvironmentCleanupHook(Isolate* isolate, in AddEnvironmentCleanupHook() argument
125 Environment* env = Environment::GetCurrent(isolate); in AddEnvironmentCleanupHook()
130 void RemoveEnvironmentCleanupHook(Isolate* isolate, in RemoveEnvironmentCleanupHook() argument
133 Environment* env = Environment::GetCurrent(isolate); in RemoveEnvironmentCleanupHook()
[all …]
Dcallback.cc12 using v8::Isolate;
20 CallbackScope::CallbackScope(Isolate* isolate, in CallbackScope() argument
23 : CallbackScope(Environment::GetCurrent(isolate), object, async_context) {} in CallbackScope()
31 try_catch_(env->isolate()) { in CallbackScope()
65 HandleScope handle_scope(env->isolate()); in InternalCallbackScope()
67 CHECK_EQ(Environment::GetCurrent(env->isolate()), env); in InternalCallbackScope()
69 env->isolate()->SetIdle(false); in InternalCallbackScope()
92 auto idle = OnScopeLeave([&]() { env_->isolate()->SetIdle(true); }); in Close()
123 MicrotasksScope::PerformCheckpoint(env_->isolate()); in Close()
139 HandleScope handle_scope(env_->isolate()); in Close()
[all …]
/third_party/node/src/
Dnode_env_var.cc17 using v8::Isolate;
36 MaybeLocal<String> Get(Isolate* isolate, Local<String> key) const override;
38 void Set(Isolate* isolate, Local<String> key, Local<String> value) override;
39 int32_t Query(Isolate* isolate, Local<String> key) const override;
41 void Delete(Isolate* isolate, Local<String> key) override;
42 Local<Array> Enumerate(Isolate* isolate) const override;
47 MaybeLocal<String> Get(Isolate* isolate, Local<String> key) const override;
49 void Set(Isolate* isolate, Local<String> key, Local<String> value) override;
50 int32_t Query(Isolate* isolate, Local<String> key) const override;
52 void Delete(Isolate* isolate, Local<String> key) override;
[all …]
Dnode.h132 NODE_EXTERN v8::Local<v8::Value> ErrnoException(v8::Isolate* isolate,
137 NODE_EXTERN v8::Local<v8::Value> UVException(v8::Isolate* isolate,
144 NODE_DEPRECATED("Use ErrnoException(isolate, ...)",
150 return ErrnoException(v8::Isolate::GetCurrent(),
157 NODE_DEPRECATED("Use UVException(isolate, ...)",
162 return UVException(v8::Isolate::GetCurrent(),
178 v8::Isolate* isolate,
185 v8::Isolate* isolate,
192 v8::Isolate* isolate,
297 virtual bool FlushForegroundTasks(v8::Isolate* isolate) = 0;
[all …]
Dstring_bytes.cc43 using v8::Isolate;
59 isolate()->AdjustAmountOfExternalAllocatedMemory(-byte_length()); in ~ExternString()
74 static MaybeLocal<Value> NewFromCopy(Isolate* isolate, in NewFromCopy() argument
79 return String::Empty(isolate); in NewFromCopy()
82 return NewSimpleFromCopy(isolate, data, length, error); in NewFromCopy()
86 *error = node::ERR_MEMORY_ALLOCATION_FAILED(isolate); in NewFromCopy()
91 return ExternString<ResourceType, TypeName>::New(isolate, in NewFromCopy()
98 static MaybeLocal<Value> New(Isolate* isolate, in New() argument
103 return String::Empty(isolate); in New()
106 MaybeLocal<Value> str = NewSimpleFromCopy(isolate, data, length, error); in New()
[all …]
Dnode_platform.h52 // This acts as the foreground task runner for a given Isolate.
58 PerIsolatePlatformData(v8::Isolate* isolate, uv_loop_t* loop);
103 v8::Isolate* const isolate_;
144 void DrainTasks(v8::Isolate* isolate) override;
152 bool IdleTasksEnabled(v8::Isolate* isolate) override;
156 bool FlushForegroundTasks(v8::Isolate* isolate) override;
158 void RegisterIsolate(v8::Isolate* isolate, uv_loop_t* loop) override;
159 void RegisterIsolate(v8::Isolate* isolate,
162 void UnregisterIsolate(v8::Isolate* isolate) override;
163 void AddIsolateFinishedCallback(v8::Isolate* isolate,
[all …]
Dnode_errors.h28 // `node::ERR_INVALID_ARG_TYPE(isolate, "message")` returning
73 v8::Isolate* isolate, const char* format, Args&&... args) { \
75 v8::Local<v8::String> js_code = OneByteString(isolate, #code); \
77 OneByteString(isolate, message.c_str(), message.length()); \
79 ->ToObject(isolate->GetCurrentContext()) \
81 e->Set(isolate->GetCurrentContext(), \
82 OneByteString(isolate, "code"), \
89 v8::Isolate* isolate, const char* format, Args&&... args) { \
90 isolate->ThrowException( \
91 code(isolate, format, std::forward<Args>(args)...)); \
[all …]
Dnode_main_instance.h20 // To create a main instance that does not own the isolate,
23 // Isolate* isolate = Isolate::Allocate();
24 // platform->RegisterIsolate(isolate, loop);
25 // isolate->Initialize(...);
26 // isolate->Enter();
28 // NodeMainInstance::Create(isolate, loop, args, exec_args);
32 // main_instance->Cleanup(); // While the isolate is entered
33 // isolate->Exit();
34 // isolate->Dispose();
35 // platform->UnregisterIsolate(isolate);
[all …]
Dmodule_wrap.cc35 using v8::Isolate;
57 module_(env->isolate(), module), in ModuleWrap()
61 Local<Value> undefined = Undefined(env->isolate()); in ModuleWrap()
68 HandleScope scope(env()->isolate()); in ~ModuleWrap()
69 Local<Module> module = module_.Get(env()->isolate()); in ~ModuleWrap()
112 Isolate* isolate = env->isolate(); in New() local
148 PrimitiveArray::New(isolate, HostDefinedOptions::kLength); in New()
149 host_defined_options->Set(isolate, HostDefinedOptions::kType, in New()
150 Number::New(isolate, ScriptType::kModule)); in New()
172 module = Module::CreateSyntheticModule(isolate, url, export_names, in New()
[all …]
Dnode_native_module_env.cc12 using v8::Isolate;
26 Isolate* isolate = context->GetIsolate(); in ToJsSet() local
27 Local<Set> out = Set::New(isolate); in ToJsSet()
29 out->Add(context, OneByteString(isolate, x.c_str(), x.size())) in ToJsSet()
47 Local<String> NativeModuleEnv::GetConfigString(Isolate* isolate) { in GetConfigString() argument
48 return NativeModuleLoader::GetInstance()->GetConfigString(isolate); in GetConfigString()
54 Isolate* isolate = env->isolate(); in GetModuleCategories() local
56 Local<Object> result = Object::New(isolate); in GetModuleCategories()
71 OneByteString(isolate, "cannotBeRequired"), in GetModuleCategories()
76 OneByteString(isolate, "canBeRequired"), in GetModuleCategories()
[all …]
Dnode_perf.cc25 using v8::Isolate;
56 Isolate* isolate = env->isolate(); in InitObject() local
62 String::NewFromUtf8(isolate, in InitObject()
69 String::NewFromUtf8(isolate, in InitObject()
76 Number::New(isolate, entry.startTime()), in InitObject()
80 Number::New(isolate, entry.duration()), in InitObject()
99 Isolate* isolate = env->isolate(); in New() local
100 Utf8Value name(isolate, args[0]); in New()
101 Utf8Value type(isolate, args[1]); in New()
117 node::MakeCallback(env->isolate(), in Notify()
[all …]
Dnode_native_module.cc12 using v8::Isolate;
43 Isolate* isolate = context->GetIsolate(); in GetSourceObject() local
44 Local<Object> out = Object::New(isolate); in GetSourceObject()
46 Local<String> key = OneByteString(isolate, x.first.c_str(), x.first.size()); in GetSourceObject()
47 out->Set(context, key, x.second.ToStringChecked(isolate)).FromJust(); in GetSourceObject()
52 Local<String> NativeModuleLoader::GetConfigString(Isolate* isolate) { in GetConfigString() argument
53 return config_.ToStringChecked(isolate); in GetConfigString()
177 Isolate* isolate = context->GetIsolate(); in CompileAsModule() local
179 FIXED_ONE_BYTE_STRING(isolate, "exports"), in CompileAsModule()
180 FIXED_ONE_BYTE_STRING(isolate, "require"), in CompileAsModule()
[all …]
/third_party/cef/libcef/renderer/
Dv8_impl.cc61 v8::Isolate* isolate = context->GetIsolate(); in SetPrivate() local
64 isolate, v8::String::NewFromUtf8( in SetPrivate()
65 isolate, key, v8::NewStringType::kNormal) in SetPrivate()
75 v8::Isolate* isolate = context->GetIsolate(); in GetPrivate() local
79 isolate, v8::String::NewFromUtf8( in GetPrivate()
80 isolate, key, v8::NewStringType::kNormal) in GetPrivate()
85 // Manages memory and state information associated with a single Isolate.
89 : isolate_(v8::Isolate::GetCurrent()), in CefV8IsolateManager()
97 DCHECK_EQ(isolate_, v8::Isolate::GetCurrent()); in ~CefV8IsolateManager()
103 DCHECK_EQ(isolate_, v8::Isolate::GetCurrent()); in GetContextState()
[all …]
/third_party/node/test/addons/async-hello-world/
Dbinding.cc16 v8::Isolate* isolate; member
35 v8::Isolate* isolate = req->isolate; in AfterAsync() local
36 v8::HandleScope scope(isolate); in AfterAsync()
39 v8::Null(isolate), in AfterAsync()
40 v8::Integer::New(isolate, req->output) in AfterAsync()
43 v8::TryCatch try_catch(isolate); in AfterAsync()
45 v8::Local<v8::Object> global = isolate->GetCurrentContext()->Global(); in AfterAsync()
47 v8::Local<v8::Function>::New(isolate, req->callback); in AfterAsync()
51 node::MakeCallback(isolate, global, callback, 2, argv, req->context) in AfterAsync()
56 callback->Call(isolate->GetCurrentContext(), in AfterAsync()
[all …]
/third_party/node/test/cctest/
Dtest_platform.cc14 v8::Isolate* isolate, in RepostingTask() argument
18 isolate_(isolate), in RepostingTask()
36 v8::Isolate* isolate_;
43 v8::Isolate::Scope isolate_scope(isolate_); in TEST_F()
64 // Allocate isolate in TEST_F()
65 v8::Isolate::CreateParams create_params; in TEST_F()
67 auto isolate = v8::Isolate::Allocate(); in TEST_F() local
68 CHECK_NOT_NULL(isolate); in TEST_F()
72 isolate, in TEST_F()
74 platform->RegisterIsolate(isolate, delegate.get()); in TEST_F()
[all …]
Dtest_aliased_buffer.cc42 void ReadAndValidate(v8::Isolate* isolate, in ReadAndValidate() argument
78 void ReadWriteTest(v8::Isolate* isolate) { in ReadWriteTest() argument
79 v8::Isolate::Scope isolate_scope(isolate); in ReadWriteTest()
80 v8::HandleScope handle_scope(isolate); in ReadWriteTest()
81 v8::Local<v8::Context> context = v8::Context::New(isolate); in ReadWriteTest()
85 AliasedBufferBase<NativeT, V8T> ab(isolate, size); in ReadWriteTest()
89 ReadAndValidate(isolate, context, &ab, oracle); in ReadWriteTest()
96 ReadAndValidate(isolate, context, &ab2, oracle); in ReadWriteTest()
98 ReadAndValidate(isolate, context, &ab, oracle); in ReadWriteTest()
106 v8::Isolate* isolate, in SharedBufferTest() argument
[all …]
/third_party/node/test/addons/async-resource/
Dbinding.cc13 using v8::Isolate;
24 CustomAsyncResource(Isolate* isolate, Local<Object> resource) in CustomAsyncResource() argument
25 : AsyncResource(isolate, resource, "CustomAsyncResource") {} in CustomAsyncResource()
32 Isolate* isolate = args.GetIsolate(); in CreateAsyncResource() local
36 r = new AsyncResource(isolate, args[0].As<Object>(), "foobär", in CreateAsyncResource()
39 r = new AsyncResource(isolate, args[0].As<Object>(), "foobär"); in CreateAsyncResource()
43 External::New(isolate, static_cast<void*>(r))); in CreateAsyncResource()
53 Isolate* isolate = args.GetIsolate(); in CallViaFunction() local
58 String::NewFromUtf8(isolate, "methöd").ToLocalChecked(); in CallViaFunction()
60 r->get_resource()->Get(isolate->GetCurrentContext(), name) in CallViaFunction()
[all …]
/third_party/flutter/engine/flutter/runtime/
Ddart_isolate_unittests.cc36 vm_data->GetIsolateSnapshot(), // isolate snapshot in TEST_F()
45 settings.isolate_create_callback, // isolate create callback in TEST_F()
46 settings.isolate_shutdown_callback // isolate shutdown callback in TEST_F()
69 vm_data->GetIsolateSnapshot(), // isolate snapshot in TEST_F()
78 settings.isolate_create_callback, // isolate create callback in TEST_F()
79 settings.isolate_shutdown_callback // isolate shutdown callback in TEST_F()
97 AutoIsolateShutdown(std::shared_ptr<DartIsolate> isolate, in AutoIsolateShutdown() argument
99 : isolate_(std::move(isolate)), runner_(std::move(runner)) {} in AutoIsolateShutdown()
106 fml::TaskRunner::RunNowOrPostTask(runner_, [isolate = isolate_, &latch]() { in ~AutoIsolateShutdown()
107 FML_LOG(INFO) << "Shutting down isolate."; in ~AutoIsolateShutdown()
[all …]
Ddart_isolate.cc40 // Since this is the root isolate, we fake a parent embedder data object. We in CreateRootIsolate()
42 // isolate lifecycle is entirely managed by the VM). in CreateRootIsolate()
44 // The child isolate preparer is null but will be set when the isolate is in CreateRootIsolate()
49 std::move(isolate_snapshot), // isolate snapshot in CreateRootIsolate()
56 nullptr, // child isolate preparer in CreateRootIsolate()
57 isolate_create_callback, // isolate create callback in CreateRootIsolate()
58 isolate_shutdown_callback // isolate shutdown callback in CreateRootIsolate()
68 true, // is root isolate in CreateRootIsolate()
119 FML_DCHECK(isolate_snapshot_) << "Must contain a valid isolate snapshot."; in DartIsolate()
134 const char* service_id_buf = Dart_IsolateServiceId(isolate()); in GetServiceId()
[all …]
/third_party/node/test/addons/callback-scope/
Dbinding.cc12 v8::Isolate* isolate = args.GetIsolate(); in RunInCallbackScope() local
25 node::CallbackScope scope(isolate, args[0].As<v8::Object>(), asyncContext); in RunInCallbackScope()
29 fn->Call(isolate->GetCurrentContext(), args[0], 0, nullptr); in RunInCallbackScope()
36 v8::Isolate* isolate = v8::Isolate::GetCurrent(); in Callback() local
37 v8::HandleScope scope(isolate); in Callback()
38 node::CallbackScope callback_scope(isolate, v8::Object::New(isolate), in Callback()
42 v8::Local<v8::Promise::Resolver> local = persistent->Get(isolate); in Callback()
43 local->Resolve(isolate->GetCurrentContext(), in Callback()
44 v8::Undefined(isolate)).ToChecked(); in Callback()
49 v8::Isolate* isolate = args.GetIsolate(); in TestResolveAsync() local
[all …]
/third_party/node/doc/api/
Daddons.md67 using v8::Isolate;
74 Isolate* isolate = args.GetIsolate();
76 isolate, "world").ToLocalChecked());
192 explicit AddonData(Isolate* isolate):
195 node::AddEnvironmentCleanupHook(isolate, DeleteInstance, this);
216 Isolate* isolate = context->GetIsolate();
220 AddonData* data = new AddonData(isolate);
224 Local<External> external = External::New(isolate, data);
230 String::NewFromUtf8(isolate, "method").ToLocalChecked(),
231 FunctionTemplate::New(isolate, Method, external)
[all …]
/third_party/ejdb/src/bindings/ejdb2_dart/lib/
Ddart_api.h70 * An isolate is the unit of concurrency in Dart. Each isolate has
74 * Each thread keeps track of its current isolate, which is the
75 * isolate which is ready to execute on the current thread. The
76 * current isolate may be NULL, in which case no isolate is ready to
78 * isolate in order to function without error. The current isolate is
130 * down the current isolate.
234 * Persistent handles are allocated within the current isolate. They
236 * the lifetime of the current isolate unless they are explicitly
263 * Requires there to be a current isolate.
274 * Requires there to be a current isolate.
[all …]
/third_party/flutter/engine/flutter/shell/common/
Disolate_configuration.h23 /// @brief An isolate configuration is a collection of snapshots and asset
24 /// managers that the engine will use to configure the isolate
26 /// be sufficient for the engine to move the isolate from the
28 /// |DartIsolate::Phase::Ready| phase. Note that the isolate
29 /// configuration will not be collected till the isolate tied to the
31 /// isolate are collected. The engine may ask the configuration to
41 /// @brief Attempts to infer the isolate configuration from the
49 /// shell associated with the engine used to launch the isolate
58 /// @return An isolate configuration if one can be inferred from the
67 /// @brief Creates an AOT isolate configuration using snapshot symbols
[all …]

12345678910>>...27