Home
last modified time | relevance | path

Searched refs:ToLocal (Results 1 – 25 of 143) sorted by relevance

123456

/third_party/node/deps/v8/src/api/
Dapi-inl.h67 Local<v8::Type##Array> Utils::ToLocal##Type##Array( \
73 MAKE_TO_LOCAL(ToLocal, AccessorPair, debug::AccessorPair) in MAKE_TO_LOCAL() argument
74 MAKE_TO_LOCAL(ToLocal, Context, Context) in MAKE_TO_LOCAL()
75 MAKE_TO_LOCAL(ToLocal, Object, Value) in MAKE_TO_LOCAL()
76 MAKE_TO_LOCAL(ToLocal, Module, Module) in MAKE_TO_LOCAL()
77 MAKE_TO_LOCAL(ToLocal, Name, Name) in MAKE_TO_LOCAL()
78 MAKE_TO_LOCAL(ToLocal, String, String) in MAKE_TO_LOCAL()
79 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) in MAKE_TO_LOCAL()
80 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) in MAKE_TO_LOCAL()
81 MAKE_TO_LOCAL(ToLocal, JSReceiver, Object) in MAKE_TO_LOCAL()
[all …]
Dapi.h161 static inline Local<debug::AccessorPair> ToLocal(
163 static inline Local<Context> ToLocal(
165 static inline Local<Value> ToLocal(
167 static inline Local<Module> ToLocal(
169 static inline Local<Name> ToLocal(
171 static inline Local<String> ToLocal(
173 static inline Local<Symbol> ToLocal(
175 static inline Local<RegExp> ToLocal(
177 static inline Local<Object> ToLocal(
179 static inline Local<Object> ToLocal(
[all …]
Dapi-arguments-inl.h104 f(v8::Utils::ToLocal(name), callback_info); \
191 f(v8::Utils::ToLocal(name), callback_info); in BasicCallNamedGetterCallback()
205 f(v8::Utils::ToLocal(name), v8::Utils::ToLocal(value), callback_info); in CallNamedSetter()
219 f(v8::Utils::ToLocal(name), desc, callback_info); in CallNamedDefiner()
232 f(index, v8::Utils::ToLocal(value), callback_info); in CallIndexedSetter()
314 f(v8::Utils::ToLocal(name), v8::Utils::ToLocal(value), callback_info); in CallAccessorSetter()
Dapi.cc185 reinterpret_cast<v8::Isolate*>(isolate), Utils::ToLocal(scriptName), in GetScriptOriginForScript()
188 Utils::ToLocal(source_map_url), options.IsOpaque(), is_wasm, in GetScriptOriginForScript()
189 options.IsModule(), Utils::ToLocal(host_defined_options)); in GetScriptOriginForScript()
1127 return Utils::ToLocal(result); in SlowGetEmbedderData()
1203 Set(Utils::ToLocal(Utils::OpenHandle(reinterpret_cast<Name*>(*name))), value, in SetPrivate()
1325 Utils::ToLocal(obj)->SetCallHandler(callback, data, side_effect_type,
1328 return Utils::ToLocal(obj);
1516 return Utils::ToLocal(result); in InstanceTemplate()
1585 return Utils::ToLocal(obj); in ObjectTemplateNew()
2059 return Utils::ToLocal(i::Handle<i::Object>(name, isolate)); in GetScriptName()
[all …]
/third_party/node/deps/v8/src/inspector/
Dcustom-preview.cc80 if (!jsonML->Get(context, 0).ToLocal(&firstValue)) { in substituteObjectTags()
88 if (!jsonML->Get(context, 1).ToLocal(&attributesValue)) { in substituteObjectTags()
98 if (!attributes->Get(context, objectLiteral).ToLocal(&originValue)) { in substituteObjectTags()
110 .ToLocal(&configValue)) { in substituteObjectTags()
134 .ToLocal(&jsonWrapper)) { in substituteObjectTags()
145 if (!jsonML->Get(context, i).ToLocal(&value)) { in substituteObjectTags()
167 .ToLocal(&objectValue)) { in bodyCallback()
179 .ToLocal(&formatterValue)) { in bodyCallback()
191 .ToLocal(&bodyValue)) { in bodyCallback()
203 .ToLocal(&configValue)) { in bodyCallback()
[all …]
Dv8-regex.cc26 if (!m_inspector->regexContext().ToLocal(&context)) { in V8Regex()
41 .ToLocal(&regex)) in V8Regex()
61 if (!m_inspector->regexContext().ToLocal(&context)) { in match()
73 .ToLocal(&exec)) in match()
80 .ToLocal(&returnValue)) in match()
96 .ToLocal(&matchOffset)) in match()
100 if (!result->Get(context, 0).ToLocal(&match)) return -1; in match()
Dv8-console.cc135 if (!m_info[0]->ToString(m_context).ToLocal(&titleValue)) in firstArgToString()
178 .ToLocal(&func)) in createBoundFunctionProperty()
479 .ToLocal(&memoryValue)) in memoryGetterCallback()
597 if (!helper.firstArgAsObject().ToLocal(&obj)) return; in keysCallback()
599 if (!obj->GetOwnPropertyNames(isolate->GetCurrentContext()).ToLocal(&names)) in keysCallback()
612 if (!helper.firstArgAsObject().ToLocal(&obj)) return; in valuesCallback()
615 if (!obj->GetOwnPropertyNames(context).ToLocal(&names)) return; in valuesCallback()
619 if (!names->Get(context, i).ToLocal(&key)) continue; in valuesCallback()
621 if (!obj->Get(context, key).ToLocal(&value)) continue; in valuesCallback()
648 if (!helper.firstArgAsFunction().ToLocal(&function)) return; in debugFunctionCallback()
[all …]
Dvalue-mirror.cc46 if (!array->Get(context, i).ToLocal(&value)) in arrayToProtocolValue()
63 if (!object->GetOwnPropertyNames(context).ToLocal(&propertyNames)) in objectToProtocolValue()
68 if (!propertyNames->Get(context, i).ToLocal(&name)) in objectToProtocolValue()
78 if (!name->ToString(context).ToLocal(&propertyName)) continue; in objectToProtocolValue()
80 if (!object->Get(context, name).ToLocal(&property)) in objectToProtocolValue()
268 .ToLocal(&stackValue) && in descriptionForError()
284 .ToLocal(&messageValue) && in descriptionForError()
327 .ToLocal(&value)) { in descriptionForScope()
354 .ToLocal(&tmp)) { in descriptionForEntry()
371 .ToLocal(&tmp)) { in descriptionForEntry()
[all …]
/third_party/node/src/
Dnode_process_events.cc28 .ToLocal(&event_string)) return MaybeLocal<Value>(); in ProcessEmit()
47 .ToLocal(&emit_warning)) { in ProcessEmitWarningGeneric()
58 if (!String::NewFromUtf8(env->isolate(), warning).ToLocal(&args[argc++])) in ProcessEmitWarningGeneric()
64 .ToLocal(&args[argc++])) { in ProcessEmitWarningGeneric()
70 .ToLocal(&args[argc++])) { in ProcessEmitWarningGeneric()
Dnode_messaging.cc112 if (!deserializer->ReadValue(context).ToLocal(&object)) in ReadHostObject()
220 if (!deserializer.ReadValue(context).ToLocal(&return_value)) in Deserialize()
252 if (!GetPerContextExports(context).ToLocal(&per_context_bindings) || in GetEmitMessageFunction()
255 .ToLocal(&emit_message_val)) { in GetEmitMessageFunction()
266 if (!GetPerContextExports(context).ToLocal(&per_context_bindings) || in GetDOMException()
269 .ToLocal(&domexception_ctor_val)) { in GetDOMException()
283 if (!GetDOMException(context).ToLocal(&domexception_ctor) || in ThrowDataCloneException()
285 .ToLocal(&exception)) { in ThrowDataCloneException()
631 if (!wrap->Get(context, env->oninit_symbol()).ToLocal(&fn)) in MessagePort()
641 if (!GetEmitMessageFunction(context).ToLocal(&emit_message_fn)) in MessagePort()
[all …]
Dnode_realm.cc135 if (!maybe_field.ToLocal(&field)) { \ in DeserializeProperties()
151 if (!maybe_ctx_from_snapshot.ToLocal(&ctx_from_snapshot)) { in DeserializeProperties()
168 if (!maybe_fn.ToLocal(&fn)) { in ExecuteBootstrapper()
206 .ToLocal(&loader_exports)) { in BootstrapInternalLoaders()
274 if (!env_->env_proxy_template()->NewInstance(context()).ToLocal(&env_proxy) || in BootstrapNode()
292 if (!BootstrapNode().ToLocal(&result)) { in RunBootstrapping()
Djs_stream.cc49 if (!MakeCallback(env()->isclosing_string(), 0, nullptr).ToLocal(&value)) { in IsClosing()
64 if (!MakeCallback(env()->onreadstart_string(), 0, nullptr).ToLocal(&value) || in ReadStart()
79 if (!MakeCallback(env()->onreadstop_string(), 0, nullptr).ToLocal(&value) || in ReadStop()
101 argv).ToLocal(&value) || in DoShutdown()
135 argv).ToLocal(&value) || in DoWrite()
Dnode_env_var.cc298 if (!entries->GetOwnPropertyNames(context).ToLocal(&keys)) in AssignFromObject()
303 if (!keys->Get(context, i).ToLocal(&key)) in AssignFromObject()
309 if (!entries->Get(context, key).ToLocal(&value) || in AssignFromObject()
310 !value->ToString(context).ToLocal(&value_string)) { in AssignFromObject()
330 bool ok = keys->Get(context, i).ToLocal(&key); in AssignToObject()
332 ok = ok && Get(isolate, key.As<String>()).ToLocal(&value); in AssignToObject()
378 if (!property->ToString(env->context()).ToLocal(&key) || in EnvSetter()
379 !value->ToString(env->context()).ToLocal(&value_string)) { in EnvSetter()
Dnode_builtins.cc273 if (!LoadBuiltinSource(isolate, id).ToLocal(&source)) { in LookupAndCompileInternal()
320 if (!maybe_fun.ToLocal(&fun)) { in LookupAndCompileInternal()
511 if (!ToV8Value(context, cannot_be_required).ToLocal(&cannot_be_required_js)) in GetBuiltinCategories()
519 if (!ToV8Value(context, can_be_required).ToLocal(&can_be_required_js)) return; in GetBuiltinCategories()
540 .ToLocal(&builtins_with_cache_js)) { in GetCacheUsage()
552 .ToLocal(&builtins_without_cache_js)) { in GetCacheUsage()
564 .ToLocal(&builtins_in_snapshot_js)) { in GetCacheUsage()
610 if (maybe.ToLocal(&fn)) { in CompileFunction()
/third_party/node/deps/v8/src/debug/
Ddebug-stack-trace-iterator.cc109 return Utils::ToLocal(value); in GetReceiver()
114 return Utils::ToLocal(value); in GetReceiver()
132 return Utils::ToLocal(isolate_->debug()->return_value_handle()); in GetReturnValue()
137 return Utils::ToLocal(frame_inspector_->GetFunctionName()); in GetFunctionDebugName()
157 return Utils::ToLocal(frame_inspector_->GetFunction()); in GetFunction()
184 return Utils::ToLocal(value); in Evaluate()
Ddebug-interface.cc84 return Utils::ToLocal(description); in GetBigIntDescription()
93 return Utils::ToLocal(isolate->factory() in GetDateDescription()
101 return Utils::ToLocal(i::JSBoundFunction::ToString( in GetFunctionDescription()
123 return Utils::ToLocal(builder.Finish().ToHandleChecked()); in GetFunctionDescription()
127 return Utils::ToLocal(i::JSFunction::ToString(js_function)); in GetFunctionDescription()
129 return Utils::ToLocal( in GetFunctionDescription()
151 return Utils::ToLocal(result); in GetInternalProperties()
175 names_out->push_back(Utils::ToLocal(name)); in CollectPrivateMethodsAndAccessorsFromContext()
176 values_out->push_back(Utils::ToLocal(slot_value)); in CollectPrivateMethodsAndAccessorsFromContext()
276 names_out->push_back(Utils::ToLocal(name)); in GetPrivateMembers()
[all …]
Ddebug-property-iterator.cc104 return Utils::ToLocal(raw_name()); in name()
154 descriptor.has_value() ? Utils::ToLocal(descriptor.value()) in descriptor()
156 descriptor.has_get() ? Utils::ToLocal(descriptor.get()) in descriptor()
158 descriptor.has_set() ? Utils::ToLocal(descriptor.set()) in descriptor()
/third_party/node/deps/v8/src/wasm/
Dwasm-module-sourcemap.cc30 if (!v8::JSON::Parse(context, src_map_str).ToLocal(&src_map_value)) return; in WasmModuleSourceMap()
38 .ToLocal(&version_value) && in WasmModuleSourceMap()
48 .ToLocal(&sources_value) && in WasmModuleSourceMap()
57 .ToLocal(&sources_len_value)) in WasmModuleSourceMap()
64 if (!sources_arr->Get(context, i).ToLocal(&file_name_value) || in WasmModuleSourceMap()
79 .ToLocal(&mappings_value) && in WasmModuleSourceMap()
Dwasm-js.cc164 if (!expr.ToLocal(&var)) { \
176 return Utils::ToLocal(v8_str(reinterpret_cast<i::Isolate*>(isolate), str)); in v8_str()
556 streaming->Abort(Utils::ToLocal(thrower.Reify())); in WasmStreamingCallbackForTesting()
610 Utils::ToLocal(i::Handle<i::Object>::cast(data)), 1)); in WebAssemblyCompileStreaming()
614 Utils::ToLocal(i::Handle<i::Object>::cast(data)), 1)); in WebAssemblyCompileStreaming()
744 return_value.Set(Utils::ToLocal(i::Handle<i::JSObject>::cast(module_obj))); in WebAssemblyModule()
757 args.GetReturnValue().Set(Utils::ToLocal(imports)); in WebAssemblyModuleImports()
770 args.GetReturnValue().Set(Utils::ToLocal(exports)); in WebAssemblyModuleExports()
798 args.GetReturnValue().Set(Utils::ToLocal(custom_sections)); in WebAssemblyModuleCustomSections()
852 args.GetReturnValue().Set(Utils::ToLocal(instance_obj)); in WebAssemblyInstance()
[all …]
/third_party/node/src/crypto/
Dcrypto_x509.cc61 if (GetFingerprintDigest(env, algo(), cert->get()).ToLocal(&ret)) in Fingerprint()
123 if (!GetConstructorTemplate(env)->GetFunction(env->context()).ToLocal(&ctor)) in New()
127 if (!ctor->NewInstance(env->context()).ToLocal(&obj)) in New()
198 if (!X509Certificate::New(env, std::move(der)).ToLocal(&cert)) in Parse()
200 } else if (!X509Certificate::New(env, std::move(pem)).ToLocal(&cert)) { in Parse()
216 if (Property(env, cert->get(), bio).ToLocal(&ret)) in ReturnPropertyThroughBIO()
250 if (Property(env, cert->get()).ToLocal(&ret)) args.GetReturnValue().Set(ret); in ReturnProperty()
280 if (KeyObjectHandle::Create(env, key_data).ToLocal(&ret)) in PublicKey()
443 if (X509ToObject(env, cert->get()).ToLocal(&ret)) in ToLegacy()
490 if (!X509Certificate::New(env, data_).ToLocal(&handle)) in Deserialize()
Dcrypto_rsa.cc428 if (!jwk->Get(env->context(), env->jwk_n_string()).ToLocal(&n_value) || in ImportJWKRsaKey()
429 !jwk->Get(env->context(), env->jwk_e_string()).ToLocal(&e_value) || in ImportJWKRsaKey()
430 !jwk->Get(env->context(), env->jwk_d_string()).ToLocal(&d_value) || in ImportJWKRsaKey()
465 if (!jwk->Get(env->context(), env->jwk_p_string()).ToLocal(&p_value) || in ImportJWKRsaKey()
466 !jwk->Get(env->context(), env->jwk_q_string()).ToLocal(&q_value) || in ImportJWKRsaKey()
467 !jwk->Get(env->context(), env->jwk_dp_string()).ToLocal(&dp_value) || in ImportJWKRsaKey()
468 !jwk->Get(env->context(), env->jwk_dq_string()).ToLocal(&dq_value) || in ImportJWKRsaKey()
469 !jwk->Get(env->context(), env->jwk_qi_string()).ToLocal(&qi_value)) { in ImportJWKRsaKey()
/third_party/node/deps/v8/src/builtins/
Daccessors.cc141 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in ArgumentsIteratorGetter()
161 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in ArrayLengthGetter()
250 info.GetReturnValue().Set(Utils::ToLocal(result)); in ModuleNamespaceEntryGetter()
303 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in StringLengthGetter()
339 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionPrototypeGetter()
374 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionLengthGetter()
393 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionNameGetter()
535 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionArgumentsGetter()
708 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionCallerGetter()
734 info.GetReturnValue().Set(Utils::ToLocal(result)); in BoundFunctionLengthGetter()
[all …]
/third_party/node/deps/v8/src/d8/
Dd8-console.cc23 if (!arg->ToString(isolate->GetCurrentContext()).ToLocal(&str_obj)) return; in WriteToFile()
83 if (!arg->ToString(isolate_->GetCurrentContext()).ToLocal(&label)) return; in Time()
108 if (!arg->ToString(isolate_->GetCurrentContext()).ToLocal(&label)) return; in TimeEnd()
130 if (!arg->ToString(isolate_->GetCurrentContext()).ToLocal(&label)) return; in TimeStamp()
/third_party/node/src/quic/
Ddefs.h18 if (!object->Get(env->context(), name).ToLocal(&value)) return false; in SetOption()
32 if (!object->Get(env->context(), name).ToLocal(&value)) return false; in SetOption()
46 if (!object->Get(env->context(), name).ToLocal(&value)) return false; in SetOption()
/third_party/node/src/api/
Dhooks.cc45 .ToLocal(&exit_code_v)) return Nothing<bool>(); in EmitProcessBeforeExit()
48 if (!exit_code_v->ToInteger(context).ToLocal(&exit_code)) { in EmitProcessBeforeExit()
77 if (!process_object->Get(context, exit_code).ToLocal(&code_v) || in EmitProcessExit()
81 !process_object->Get(context, exit_code).ToLocal(&code_v) || in EmitProcessExit()

123456