Lines Matching full:base
34 LOG_ECMA(ERROR) << "find base jsPandafile failed"; in LoadPatch()
54 LOG_ECMA(ERROR) << "find base jsPandafile failed"; in LoadPatch()
75 LOG_ECMA(ERROR) << "base or patch is not merge abc!"; in LoadPatchInternal()
79 // Get base constpool. in LoadPatchInternal()
83 LOG_ECMA(ERROR) << "base constpool is hole"; in LoadPatchInternal()
244 …// Loop patch methodLiterals and base constpool to find same methodName and recordName both in bas… in ReplaceMethod()
277 // For merge abc, method and record name must be same to base. in ReplaceMethod()
283 // Save base MethodLiteral and literal index. in ReplaceMethod()
284 … MethodLiteral *base = baseFile->FindMethodLiteral(baseMethod->GetMethodId().GetOffset()); in ReplaceMethod() local
285 ASSERT(base != nullptr); in ReplaceMethod()
286 InsertBaseClassMethodInfo(index, i, base); in ReplaceMethod()
303 // For merge abc, method and record name must be same to base. in ReplaceMethod()
309 // Save base MethodLiteral and constpool index. in ReplaceMethod()
310 … MethodLiteral *base = baseFile->FindMethodLiteral(baseMethod->GetMethodId().GetOffset()); in ReplaceMethod() local
311 ASSERT(base != nullptr); in ReplaceMethod()
312 reservedBaseMethodInfo_.emplace(index, base); in ReplaceMethod()
322 LOG_ECMA(ERROR) << "can not find same method to base"; in ReplaceMethod()
376 LOG_ECMA(ERROR) << "find base jsPandafile failed"; in UnloadPatch()
394 LOG_ECMA(ERROR) << "base constpool is hole"; in UnloadPatch()
401 MethodLiteral *base = item.second; in UnloadPatch() local
407 ReplaceMethodInner(thread, method, base, baseConstpoolValue); in UnloadPatch()
418 MethodLiteral *base = classItem.second; in UnloadPatch() local
425 ReplaceMethodInner(thread, method, base, baseConstpoolValue); in UnloadPatch()
489 …der::InsertBaseClassMethodInfo(uint32_t constpoolIndex, uint32_t literalIndex, MethodLiteral *base) in InsertBaseClassMethodInfo() argument
497 literalInfo.emplace(literalIndex, base); in InsertBaseClassMethodInfo()
499 CUnorderedMap<uint32_t, MethodLiteral *> classLiteralInfo {{literalIndex, base}}; in InsertBaseClassMethodInfo()
535 JSTaggedValue base; in CheckIsModuleMismatch() local
539 base = baseModule->GetImportEntries(); in CheckIsModuleMismatch()
540 if (CheckImportEntriesMismatch(thread, patch, base)) { in CheckIsModuleMismatch()
546 base = baseModule->GetLocalExportEntries(); in CheckIsModuleMismatch()
547 if (CheckLocalExportEntriesMismatch(thread, patch, base)) { in CheckIsModuleMismatch()
553 base = baseModule->GetIndirectExportEntries(); in CheckIsModuleMismatch()
554 if (CheckIndirectExportEntriesMismatch(thread, patch, base)) { in CheckIsModuleMismatch()
560 base = baseModule->GetStarExportEntries(); in CheckIsModuleMismatch()
561 if (CheckStarExportEntriesMismatch(thread, patch, base)) { in CheckIsModuleMismatch()
568 …ickFixLoader::CheckImportEntriesMismatch(JSThread *thread, JSTaggedValue patch, JSTaggedValue base) in CheckImportEntriesMismatch() argument
570 if (patch.IsTaggedArray() && base.IsTaggedArray()) { in CheckImportEntriesMismatch()
572 auto baseArr = TaggedArray::Cast(base); in CheckImportEntriesMismatch()
585 } else if (!patch.IsUndefined() || !base.IsUndefined()) { in CheckImportEntriesMismatch()
593 …xLoader::CheckLocalExportEntriesMismatch(JSThread *thread, JSTaggedValue patch, JSTaggedValue base) in CheckLocalExportEntriesMismatch() argument
595 if (patch.IsTaggedArray() && base.IsTaggedArray()) { in CheckLocalExportEntriesMismatch()
597 auto baseArr = TaggedArray::Cast(base); in CheckLocalExportEntriesMismatch()
610 } else if (patch.IsLocalExportEntry() && base.IsLocalExportEntry()) { in CheckLocalExportEntriesMismatch()
612 auto baseEntry = LocalExportEntry::Cast(base); in CheckLocalExportEntriesMismatch()
616 } else if (!patch.IsUndefined() || !base.IsUndefined()) { in CheckLocalExportEntriesMismatch()
624 …ader::CheckIndirectExportEntriesMismatch(JSThread *thread, JSTaggedValue patch, JSTaggedValue base) in CheckIndirectExportEntriesMismatch() argument
626 if (patch.IsTaggedArray() && base.IsTaggedArray()) { in CheckIndirectExportEntriesMismatch()
628 auto baseArr = TaggedArray::Cast(base); in CheckIndirectExportEntriesMismatch()
641 } else if (patch.IsIndirectExportEntry() && base.IsIndirectExportEntry()) { in CheckIndirectExportEntriesMismatch()
643 auto baseEntry = IndirectExportEntry::Cast(base); in CheckIndirectExportEntriesMismatch()
647 } else if (!patch.IsUndefined() || !base.IsUndefined()) { in CheckIndirectExportEntriesMismatch()
655 …ixLoader::CheckStarExportEntriesMismatch(JSThread *thread, JSTaggedValue patch, JSTaggedValue base) in CheckStarExportEntriesMismatch() argument
657 if (patch.IsTaggedArray() && base.IsTaggedArray()) { in CheckStarExportEntriesMismatch()
659 auto baseArr = TaggedArray::Cast(base); in CheckStarExportEntriesMismatch()
672 } else if (patch.IsStarExportEntry() && base.IsStarExportEntry()) { in CheckStarExportEntriesMismatch()
674 auto baseEntry = StarExportEntry::Cast(base); in CheckStarExportEntriesMismatch()
678 } else if (!patch.IsUndefined() || !base.IsUndefined()) { in CheckStarExportEntriesMismatch()
686 bool QuickFixLoader::CheckImportEntryMismatch(ImportEntry *patch, ImportEntry *base) in CheckImportEntryMismatch() argument
689 auto baseModuleRequest = EcmaString::Cast(base->GetModuleRequest()); in CheckImportEntryMismatch()
691 auto baseImportName = EcmaString::Cast(base->GetImportName()); in CheckImportEntryMismatch()
693 auto baseLocalName = EcmaString::Cast(base->GetLocalName()); in CheckImportEntryMismatch()
719 bool QuickFixLoader::CheckLocalExportEntryMismatch(LocalExportEntry *patch, LocalExportEntry *base) in CheckLocalExportEntryMismatch() argument
722 auto baseExportName = EcmaString::Cast(base->GetExportName()); in CheckLocalExportEntryMismatch()
724 auto baseLocalName = EcmaString::Cast(base->GetLocalName()); in CheckLocalExportEntryMismatch()
743 …kFixLoader::CheckIndirectExportEntryMismatch(IndirectExportEntry *patch, IndirectExportEntry *base) in CheckIndirectExportEntryMismatch() argument
746 auto baseExportName = EcmaString::Cast(base->GetExportName()); in CheckIndirectExportEntryMismatch()
748 auto baseModuleRequest = EcmaString::Cast(base->GetModuleRequest()); in CheckIndirectExportEntryMismatch()
750 auto baseImportName = EcmaString::Cast(base->GetImportName()); in CheckIndirectExportEntryMismatch()
776 bool QuickFixLoader::CheckStarExportEntryMismatch(StarExportEntry *patch, StarExportEntry *base) in CheckStarExportEntryMismatch() argument
779 auto baseModuleRequest = EcmaString::Cast(base->GetModuleRequest()); in CheckStarExportEntryMismatch()