Lines Matching defs:jsFunction
294 bool Jit::SupportJIT(JSHandle<JSFunction> &jsFunction, [[maybe_unused]] EcmaVM *vm, CompilerTier tier) const
296 Method *method = Method::Cast(jsFunction->GetMethod().GetTaggedObject());
297 if (jsFunction.GetTaggedValue().IsJSSharedFunction()) {
333 void Jit::CountInterpExecFuncs(JSHandle<JSFunction> &jsFunction)
335 Method *method = Method::Cast(jsFunction->GetMethod().GetTaggedObject());
346 void Jit::Compile(EcmaVM *vm, JSHandle<JSFunction> &jsFunction, CompilerTier tier,
359 Method *method = Method::Cast(jsFunction->GetMethod().GetTaggedObject());
397 if (!jit->SupportJIT(jsFunction, vm, tier)) {
400 bool needCompile = jit->CheckJitCompileStatus(jsFunction, methodName, tier);
407 jsFunction->SetMachineCode(vm->GetJSThread(), JSTaggedValue::Hole());
411 jsFunction->SetBaselineCode(vm->GetJSThread(), JSTaggedValue::Hole());
421 jit, jsFunction, tier, methodName, offset, vm->GetJSThread()->GetThreadId(), mode);
452 bool Jit::CheckJitCompileStatus(JSHandle<JSFunction> &jsFunction,
456 jsFunction->GetMachineCode() == JSTaggedValue::Hole()) {
468 jsFunction->GetBaselineCode() == JSTaggedValue::Hole()) {
473 if (tier == CompilerTier::FAST && jsFunction->IsCompiledCode()) {
474 JSTaggedValue machineCode = jsFunction->GetMachineCode();
484 jsFunction->GetBaselineCode() != JSTaggedValue::Undefined()) {