Lines Matching refs:orig
2785 void ImageWriter::CopyAndFixupImTable(ImTable* orig, ImTable* copy) {
2787 ArtMethod* method = orig->Get(i, target_ptr_size_);
2794 void ImageWriter::CopyAndFixupImtConflictTable(ImtConflictTable* orig, ImtConflictTable* copy) {
2795 const size_t count = orig->NumEntries(target_ptr_size_);
2797 ArtMethod* interface_method = orig->GetInterfaceMethod(i, target_ptr_size_);
2798 ArtMethod* implementation_method = orig->GetImplementationMethod(i, target_ptr_size_);
3144 void ImageWriter::FixupClass(mirror::Class* orig, mirror::Class* copy) {
3145 orig->FixupNativePointers(copy, target_ptr_size_, NativeLocationVisitor(this));
3147 ObjPtr<mirror::Object>(orig)->VisitReferences(visitor, visitor);
3174 void ImageWriter::FixupObject(Object* orig, Object* copy) {
3175 DCHECK(orig != nullptr);
3178 orig->AssertReadBarrierState();
3180 if (orig->IsIntArray() || orig->IsLongArray()) {
3182 auto it = pointer_arrays_.find(down_cast<mirror::PointerArray*>(orig));
3185 FixupPointerArray(copy, down_cast<mirror::PointerArray*>(orig), it->second);
3190 if (orig->IsClass()) {
3191 FixupClass(orig->AsClass<kVerifyNone>().Ptr(), down_cast<mirror::Class*>(copy));
3195 ObjPtr<mirror::Class> klass = orig->GetClass();
3200 auto* src = down_cast<mirror::Executable*>(orig);
3204 FixupDexCache(down_cast<mirror::DexCache*>(orig), down_cast<mirror::DexCache*>(copy));
3216 orig->VisitReferences(visitor, visitor);
3408 void ImageWriter::CopyAndFixupMethod(ArtMethod* orig,
3411 if (orig->IsAbstract()) {
3413 // Do this on orig instead of copy, otherwise there is a crash due to methods
3416 orig->SetHasSingleImplementation(false);
3417 orig->SetSingleImplementation(
3421 memcpy(copy, orig, ArtMethod::Size(target_ptr_size_));
3424 copy->GetDeclaringClassAddressWithoutBarrier(), orig->GetDeclaringClassUnchecked());
3432 if (orig->IsRuntimeMethod()) {
3433 ImtConflictTable* orig_table = orig->GetImtConflictTable(target_ptr_size_);
3438 } else if (UNLIKELY(orig == runtime->GetResolutionMethod())) {
3444 if (runtime->HasCalleeSaveMethod(idx) && runtime->GetCalleeSaveMethod(idx) == orig) {
3449 CHECK(found_one) << "Expected to find callee save method but got " << orig->PrettyMethod();
3458 if (UNLIKELY(!orig->IsInvokable())) {
3463 quick_code = GetQuickCode(orig, image_info, &quick_is_interpreted);
3466 if (orig->IsNative()) {