Lines Matching refs:v8
22 const v8::FunctionCallbackInfo<v8::Value>& info) { in V8FunctionCallback_Wrapper()
25 info.Data().As<v8::External>()->Value()); in V8FunctionCallback_Wrapper()
40 const v8::FunctionCallbackInfo<v8::Value>& info) { in V8ConstructorCallback_Wrapper()
46 info.Data().As<v8::External>()->Value()); in V8ConstructorCallback_Wrapper()
55 const v8::FunctionCallbackInfo<v8::Value>& info) { in Context_GlobalObjToString()
57 info.Data().As<v8::External>()->Value()); in Context_GlobalObjToString()
63 info.GetReturnValue().Set(v8::String::NewFromUtf8( in Context_GlobalObjToString()
64 info.GetIsolate(), szStringVal.c_str(), v8::String::kNormalString, in Context_GlobalObjToString()
68 v8::Local<v8::String> local_str = in Context_GlobalObjToString()
71 .FromMaybe(v8::Local<v8::String>()); in Context_GlobalObjToString()
76 const v8::FunctionCallbackInfo<v8::Value>& info) { in DynPropGetterAdapter_MethodCallback()
77 v8::Local<v8::Object> hCallBackInfo = info.Data().As<v8::Object>(); in DynPropGetterAdapter_MethodCallback()
80 v8::Local<v8::String> hPropName = in DynPropGetterAdapter_MethodCallback()
81 hCallBackInfo->GetInternalField(1).As<v8::String>(); in DynPropGetterAdapter_MethodCallback()
84 v8::String::Utf8Value szPropName(info.GetIsolate(), hPropName); in DynPropGetterAdapter_MethodCallback()
90 v8::MaybeLocal<v8::String> str = v8::String::NewFromUtf8( in DynPropGetterAdapter_MethodCallback()
92 v8::NewStringType::kNormal); in DynPropGetterAdapter_MethodCallback()
115 v8::Isolate* pIsolate = pValue->GetIsolate(); in DynPropGetterAdapter()
116 v8::HandleScope hscope(pIsolate); in DynPropGetterAdapter()
117 v8::Local<v8::ObjectTemplate> hCallBackInfoTemplate = in DynPropGetterAdapter()
118 v8::ObjectTemplate::New(pIsolate); in DynPropGetterAdapter()
120 v8::Local<v8::Object> hCallBackInfo = in DynPropGetterAdapter()
125 1, v8::String::NewFromUtf8( in DynPropGetterAdapter()
127 v8::String::kNormalString, szPropName.GetLength())); in DynPropGetterAdapter()
129 v8::Function::New(pValue->GetIsolate()->GetCurrentContext(), in DynPropGetterAdapter()
131 0, v8::ConstructorBehavior::kThrow) in DynPropGetterAdapter()
164 v8::Local<v8::Name> property, in NamedPropertyQueryCallback()
165 const v8::PropertyCallbackInfo<v8::Integer>& info) { in NamedPropertyQueryCallback()
166 v8::Local<v8::Object> thisObject = info.Holder(); in NamedPropertyQueryCallback()
168 info.Data().As<v8::External>()->Value()); in NamedPropertyQueryCallback()
169 v8::Isolate* pIsolate = info.GetIsolate(); in NamedPropertyQueryCallback()
170 v8::HandleScope scope(pIsolate); in NamedPropertyQueryCallback()
171 v8::String::Utf8Value szPropName(pIsolate, property); in NamedPropertyQueryCallback()
176 info.GetReturnValue().Set(v8::DontDelete); in NamedPropertyQueryCallback()
184 v8::Local<v8::Name> property, in NamedPropertyGetterCallback()
185 const v8::PropertyCallbackInfo<v8::Value>& info) { in NamedPropertyGetterCallback()
186 v8::Local<v8::Object> thisObject = info.Holder(); in NamedPropertyGetterCallback()
188 info.Data().As<v8::External>()->Value()); in NamedPropertyGetterCallback()
189 v8::String::Utf8Value szPropName(info.GetIsolate(), property); in NamedPropertyGetterCallback()
200 v8::Local<v8::Name> property, in NamedPropertySetterCallback()
201 v8::Local<v8::Value> value, in NamedPropertySetterCallback()
202 const v8::PropertyCallbackInfo<v8::Value>& info) { in NamedPropertySetterCallback()
203 v8::Local<v8::Object> thisObject = info.Holder(); in NamedPropertySetterCallback()
205 info.Data().As<v8::External>()->Value()); in NamedPropertySetterCallback()
206 v8::String::Utf8Value szPropName(info.GetIsolate(), property); in NamedPropertySetterCallback()
219 const v8::PropertyCallbackInfo<v8::Array>& info) { in NamedPropertyEnumeratorCallback()
220 info.GetReturnValue().Set(v8::Array::New(info.GetIsolate())); in NamedPropertyEnumeratorCallback()
238 v8::Isolate* pIsolate = lpContext->GetIsolate(); in Create()
243 v8::Local<v8::FunctionTemplate> hFunctionTemplate = v8::FunctionTemplate::New( in Create()
245 v8::External::New( in Create()
248 v8::String::NewFromUtf8(pIsolate, lpClassDefinition->name)); in Create()
250 v8::Local<v8::ObjectTemplate> hObjectTemplate = in Create()
256 v8::Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New( in Create()
258 v8::External::New(pIsolate, const_cast<FXJSE_FUNCTION_DESCRIPTOR*>( in Create()
262 v8::String::NewFromUtf8(pIsolate, lpClassDefinition->methods[i].name), in Create()
264 static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete)); in Create()
269 v8::Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New( in Create()
271 v8::External::New( in Create()
274 hObjectTemplate->Set(v8::String::NewFromUtf8(pIsolate, "toString"), fun); in Create()
284 v8::Isolate* pIsolate, in SetUpNamedPropHandler()
285 v8::Local<v8::ObjectTemplate>& hObjectTemplate, in SetUpNamedPropHandler()
287 v8::NamedPropertyHandlerConfiguration configuration( in SetUpNamedPropHandler()
292 v8::External::New(pIsolate, in SetUpNamedPropHandler()
294 v8::PropertyHandlerFlags::kNonMasking); in SetUpNamedPropHandler()