Lines Matching refs:main_jni_conv

181   std::unique_ptr<JniCallingConvention> main_jni_conv =  in ArtJniCompileMethodInternal()  local
188 bool reference_return = main_jni_conv->IsReturnAReference(); in ArtJniCompileMethodInternal()
229 const size_t frame_size(main_jni_conv->FrameSize()); // Excludes outgoing args. in ArtJniCompileMethodInternal()
230 ArrayRef<const ManagedRegister> callee_save_regs = main_jni_conv->CalleeSaveRegisters(); in ArtJniCompileMethodInternal()
240 main_jni_conv->ResetIterator(FrameOffset(0)); in ArtJniCompileMethodInternal()
241 __ StoreImmediateToFrame(main_jni_conv->HandleScopeNumRefsOffset(), in ArtJniCompileMethodInternal()
242 main_jni_conv->ReferenceCount(), in ArtJniCompileMethodInternal()
245 __ CopyRawPtrFromThread(main_jni_conv->HandleScopeLinkOffset(), in ArtJniCompileMethodInternal()
249 main_jni_conv->HandleScopeOffset(), in ArtJniCompileMethodInternal()
253 main_jni_conv->Next(); // Skip JNIEnv* in ArtJniCompileMethodInternal()
256 FrameOffset handle_scope_offset = main_jni_conv->CurrentParamHandleScopeEntryOffset(); in ArtJniCompileMethodInternal()
263 __ LoadRef(main_jni_conv->InterproceduralScratchRegister(), in ArtJniCompileMethodInternal()
265 __ VerifyObject(main_jni_conv->InterproceduralScratchRegister(), false); in ArtJniCompileMethodInternal()
267 __ StoreRef(handle_scope_offset, main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
268 main_jni_conv->Next(); // in handle scope so move to next argument in ArtJniCompileMethodInternal()
272 CHECK(main_jni_conv->HasNext()); in ArtJniCompileMethodInternal()
273 bool ref_param = main_jni_conv->IsCurrentParamAReference(); in ArtJniCompileMethodInternal()
279 FrameOffset handle_scope_offset = main_jni_conv->CurrentParamHandleScopeEntryOffset(); in ArtJniCompileMethodInternal()
283 main_jni_conv->SavedLocalReferenceCookieOffset().Uint32Value()); in ArtJniCompileMethodInternal()
300 main_jni_conv->Next(); in ArtJniCompileMethodInternal()
313 const size_t main_out_arg_size = main_jni_conv->OutArgSize(); in ArtJniCompileMethodInternal()
330 __ LoadFromThread(main_jni_conv->InterproceduralScratchRegister(), in ArtJniCompileMethodInternal()
336 main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
346 main_jni_conv->ResetIterator(FrameOffset(main_out_arg_size)); in ArtJniCompileMethodInternal()
347 main_jni_conv->Next(); // Skip JNIEnv. in ArtJniCompileMethodInternal()
348 FrameOffset class_handle_scope_offset = main_jni_conv->CurrentParamHandleScopeEntryOffset(); in ArtJniCompileMethodInternal()
349 main_jni_conv->ResetIterator(FrameOffset(main_out_arg_size)); in ArtJniCompileMethodInternal()
351 if (main_jni_conv->IsCurrentParamOnStack()) { in ArtJniCompileMethodInternal()
352 FrameOffset out_off = main_jni_conv->CurrentParamStackOffset(); in ArtJniCompileMethodInternal()
357 ManagedRegister out_reg = main_jni_conv->CurrentParamRegister(); in ArtJniCompileMethodInternal()
361 main_jni_conv->Next(); in ArtJniCompileMethodInternal()
363 if (main_jni_conv->IsCurrentParamInRegister()) { in ArtJniCompileMethodInternal()
364 __ GetCurrentThread(main_jni_conv->CurrentParamRegister()); in ArtJniCompileMethodInternal()
365 __ Call(main_jni_conv->CurrentParamRegister(), in ArtJniCompileMethodInternal()
367 main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
369 __ GetCurrentThread(main_jni_conv->CurrentParamStackOffset(), in ArtJniCompileMethodInternal()
370 main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
371 __ CallFromThread(read_barrier, main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
373 main_jni_conv->ResetIterator(FrameOffset(main_out_arg_size)); // Reset. in ArtJniCompileMethodInternal()
392 main_jni_conv->ResetIterator(FrameOffset(main_out_arg_size)); in ArtJniCompileMethodInternal()
396 main_jni_conv->Next(); // Skip JNIEnv. in ArtJniCompileMethodInternal()
397 locked_object_handle_scope_offset = main_jni_conv->CurrentParamHandleScopeEntryOffset(); in ArtJniCompileMethodInternal()
398 main_jni_conv->ResetIterator(FrameOffset(main_out_arg_size)); in ArtJniCompileMethodInternal()
399 if (main_jni_conv->IsCurrentParamOnStack()) { in ArtJniCompileMethodInternal()
400 FrameOffset out_off = main_jni_conv->CurrentParamStackOffset(); in ArtJniCompileMethodInternal()
404 ManagedRegister out_reg = main_jni_conv->CurrentParamRegister(); in ArtJniCompileMethodInternal()
408 main_jni_conv->Next(); in ArtJniCompileMethodInternal()
410 if (main_jni_conv->IsCurrentParamInRegister()) { in ArtJniCompileMethodInternal()
411 __ GetCurrentThread(main_jni_conv->CurrentParamRegister()); in ArtJniCompileMethodInternal()
412 __ Call(main_jni_conv->CurrentParamRegister(), in ArtJniCompileMethodInternal()
414 main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
416 __ GetCurrentThread(main_jni_conv->CurrentParamStackOffset(), in ArtJniCompileMethodInternal()
417 main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
418 __ CallFromThread(jni_start, main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
421 __ ExceptionPoll(main_jni_conv->InterproceduralScratchRegister(), main_out_arg_size); in ArtJniCompileMethodInternal()
429 saved_cookie_offset = main_jni_conv->SavedLocalReferenceCookieOffset(); in ArtJniCompileMethodInternal()
430 __ Store(saved_cookie_offset, main_jni_conv->IntReturnRegister(), 4 /* sizeof cookie */); in ArtJniCompileMethodInternal()
451 main_jni_conv->ResetIterator(FrameOffset(main_out_arg_size)); in ArtJniCompileMethodInternal()
455 main_jni_conv->Next(); // Skip JNIEnv*. in ArtJniCompileMethodInternal()
457 main_jni_conv->Next(); // Skip Class for now. in ArtJniCompileMethodInternal()
463 main_jni_conv->Next(); in ArtJniCompileMethodInternal()
465 CopyParameter(jni_asm.get(), mr_conv.get(), main_jni_conv.get(), frame_size, main_out_arg_size); in ArtJniCompileMethodInternal()
470 main_jni_conv->ResetIterator(FrameOffset(main_out_arg_size)); in ArtJniCompileMethodInternal()
471 main_jni_conv->Next(); // Skip JNIEnv* in ArtJniCompileMethodInternal()
472 FrameOffset handle_scope_offset = main_jni_conv->CurrentParamHandleScopeEntryOffset(); in ArtJniCompileMethodInternal()
473 if (main_jni_conv->IsCurrentParamOnStack()) { in ArtJniCompileMethodInternal()
474 FrameOffset out_off = main_jni_conv->CurrentParamStackOffset(); in ArtJniCompileMethodInternal()
479 ManagedRegister out_reg = main_jni_conv->CurrentParamRegister(); in ArtJniCompileMethodInternal()
486 main_jni_conv->ResetIterator(FrameOffset(main_out_arg_size)); in ArtJniCompileMethodInternal()
490 if (main_jni_conv->IsCurrentParamInRegister()) { in ArtJniCompileMethodInternal()
491 ManagedRegister jni_env = main_jni_conv->CurrentParamRegister(); in ArtJniCompileMethodInternal()
492 DCHECK(!jni_env.Equals(main_jni_conv->InterproceduralScratchRegister())); in ArtJniCompileMethodInternal()
495 FrameOffset jni_env = main_jni_conv->CurrentParamStackOffset(); in ArtJniCompileMethodInternal()
498 main_jni_conv->InterproceduralScratchRegister()); in ArtJniCompileMethodInternal()
506 __ Call(main_jni_conv->MethodStackOffset(), in ArtJniCompileMethodInternal()
512 if (main_jni_conv->RequiresSmallResultTypeExtension()) { in ArtJniCompileMethodInternal()
513 if (main_jni_conv->GetReturnType() == Primitive::kPrimByte || in ArtJniCompileMethodInternal()
514 main_jni_conv->GetReturnType() == Primitive::kPrimShort) { in ArtJniCompileMethodInternal()
515 __ SignExtend(main_jni_conv->ReturnRegister(), in ArtJniCompileMethodInternal()
516 Primitive::ComponentSize(main_jni_conv->GetReturnType())); in ArtJniCompileMethodInternal()
517 } else if (main_jni_conv->GetReturnType() == Primitive::kPrimBoolean || in ArtJniCompileMethodInternal()
518 main_jni_conv->GetReturnType() == Primitive::kPrimChar) { in ArtJniCompileMethodInternal()
519 __ ZeroExtend(main_jni_conv->ReturnRegister(), in ArtJniCompileMethodInternal()
520 Primitive::ComponentSize(main_jni_conv->GetReturnType())); in ArtJniCompileMethodInternal()
525 FrameOffset return_save_location = main_jni_conv->ReturnValueSaveLocation(); in ArtJniCompileMethodInternal()
526 if (main_jni_conv->SizeOfReturnValue() != 0 && !reference_return) { in ArtJniCompileMethodInternal()
532 main_jni_conv->GetReturnType() == Primitive::kPrimDouble && in ArtJniCompileMethodInternal()
542 main_jni_conv->ReturnRegister(), in ArtJniCompileMethodInternal()
543 main_jni_conv->SizeOfReturnValue()); in ArtJniCompileMethodInternal()
547 ManagedRegister jni_return_reg = main_jni_conv->ReturnRegister(); in ArtJniCompileMethodInternal()
557 __ Move(mr_return_reg, jni_return_reg, main_jni_conv->SizeOfReturnValue()); in ArtJniCompileMethodInternal()
561 CHECK_EQ(main_jni_conv->SizeOfReturnValue(), mr_conv->SizeOfReturnValue()); in ArtJniCompileMethodInternal()
629 if (main_jni_conv->SizeOfReturnValue() != 0 && !reference_return) { in ArtJniCompileMethodInternal()
641 __ ExceptionPoll(main_jni_conv->InterproceduralScratchRegister(), 0 /* stack_adjust */); in ArtJniCompileMethodInternal()
662 main_jni_conv->CoreSpillMask(), in ArtJniCompileMethodInternal()
663 main_jni_conv->FpSpillMask(), in ArtJniCompileMethodInternal()