Home
last modified time | relevance | path

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

123

/external/v8/src/
Dapi-inl.h59 Local<v8::Type##Array> Utils::ToLocal##Type##Array( \
65 MAKE_TO_LOCAL(ToLocal, Context, Context)
66 MAKE_TO_LOCAL(ToLocal, Object, Value)
67 MAKE_TO_LOCAL(ToLocal, Module, Module)
68 MAKE_TO_LOCAL(ToLocal, Name, Name)
69 MAKE_TO_LOCAL(ToLocal, String, String)
70 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol)
71 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp)
72 MAKE_TO_LOCAL(ToLocal, JSReceiver, Object)
73 MAKE_TO_LOCAL(ToLocal, JSObject, Object)
[all …]
Dapi.h136 static inline Local<Context> ToLocal(
138 static inline Local<Value> ToLocal(
140 static inline Local<Module> ToLocal(
142 static inline Local<Name> ToLocal(
144 static inline Local<String> ToLocal(
146 static inline Local<Symbol> ToLocal(
148 static inline Local<RegExp> ToLocal(
150 static inline Local<Object> ToLocal(
152 static inline Local<Object> ToLocal(
154 static inline Local<Function> ToLocal(
[all …]
Dd8-console.cc23 if (!arg->ToString(isolate->GetCurrentContext()).ToLocal(&str_obj)) return; in WriteToFile()
44 if (!args[0]->ToBoolean(isolate_->GetCurrentContext()).ToLocal(&arg)) { in Assert()
92 if (!arg->ToString(isolate_->GetCurrentContext()).ToLocal(&label)) return; in Time()
116 if (!arg->ToString(isolate_->GetCurrentContext()).ToLocal(&label)) return; in TimeEnd()
136 if (!arg->ToString(isolate_->GetCurrentContext()).ToLocal(&label)) return; in TimeStamp()
Dapi-arguments-inl.h75 f(v8::Utils::ToLocal(name), callback_info); \
174 f(v8::Utils::ToLocal(name), callback_info); in BasicCallNamedGetterCallback()
192 f(v8::Utils::ToLocal(name), v8::Utils::ToLocal(value), callback_info); in CallNamedSetter()
210 f(v8::Utils::ToLocal(name), desc, callback_info); in CallNamedDefiner()
227 f(index, v8::Utils::ToLocal(value), callback_info); in CallIndexedSetter()
321 f(v8::Utils::ToLocal(name), v8::Utils::ToLocal(value), callback_info); in CallAccessorSetter()
Daccessors.cc136 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in ArgumentsIteratorGetter()
160 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in ArrayLengthGetter()
245 info.GetReturnValue().Set(Utils::ToLocal(result)); in ModuleNamespaceEntryGetter()
300 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate))); in StringLengthGetter()
332 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionPrototypeGetter()
375 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionLengthGetter()
397 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionNameGetter()
549 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionArgumentsGetter()
726 info.GetReturnValue().Set(Utils::ToLocal(result)); in FunctionCallerGetter()
754 info.GetReturnValue().Set(Utils::ToLocal(result)); in BoundFunctionLengthGetter()
[all …]
Dapi.cc337 Utils::ToLocal(scriptName), in GetScriptOriginForScript()
342 Utils::ToLocal(source_map_url), in GetScriptOriginForScript()
346 Utils::ToLocal(host_defined_options)); in GetScriptOriginForScript()
1262 return Utils::ToLocal(result); in SlowGetEmbedderData()
1323 Set(Utils::ToLocal(Utils::OpenHandle(reinterpret_cast<Name*>(*name))), value, in SetPrivate()
1417 Utils::ToLocal(obj)->SetCallHandler(callback, data, side_effect_type); in FunctionTemplateNew()
1430 return Utils::ToLocal(obj); in FunctionTemplateNew()
1456 return Utils::ToLocal(i::Handle<i::FunctionTemplateInfo>( in FromSnapshot()
1570 return Utils::ToLocal(result); in InstanceTemplate()
1655 return Utils::ToLocal(obj); in ObjectTemplateNew()
[all …]
Ddate.h100 int64_t local_ms = ToLocal(time_ms); in TimezoneOffset()
106 int64_t ToLocal(int64_t time_ms) { in ToLocal() function
/external/v8/src/inspector/
Dv8-regex.cc32 .ToLocal(&regex)) in V8Regex()
60 .ToLocal(&exec)) in match()
67 .ToLocal(&returnValue)) in match()
83 .ToLocal(&matchOffset)) in match()
87 if (!result->Get(context, 0).ToLocal(&match)) return -1; in match()
Dv8-console.cc120 if (!m_info[0].As<v8::Object>()->ObjectProtoToString(m_context).ToLocal( in firstArgToString()
124 if (!m_info[0]->ToString(m_context).ToLocal(&titleValue)) in firstArgToString()
175 .ToLocal(&func)) in createBoundFunctionProperty()
185 .ToLocal(&toStringFunction)) in createBoundFunctionProperty()
434 .ToLocal(&memoryValue)) in memoryGetterCallback()
454 if (!helper.firstArgAsObject().ToLocal(&obj)) return; in keysCallback()
456 if (!obj->GetOwnPropertyNames(isolate->GetCurrentContext()).ToLocal(&names)) in keysCallback()
469 if (!helper.firstArgAsObject().ToLocal(&obj)) return; in valuesCallback()
472 if (!obj->GetOwnPropertyNames(context).ToLocal(&names)) return; in valuesCallback()
476 if (!names->Get(context, i).ToLocal(&key)) continue; in valuesCallback()
[all …]
Dv8-value-utils.cc53 if (!array->Get(context, i).ToLocal(&value)) in toProtocolValue()
68 if (!object->GetPropertyNames(context).ToLocal(&propertyNames)) in toProtocolValue()
73 if (!propertyNames->Get(context, i).ToLocal(&name)) in toProtocolValue()
84 if (!name->ToString(context).ToLocal(&propertyName)) continue; in toProtocolValue()
86 if (!object->Get(context, name).ToLocal(&property)) in toProtocolValue()
Dv8-internal-value-type.cc52 if (!array->Get(context, i).ToLocal(&entry) || !entry->IsObject()) in markArrayEntriesAsInternal()
69 if (!object->GetPrivate(context, privateValue).ToLocal(&subtypeValue) || in v8InternalValueTypeFrom()
Dv8-function-call.cc82 if (!thisObject->Get(m_context, m_name).ToLocal(&value)) in callWithoutExceptionHandling()
111 if (!maybeResult.ToLocal(&result)) return v8::Local<v8::Value>(); in callWithoutExceptionHandling()
Dv8-debugger-script.cc226 if (script->SourceURL().ToLocal(&sourceURL) && sourceURL->Length() > 0) in GetScriptURL()
229 if (script->Name().ToLocal(&v8Name) && v8Name->Length() > 0) { in GetScriptURL()
245 script->SourceURL().ToLocal(&tmp) && tmp->Length() > 0; in Initialize()
246 if (script->SourceMappingURL().ToLocal(&tmp)) in Initialize()
267 if (script->Source().ToLocal(&tmp)) { in Initialize()
Dv8-injected-script-host.cc31 .ToLocal(&func)) in setFunctionProperty()
147 .ToLocal(&property)) { in getPropertyCallback()
280 .ToLocal(&allProperties) || in getInternalPropertiesCallback()
297 if (!allProperties->Get(context, i).ToLocal(&key)) continue; in getInternalPropertiesCallback()
307 if (!allProperties->Get(context, i + 1).ToLocal(&value)) continue; in getInternalPropertiesCallback()
Dv8-debugger.cc33 !value.As<v8::Object>()->PreviewEntries(&isKeyValue).ToLocal(&entries)) { in collectionsEntries()
44 if (!entries->Get(context, i).ToLocal(&item)) continue; in collectionsEntries()
46 if (isKeyValue && !entries->Get(context, i + 1).ToLocal(&value)) continue; in collectionsEntries()
116 if (!generatorObject->Script().ToLocal(&script)) in generatorObjectLocation()
757 if (!v8::debug::GetInternalProperties(m_isolate, value).ToLocal(&properties)) in internalProperties()
765 .ToLocal(&location)) { in internalProperties()
779 if (collectionsEntries(context, value).ToLocal(&entries)) { in internalProperties()
786 if (generatorObjectLocation(context, value).ToLocal(&location)) { in internalProperties()
793 if (generatorScopes(context, value).ToLocal(&scopes)) { in internalProperties()
802 if (functionScopes(context, function).ToLocal(&scopes)) { in internalProperties()
Dv8-runtime-agent-impl.cc147 .ToLocal(&functionScript)) { in innerCallFunctionOn()
168 if (!maybeFunctionValue.ToLocal(&functionValue) || in innerCallFunctionOn()
408 .ToLocal(&propertiesArray)) { in getProperties()
416 if (!propertiesArray->Get(scope.context(), i).ToLocal(&name) || in getProperties()
421 if (!propertiesArray->Get(scope.context(), i + 1).ToLocal(&value)) in getProperties()
497 .ToLocal(&script); in compileScript()
717 .ToLocal(&functionValue)) { in addBinding()
/external/v8/src/debug/
Ddebug-stack-trace-iterator.cc109 return Utils::ToLocal(value); in GetReceiver()
113 return Utils::ToLocal(value); in GetReceiver()
126 return Utils::ToLocal(isolate_->debug()->return_value_handle()); in GetReturnValue()
131 return Utils::ToLocal(frame_inspector_->GetFunctionName()); in GetFunctionDebugName()
151 return Utils::ToLocal(frame_inspector_->GetFunction()); in GetFunction()
184 return Utils::ToLocal(value); in Evaluate()
Ddebug-scope-iterator.cc91 return Utils::ToLocal(value); in GetObject()
102 return Utils::ToLocal(name); in GetFunctionDebugName()
162 return Utils::ToLocal(WasmDebugInfo::GetGlobalScopeObject( in GetObject()
165 return Utils::ToLocal(WasmDebugInfo::GetLocalScopeObject( in GetObject()
180 return Utils::ToLocal(isolate_->factory()->empty_string()); in GetFunctionDebugName()
/external/v8/src/wasm/
Dwasm-js.cc98 if (!expr.ToLocal(&var)) { \
139 return Utils::ToLocal(v8_str(reinterpret_cast<i::Isolate*>(isolate), str)); in v8_str()
460 Utils::ToLocal(i::Handle<i::Object>::cast(data)), 1)); in WebAssemblyCompileStreaming()
557 return_value.Set(Utils::ToLocal(module_obj.ToHandleChecked())); in WebAssemblyModule()
570 args.GetReturnValue().Set(Utils::ToLocal(imports)); in WebAssemblyModuleImports()
583 args.GetReturnValue().Set(Utils::ToLocal(exports)); in WebAssemblyModuleExports()
606 args.GetReturnValue().Set(Utils::ToLocal(custom_sections)); in WebAssemblyModuleCustomSections()
637 return Utils::ToLocal(instance_object.ToHandleChecked()); in WebAssemblyInstantiateImpl()
666 if (WebAssemblyInstantiateImpl(isolate, args[0], data).ToLocal(&instance)) { in WebAssemblyInstance()
732 Utils::ToLocal(i::Handle<i::Object>::cast(data)), 1)); in WebAssemblyInstantiateStreaming()
[all …]
Dwasm-module.cc110 v8::Utils::ToLocal(context), in IsWasmCodegenAllowed()
111 v8::Utils::ToLocal(isolate->factory()->empty_string())); in IsWasmCodegenAllowed()
116 v8::Utils::ToLocal(context), in IsWasmCodegenAllowed()
117 v8::Utils::ToLocal(isolate->factory()->empty_string())); in IsWasmCodegenAllowed()
/external/v8/samples/
Dshell.cc176 if (!ReadFile(args.GetIsolate(), *file).ToLocal(&source)) { in Read()
200 if (!ReadFile(args.GetIsolate(), *file).ToLocal(&source)) { in Load()
284 .ToLocal(&source)) { in RunMain()
296 if (!ReadFile(isolate, str).ToLocal(&source)) { in RunMain()
345 if (!v8::Script::Compile(context, source, &origin).ToLocal(&script)) { in ExecuteString()
352 if (!script->Run(context).ToLocal(&result)) { in ExecuteString()
406 if (try_catch->StackTrace(context).ToLocal(&stack_trace_string) && in ReportException()
Dprocess.cc218 if (!context->Global()->Get(context, process_name).ToLocal(&process_val) || in Initialize()
246 if (!Script::Compile(context, script).ToLocal(&compiled_script)) { in ExecuteScript()
255 if (!compiled_script->Run(context).ToLocal(&result)) { in ExecuteScript()
321 if (!process->Call(context, context->Global(), argc, argv).ToLocal(&result)) { in Process()
720 if (!ReadFile(isolate, file).ToLocal(&source)) { in main()
/external/v8/src/extensions/
Dexternalize-string-extension.cc101 result = Utils::ToLocal(string)->MakeExternal(resource); in Externalize()
108 result = Utils::ToLocal(string)->MakeExternal(resource); in Externalize()
/external/v8/src/builtins/
Dbuiltins-date.cc146 int64_t local_time_ms = date_cache->ToLocal(time_ms); in ToDateString()
364 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
386 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
422 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
461 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
483 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
518 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
547 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
864 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
885 int64_t local_time_ms = isolate->date_cache()->ToLocal(time_ms); in BUILTIN()
/external/pdfium/fxjs/
Dcjs_v8.cpp28 .ToLocal(&val)) in GetObjectProperty()
40 if (!pObj->GetPropertyNames(context).ToLocal(&val)) in GetObjectPropertyNames()
80 if (!pArray->Get(m_isolate->GetCurrentContext(), index).ToLocal(&val)) in GetArrayElement()

123