Lines Matching defs:orig

2022 void ImageWriter::CopyAndFixupImTable(ImTable* orig, ImTable* copy) {
2024 ArtMethod* method = orig->Get(i, target_ptr_size_);
2031 void ImageWriter::CopyAndFixupImtConflictTable(ImtConflictTable* orig, ImtConflictTable* copy) {
2032 const size_t count = orig->NumEntries(target_ptr_size_);
2034 ArtMethod* interface_method = orig->GetInterfaceMethod(i, target_ptr_size_);
2035 ArtMethod* implementation_method = orig->GetImplementationMethod(i, target_ptr_size_);
2354 void ImageWriter::FixupClass(mirror::Class* orig, mirror::Class* copy) {
2355 orig->FixupNativePointers(copy, target_ptr_size_, NativeLocationVisitor(this));
2357 ObjPtr<mirror::Object>(orig)->VisitReferences(visitor, visitor);
2384 void ImageWriter::FixupObject(Object* orig, Object* copy) {
2385 DCHECK(orig != nullptr);
2388 orig->AssertReadBarrierState();
2390 auto* klass = orig->GetClass();
2393 auto it = pointer_arrays_.find(down_cast<mirror::PointerArray*>(orig));
2396 FixupPointerArray(copy, down_cast<mirror::PointerArray*>(orig), klass, it->second);
2401 if (orig->IsClass()) {
2402 FixupClass(orig->AsClass<kVerifyNone>(), down_cast<mirror::Class*>(copy));
2407 auto* src = down_cast<mirror::Executable*>(orig);
2413 FixupDexCache(down_cast<mirror::DexCache*>(orig), down_cast<mirror::DexCache*>(copy));
2426 orig->VisitReferences(visitor, visitor);
2488 mirror::FieldDexCachePair orig =
2490 mirror::FieldDexCachePair copy = orig;
2491 copy.object = NativeLocationInImage(orig.object);
2602 void ImageWriter::CopyAndFixupMethod(ArtMethod* orig,
2605 if (orig->IsAbstract()) {
2607 // Do this on orig instead of copy, otherwise there is a crash due to methods
2610 orig->SetHasSingleImplementation(false);
2611 orig->SetSingleImplementation(
2615 memcpy(copy, orig, ArtMethod::Size(target_ptr_size_));
2617 CopyReference(copy->GetDeclaringClassAddressWithoutBarrier(), orig->GetDeclaringClassUnchecked());
2624 if (orig->IsRuntimeMethod()) {
2625 ImtConflictTable* orig_table = orig->GetImtConflictTable(target_ptr_size_);
2631 } else if (UNLIKELY(orig == runtime->GetResolutionMethod())) {
2638 if (runtime->HasCalleeSaveMethod(idx) && runtime->GetCalleeSaveMethod(idx) == orig) {
2643 CHECK(found_one) << "Expected to find callee save method but got " << orig->PrettyMethod();
2650 if (UNLIKELY(!orig->IsInvokable())) {
2655 const uint8_t* quick_code = GetQuickCode(orig, image_info, &quick_is_interpreted);
2659 if (orig->IsNative()) {