Lines Matching refs:isolate
61 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()
164 v8::Isolate* isolate() const { return isolate_; } in isolate() function in __anonac4c0c710111::CefV8IsolateManager
231 explicit V8TrackObject(v8::Isolate* isolate) in V8TrackObject() argument
232 : isolate_(isolate), external_memory_(0) { in V8TrackObject()
320 v8::Isolate* isolate, in V8TrackArrayBuffer() argument
322 : isolate_(isolate), release_callback_(release_callback) { in V8TrackArrayBuffer()
364 static v8::Local<v8::External> Create(v8::Isolate* isolate, in Create() argument
368 V8FunctionData* data = new V8FunctionData(isolate, function_name, handler); in Create()
386 V8FunctionData(v8::Isolate* isolate, in V8FunctionData() argument
389 : isolate_(isolate), function_name_(function_name), handler_(handler) { in V8FunctionData()
433 v8::Local<v8::String> GetV8String(v8::Isolate* isolate, const CefString& str) { in GetV8String() argument
437 isolate, in GetV8String()
444 return v8::String::NewFromUtf8(isolate, const_cast<char*>(str.c_str()), in GetV8String()
450 return v8::String::NewFromUtf8(isolate, tmpStr.c_str(), in GetV8String()
467 void GetCefString(v8::Isolate* isolate, in GetCefString() argument
479 str->WriteUtf8(isolate, buf, len + 1); in GetCefString()
492 str->Write(isolate, reinterpret_cast<uint16_t*>(buf), 0, len + 1); in GetCefString()
499 str->WriteUtf8(isolate, buf, len + 1); in GetCefString()
513 v8::Isolate* isolate = info.GetIsolate(); in FunctionCallbackImpl() local
514 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in FunctionCallbackImpl()
524 params.push_back(new CefV8ValueImpl(isolate, context, info[i])); in FunctionCallbackImpl()
527 new CefV8ValueImpl(isolate, context, info.This()); in FunctionCallbackImpl()
534 info.GetReturnValue().Set(isolate->ThrowException( in FunctionCallbackImpl()
535 v8::Exception::Error(GetV8String(isolate, exception)))); in FunctionCallbackImpl()
553 v8::Isolate* isolate = info.GetIsolate(); in AccessorNameGetterCallbackImpl() local
554 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in AccessorNameGetterCallbackImpl()
566 CefRefPtr<CefV8Value> object = new CefV8ValueImpl(isolate, context, obj); in AccessorNameGetterCallbackImpl()
568 GetCefString(isolate, v8::Local<v8::String>::Cast(property), name); in AccessorNameGetterCallbackImpl()
571 info.GetReturnValue().Set(isolate->ThrowException( in AccessorNameGetterCallbackImpl()
572 v8::Exception::Error(GetV8String(isolate, exception)))); in AccessorNameGetterCallbackImpl()
591 v8::Isolate* isolate = info.GetIsolate(); in AccessorNameSetterCallbackImpl() local
592 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in AccessorNameSetterCallbackImpl()
603 CefRefPtr<CefV8Value> object = new CefV8ValueImpl(isolate, context, obj); in AccessorNameSetterCallbackImpl()
605 new CefV8ValueImpl(isolate, context, value); in AccessorNameSetterCallbackImpl()
607 GetCefString(isolate, v8::Local<v8::String>::Cast(property), name); in AccessorNameSetterCallbackImpl()
610 isolate->ThrowException( in AccessorNameSetterCallbackImpl()
611 v8::Exception::Error(GetV8String(isolate, exception))); in AccessorNameSetterCallbackImpl()
618 CefString PropertyToIndex(v8::Isolate* isolate, v8::Local<v8::Name> property) { in PropertyToIndex() argument
620 GetCefString(isolate, property.As<v8::String>(), name); in PropertyToIndex()
624 int PropertyToIndex(v8::Isolate* isolate, uint32_t index) { in PropertyToIndex() argument
635 v8::Isolate* isolate = info.GetIsolate(); in InterceptorGetterCallbackImpl() local
636 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in InterceptorGetterCallbackImpl()
647 CefRefPtr<CefV8Value> object = new CefV8ValueImpl(isolate, context, obj); in InterceptorGetterCallbackImpl()
650 interceptorPtr->Get(PropertyToIndex(isolate, property), object, retval, in InterceptorGetterCallbackImpl()
653 info.GetReturnValue().Set(isolate->ThrowException( in InterceptorGetterCallbackImpl()
654 v8::Exception::Error(GetV8String(isolate, exception)))); in InterceptorGetterCallbackImpl()
668 v8::Isolate* isolate = info.GetIsolate(); in InterceptorSetterCallbackImpl() local
669 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in InterceptorSetterCallbackImpl()
679 CefRefPtr<CefV8Value> object = new CefV8ValueImpl(isolate, context, obj); in InterceptorSetterCallbackImpl()
680 CefRefPtr<CefV8Value> cefValue = new CefV8ValueImpl(isolate, context, value); in InterceptorSetterCallbackImpl()
682 interceptorPtr->Set(PropertyToIndex(isolate, property), object, cefValue, in InterceptorSetterCallbackImpl()
685 isolate->ThrowException( in InterceptorSetterCallbackImpl()
686 v8::Exception::Error(GetV8String(isolate, exception))); in InterceptorSetterCallbackImpl()
700 v8::Isolate* isolate, in GetNativeFunctionTemplate() argument
706 GetCefString(isolate, name, func_name); in GetNativeFunctionTemplate()
709 V8FunctionData::Create(isolate, func_name, handler_); in GetNativeFunctionTemplate()
711 return v8::FunctionTemplate::New(isolate, FunctionCallbackImpl, in GetNativeFunctionTemplate()
731 v8::Isolate* isolate = context->GetIsolate(); in CefV8ExceptionImpl() local
732 GetCefString(isolate, message->Get(), message_); in CefV8ExceptionImpl()
735 GetCefString(isolate, source_line.ToLocalChecked(), source_line_); in CefV8ExceptionImpl()
739 isolate, in CefV8ExceptionImpl()
786 v8::Isolate* isolate = GetIsolateManager()->isolate(); in MessageListenerCallbackImpl() local
790 new CefV8StackTraceImpl(isolate, v8Stack); in MessageListenerCallbackImpl()
841 V8TrackObject* object = new V8TrackObject(isolate_manager->isolate()); in CefRegisterExtension()
900 CefV8HandleBase::CefV8HandleBase(v8::Isolate* isolate, in CefV8HandleBase() argument
902 : isolate_(isolate) { in CefV8HandleBase()
907 DCHECK_EQ(isolate_, manager->isolate()); in CefV8HandleBase()
919 v8::Isolate* isolate = GetIsolateManager()->isolate(); in GetCurrentContext() local
920 if (isolate->InContext()) { in GetCurrentContext()
921 v8::HandleScope handle_scope(isolate); in GetCurrentContext()
922 context = new CefV8ContextImpl(isolate, isolate->GetCurrentContext()); in GetCurrentContext()
931 v8::Isolate* isolate = GetIsolateManager()->isolate(); in GetEnteredContext() local
932 if (isolate->InContext()) { in GetEnteredContext()
933 v8::HandleScope handle_scope(isolate); in GetEnteredContext()
935 new CefV8ContextImpl(isolate, isolate->GetEnteredOrMicrotaskContext()); in GetEnteredContext()
943 v8::Isolate* isolate = GetIsolateManager()->isolate(); in InContext() local
944 return isolate->InContext(); in InContext()
949 CefV8ContextImpl::CefV8ContextImpl(v8::Isolate* isolate, in CefV8ContextImpl() argument
951 : handle_(new Handle(isolate, context, context)), enter_count_(0) {} in CefV8ContextImpl()
998 v8::Isolate* isolate = handle_->isolate(); in GetGlobal() local
999 v8::HandleScope handle_scope(isolate); in GetGlobal()
1002 return new CefV8ValueImpl(isolate, context, context->Global()); in GetGlobal()
1011 v8::Isolate* isolate = handle_->isolate(); in Enter() local
1012 v8::HandleScope handle_scope(isolate); in Enter()
1017 new v8::MicrotasksScope(isolate, v8::MicrotasksScope::kRunMicrotasks)); in Enter()
1038 v8::HandleScope handle_scope(handle_->isolate()); in Exit()
1079 v8::Isolate* isolate = handle_->isolate(); in Eval() local
1080 v8::HandleScope handle_scope(isolate); in Eval()
1089 v8::TryCatch try_catch(isolate); in Eval()
1099 retval = new CefV8ValueImpl(isolate, context, func_rv); in Eval()
1117 v8::HandleScope handle_scope(handle_->isolate()); in GetWebFrame()
1125 CefV8ValueImpl::Handle::Handle(v8::Isolate* isolate, in Handle() argument
1129 : CefV8HandleBase(isolate, context), in Handle()
1130 handle_(isolate, v), in Handle()
1167 return handleType::New(isolate(), handle_); in GetNewV8Handle()
1234 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateUndefined() local
1235 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateUndefined()
1243 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateNull() local
1244 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateNull()
1252 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateBool() local
1253 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateBool()
1261 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateInt() local
1262 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateInt()
1270 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateUInt() local
1271 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateUInt()
1279 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateDouble() local
1280 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateDouble()
1288 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateDate() local
1289 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateDate()
1297 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateString() local
1298 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateString()
1310 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateObject() local
1311 v8::HandleScope handle_scope(isolate); in CreateObject()
1313 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in CreateObject()
1323 v8::Local<v8::ObjectTemplate> tmpl = v8::ObjectTemplate::New(isolate); in CreateObject()
1339 obj = v8::Object::New(isolate); in CreateObject()
1345 V8TrackObject* tracker = new V8TrackObject(isolate); in CreateObject()
1352 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateObject()
1361 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateArray() local
1362 v8::HandleScope handle_scope(isolate); in CreateArray()
1364 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in CreateArray()
1372 V8TrackObject* tracker = new V8TrackObject(isolate); in CreateArray()
1375 v8::Local<v8::Array> arr = v8::Array::New(isolate, length); in CreateArray()
1380 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateArray()
1392 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateArrayBuffer() local
1393 v8::HandleScope handle_scope(isolate); in CreateArrayBuffer()
1394 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in CreateArrayBuffer()
1403 new V8TrackArrayBuffer(isolate, release_callback); in CreateArrayBuffer()
1420 v8::ArrayBuffer::New(isolate, std::move(backing)); in CreateArrayBuffer()
1425 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateArrayBuffer()
1441 v8::Isolate* isolate = GetIsolateManager()->isolate(); in CreateFunction() local
1442 v8::HandleScope handle_scope(isolate); in CreateFunction()
1444 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in CreateFunction()
1451 V8FunctionData::Create(isolate, name, handler); in CreateFunction()
1455 v8::FunctionTemplate::New(isolate, FunctionCallbackImpl, function_data); in CreateFunction()
1465 func->SetName(GetV8String(isolate, name)); in CreateFunction()
1469 V8TrackObject* tracker = new V8TrackObject(isolate); in CreateFunction()
1477 CefRefPtr<CefV8ValueImpl> impl = new CefV8ValueImpl(isolate); in CreateFunction()
1484 CefV8ValueImpl::CefV8ValueImpl(v8::Isolate* isolate) in CefV8ValueImpl() argument
1485 : isolate_(isolate), type_(TYPE_INVALID), rethrow_exceptions_(false) { in CefV8ValueImpl()
1489 CefV8ValueImpl::CefV8ValueImpl(v8::Isolate* isolate, in CefV8ValueImpl() argument
1492 : isolate_(isolate), type_(TYPE_INVALID), rethrow_exceptions_(false) { in CefV8ValueImpl()
1687 v8::HandleScope handle_scope(handle_->isolate()); in IsArray()
1697 v8::HandleScope handle_scope(handle_->isolate()); in IsArrayBuffer()
1707 v8::HandleScope handle_scope(handle_->isolate()); in IsFunction()
1800 v8::Isolate* isolate = handle_->isolate(); in IsUserCreated() local
1801 v8::HandleScope handle_scope(isolate); in IsUserCreated()
1803 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in IsUserCreated()
1851 v8::Isolate* isolate = handle_->isolate(); in HasValue() local
1852 v8::HandleScope handle_scope(isolate); in HasValue()
1854 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in HasValue()
1862 return obj->Has(context, GetV8String(isolate, key)).FromJust(); in HasValue()
1873 v8::Isolate* isolate = handle_->isolate(); in HasValue() local
1874 v8::HandleScope handle_scope(isolate); in HasValue()
1876 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in HasValue()
1890 v8::Isolate* isolate = handle_->isolate(); in DeleteValue() local
1891 v8::HandleScope handle_scope(isolate); in DeleteValue()
1893 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in DeleteValue()
1902 v8::TryCatch try_catch(isolate); in DeleteValue()
1904 v8::Maybe<bool> del = obj->Delete(context, GetV8String(isolate, key)); in DeleteValue()
1916 v8::Isolate* isolate = handle_->isolate(); in DeleteValue() local
1917 v8::HandleScope handle_scope(isolate); in DeleteValue()
1919 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in DeleteValue()
1928 v8::TryCatch try_catch(isolate); in DeleteValue()
1937 v8::Isolate* isolate = handle_->isolate(); in GetValue() local
1938 v8::HandleScope handle_scope(isolate); in GetValue()
1940 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetValue()
1949 v8::TryCatch try_catch(isolate); in GetValue()
1952 obj->Get(context, GetV8String(isolate, key)); in GetValue()
1954 return new CefV8ValueImpl(isolate, context, ret_value.ToLocalChecked()); in GetValue()
1967 v8::Isolate* isolate = handle_->isolate(); in GetValue() local
1968 v8::HandleScope handle_scope(isolate); in GetValue()
1970 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetValue()
1979 v8::TryCatch try_catch(isolate); in GetValue()
1982 obj->Get(context, v8::Number::New(isolate, index)); in GetValue()
1984 return new CefV8ValueImpl(isolate, context, ret_value.ToLocalChecked()); in GetValue()
1996 v8::Isolate* isolate = handle_->isolate(); in SetValue() local
1997 v8::HandleScope handle_scope(isolate); in SetValue()
1999 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in SetValue()
2008 v8::TryCatch try_catch(isolate); in SetValue()
2016 obj->Set(context, GetV8String(isolate, key), impl->GetV8Value(true)); in SetValue()
2020 context, GetV8String(isolate, key), impl->GetV8Value(true), in SetValue()
2040 v8::Isolate* isolate = handle_->isolate(); in SetValue() local
2041 v8::HandleScope handle_scope(isolate); in SetValue()
2043 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in SetValue()
2052 v8::TryCatch try_catch(isolate); in SetValue()
2067 v8::Isolate* isolate = handle_->isolate(); in SetValue() local
2068 v8::HandleScope handle_scope(isolate); in SetValue()
2070 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in SetValue()
2095 v8::TryCatch try_catch(isolate); in SetValue()
2098 obj->SetAccessor(context, GetV8String(isolate, key), getter, setter, obj, in SetValue()
2107 v8::Isolate* isolate = handle_->isolate(); in GetKeys() local
2108 v8::HandleScope handle_scope(isolate); in GetKeys()
2110 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetKeys()
2124 arr_keys->Get(context, v8::Integer::New(isolate, i)).ToLocalChecked(); in GetKeys()
2126 GetCefString(isolate, value->ToString(context).ToLocalChecked(), str); in GetKeys()
2135 v8::Isolate* isolate = handle_->isolate(); in SetUserData() local
2136 v8::HandleScope handle_scope(isolate); in SetUserData()
2138 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in SetUserData()
2159 v8::Isolate* isolate = handle_->isolate(); in GetUserData() local
2160 v8::HandleScope handle_scope(isolate); in GetUserData()
2162 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetUserData()
2181 v8::Isolate* isolate = handle_->isolate(); in GetExternallyAllocatedMemory() local
2182 v8::HandleScope handle_scope(isolate); in GetExternallyAllocatedMemory()
2184 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetExternallyAllocatedMemory()
2203 v8::Isolate* isolate = handle_->isolate(); in AdjustExternallyAllocatedMemory() local
2204 v8::HandleScope handle_scope(isolate); in AdjustExternallyAllocatedMemory()
2206 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in AdjustExternallyAllocatedMemory()
2225 v8::Isolate* isolate = handle_->isolate(); in GetArrayLength() local
2226 v8::HandleScope handle_scope(isolate); in GetArrayLength()
2228 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetArrayLength()
2249 v8::Isolate* isolate = handle_->isolate(); in GetArrayBufferReleaseCallback() local
2250 v8::HandleScope handle_scope(isolate); in GetArrayBufferReleaseCallback()
2252 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetArrayBufferReleaseCallback()
2276 v8::Isolate* isolate = handle_->isolate(); in NeuterArrayBuffer() local
2277 v8::HandleScope handle_scope(isolate); in NeuterArrayBuffer()
2279 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in NeuterArrayBuffer()
2304 v8::Isolate* isolate = handle_->isolate(); in GetFunctionName() local
2305 v8::HandleScope handle_scope(isolate); in GetFunctionName()
2307 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetFunctionName()
2321 GetCefString(handle_->isolate(), in GetFunctionName()
2329 v8::Isolate* isolate = handle_->isolate(); in GetFunctionHandler() local
2330 v8::HandleScope handle_scope(isolate); in GetFunctionHandler()
2332 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in GetFunctionHandler()
2366 v8::Isolate* isolate = handle_->isolate(); in ExecuteFunctionWithContext() local
2367 v8::HandleScope handle_scope(isolate); in ExecuteFunctionWithContext()
2399 context_local = isolate->GetCurrentContext(); in ExecuteFunctionWithContext()
2428 v8::TryCatch try_catch(isolate); in ExecuteFunctionWithContext()
2432 context_local, func, recv, argc, argv, handle_->isolate()); in ExecuteFunctionWithContext()
2436 new CefV8ValueImpl(isolate, context_local, func_rv.ToLocalChecked()); in ExecuteFunctionWithContext()
2466 v8::Isolate* isolate = GetIsolateManager()->isolate(); in GetCurrent() local
2467 v8::HandleScope handle_scope(isolate); in GetCurrent()
2469 isolate, frame_limit, v8::StackTrace::kDetailed); in GetCurrent()
2472 return new CefV8StackTraceImpl(isolate, stackTrace); in GetCurrent()
2477 CefV8StackTraceImpl::CefV8StackTraceImpl(v8::Isolate* isolate, in CefV8StackTraceImpl() argument
2485 new CefV8StackFrameImpl(isolate, handle->GetFrame(isolate, i))); in CefV8StackTraceImpl()
2508 CefV8StackFrameImpl::CefV8StackFrameImpl(v8::Isolate* isolate, in CefV8StackFrameImpl() argument
2513 GetCefString(isolate, handle->GetScriptName(), script_name_); in CefV8StackFrameImpl()
2514 GetCefString(isolate, handle->GetScriptNameOrSourceURL(), in CefV8StackFrameImpl()
2516 GetCefString(isolate, handle->GetFunctionName(), function_name_); in CefV8StackFrameImpl()