Lines Matching defs:method
186 JSHandle<Method> method;
188 method = Method::Create(thread_, jsPandaFile, methodLiteral);
190 method = NewSMethod(methodLiteral);
191 method->SetConstantPool(thread_, constpool);
195 aotFileManager->SetAOTFuncEntry(jsPandaFile, nullptr, *method, entryIndex, canFastCall);
197 method->InitInterpreterStatusForCompiledMethod(thread_);
199 return method;
214 JSHandle<Method> method(thread_, header);
215 InitializeMethod(methodLiteral, method);
216 return method;
224 auto method = NewSMethod(nullptr, spaceType);
225 method->SetNativePointer(const_cast<void *>(func));
226 method->SetNativeBit(true);
229 method->SetFastBuiltinBit(isFast);
230 method->SetBuiltinId(static_cast<uint8_t>(builtinId));
232 method->SetNumArgsWithCallField(numArgs);
233 method->SetFunctionKind(kind);
234 return method;
237 JSHandle<JSFunction> ObjectFactory::NewSFunctionByHClass(const JSHandle<Method> &method,
242 JSFunction::InitializeSFunction(thread_, function, method->GetFunctionKind());
243 function->SetMethod(thread_, method);
245 if (method->IsAotWithCallField()) {
247 SetAOTFuncEntry(method->GetJSPandaFile(), *function, *method);
257 JSHandle<Method> method = NewSMethodForNativeFunction(func, kind, builtinId, spaceType);
258 return NewSFunctionByHClass(method, hclass);
266 JSHandle<Method> method = NewSMethodForNativeFunction(func, kind, builtinId, spaceType);
270 function->SetMethod(thread_, method);
472 const JSHandle<Method> &method, const JSHandle<JSTaggedValue> &module, int32_t length)
479 functionTemplate->SetMethod(thread_, method);
617 JSHandle<JSTaggedValue> method)
624 obj->SetConstructorMethod(thread_, method.GetTaggedValue());