Lines Matching refs:ilGen
1514 Emit::ILGenerator* ilGen = ctor_builder->GetILGenerator(); in complete_service_type() local
1515 ilGen->Emit( Emit::OpCodes::Ldarg_0 ); // push this in complete_service_type()
1516 ilGen->Emit( in complete_service_type()
1519 ilGen->Emit( Emit::OpCodes::Ret ); in complete_service_type()
1633 Emit::ILGenerator * ilGen = method_builder->GetILGenerator(); in complete_service_type() local
1638 ilGen->DeclareLocal( in complete_service_type()
1643 ilGen->DeclareLocal(retType); in complete_service_type()
1646 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_service_type()
1651 ilGen->Emit(Emit::OpCodes::Callvirt, methodGetServiceManager); in complete_service_type()
1652 ilGen->Emit(Emit::OpCodes::Stloc, local_factory); in complete_service_type()
1653 ilGen->Emit(Emit::OpCodes::Ldloc, local_factory); in complete_service_type()
1654 Emit::Label label1 = ilGen->DefineLabel(); in complete_service_type()
1655 ilGen->Emit(Emit::OpCodes::Brtrue, label1); in complete_service_type()
1662 ilGen->Emit(Emit::OpCodes::Ldstr, strbuilder->ToString()); in complete_service_type()
1663 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_service_type()
1664 ilGen->Emit(Emit::OpCodes::Newobj, ctorDeploymentException); in complete_service_type()
1665 ilGen->Emit(Emit::OpCodes::Throw); in complete_service_type()
1666 ilGen->MarkLabel(label1); in complete_service_type()
1683 ilGen->BeginExceptionBlock(); in complete_service_type()
1687 ilGen->Emit(Emit::OpCodes::Ldloc, local_factory); in complete_service_type()
1688 ilGen->Emit(Emit::OpCodes::Ldstr, ustring_to_String(xServiceType->getName())); in complete_service_type()
1689 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_service_type()
1693 ilGen->Emit(Emit::OpCodes::Callvirt, methodCreate); in complete_service_type()
1698 ilGen->Emit(Emit::OpCodes::Ldloc, local_factory); in complete_service_type()
1699 ilGen->Emit(Emit::OpCodes::Ldstr, ustring_to_String(xServiceType->getName())); in complete_service_type()
1700 ilGen->Emit(Emit::OpCodes::Ldarg_1); in complete_service_type()
1701 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_service_type()
1704 ilGen->Emit(Emit::OpCodes::Callvirt, methodCreate); in complete_service_type()
1715 arLocalAny[iParam] = ilGen->DeclareLocal(typeAny); in complete_service_type()
1721 ilGen->DeclareLocal(__typeof(::uno::Any[])); in complete_service_type()
1744 ilGen->Emit(Emit::OpCodes::Ldloca, arLocalAny[i]); in complete_service_type()
1747 ilGen->Emit(Emit::OpCodes::Ldtoken, polyType->get_OriginalType()); in complete_service_type()
1749 ilGen->Emit(Emit::OpCodes::Call, in complete_service_type()
1753 ilGen->Emit(Emit::OpCodes::Ldstr, polyType->get_PolymorphicName()); in complete_service_type()
1757 ilGen->Emit(Emit::OpCodes::Call, in complete_service_type()
1764 ilGen->Emit(Emit::OpCodes::Ldarg, i + 1); in complete_service_type()
1768 ilGen->Emit(Emit::OpCodes::Box, arTypeParameters[i+1]); in complete_service_type()
1769 ilGen->Emit(Emit::OpCodes::Call, ctorAny); in complete_service_type()
1776 ilGen->Emit(Emit::OpCodes::Ldloca, arLocalAny[i]); in complete_service_type()
1778 ilGen->Emit(Emit::OpCodes::Ldarga, i + 1); in complete_service_type()
1779 ilGen->Emit(Emit::OpCodes::Call, methodAnyGetType); in complete_service_type()
1781 ilGen->Emit(Emit::OpCodes::Ldarga, i + 1); in complete_service_type()
1782 ilGen->Emit(Emit::OpCodes::Call, methodAnyGetValue); in complete_service_type()
1784 ilGen->Emit(Emit::OpCodes::Call, ctorAny); in complete_service_type()
1788 ilGen->Emit(Emit::OpCodes::Ldloca, arLocalAny[i]); in complete_service_type()
1789 ilGen->Emit(Emit::OpCodes::Ldtoken, arTypeParameters[i+1]); in complete_service_type()
1792 ilGen->Emit(Emit::OpCodes::Call, in complete_service_type()
1795 ilGen->Emit(Emit::OpCodes::Ldarg, i + 1); in complete_service_type()
1799 ilGen->Emit(Emit::OpCodes::Box, arTypeParameters[i+1]); in complete_service_type()
1800 ilGen->Emit(Emit::OpCodes::Call, ctorAny); in complete_service_type()
1806 ilGen->Emit(Emit::OpCodes::Ldc_I4, arLocalAny->Length); in complete_service_type()
1807 ilGen->Emit(Emit::OpCodes::Newarr, typeAny); in complete_service_type()
1808 ilGen->Emit(Emit::OpCodes::Stloc, local_anyParams); in complete_service_type()
1814 ilGen->Emit(Emit::OpCodes::Ldloc, local_anyParams); in complete_service_type()
1815 ilGen->Emit(Emit::OpCodes::Ldc_I4, i); in complete_service_type()
1816 ilGen->Emit(Emit::OpCodes::Ldelema, typeAny); in complete_service_type()
1817 ilGen->Emit(Emit::OpCodes::Ldloc, arLocalAny[i]); in complete_service_type()
1818 ilGen->Emit(Emit::OpCodes::Stobj, typeAny); in complete_service_type()
1821 ilGen->Emit(Emit::OpCodes::Ldloc, local_factory); in complete_service_type()
1822 ilGen->Emit(Emit::OpCodes::Ldstr, ustring_to_String(xServiceType->getName())); in complete_service_type()
1823 ilGen->Emit(Emit::OpCodes::Ldloc, local_anyParams); in complete_service_type()
1824 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_service_type()
1827 ilGen->Emit(Emit::OpCodes::Callvirt, methodCreate); in complete_service_type()
1831 ilGen->Emit(Emit::OpCodes::Castclass, retType); in complete_service_type()
1832 ilGen->Emit(Emit::OpCodes::Stloc, local_return_val); in complete_service_type()
1838 ilGen->BeginCatchBlock(get_type(S"unoidl.com.sun.star.uno.RuntimeException", true)); in complete_service_type()
1839 ilGen->Emit(Emit::OpCodes::Pop); in complete_service_type()
1840 ilGen->Emit(Emit::OpCodes::Rethrow); in complete_service_type()
1854 ilGen->BeginCatchBlock(excType); in complete_service_type()
1855 ilGen->Emit(Emit::OpCodes::Pop); in complete_service_type()
1856 ilGen->Emit(Emit::OpCodes::Rethrow); in complete_service_type()
1859 ilGen->BeginCatchBlock(type_uno_exception); in complete_service_type()
1862 Emit::LocalBuilder * local_exception = ilGen->DeclareLocal( in complete_service_type()
1866 ilGen->Emit(Emit::OpCodes::Stloc, local_exception); in complete_service_type()
1874 ilGen->Emit(Emit::OpCodes::Ldstr, strbuilder->ToString()); in complete_service_type()
1877 ilGen->Emit(Emit::OpCodes::Ldloc, local_exception); in complete_service_type()
1878 ilGen->Emit(Emit::OpCodes::Callvirt, in complete_service_type()
1882 ilGen->Emit(Emit::OpCodes::Call, in complete_service_type()
1885 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_service_type()
1886 ilGen->Emit(Emit::OpCodes::Newobj, ctorDeploymentException); in complete_service_type()
1887 ilGen->Emit(Emit::OpCodes::Throw);//Exception(typeDeploymentExc); in complete_service_type()
1889 ilGen->EndExceptionBlock(); in complete_service_type()
1894 Emit::Label label_service_created = ilGen->DefineLabel(); in complete_service_type()
1895 ilGen->Emit(Emit::OpCodes::Ldloc, local_return_val); in complete_service_type()
1896 ilGen->Emit(Emit::OpCodes::Brtrue_S, label_service_created); in complete_service_type()
1902 ilGen->Emit(Emit::OpCodes::Ldstr, strbuilder->ToString()); in complete_service_type()
1903 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_service_type()
1904 ilGen->Emit(Emit::OpCodes::Newobj, ctorDeploymentException); in complete_service_type()
1905 ilGen->Emit(Emit::OpCodes::Throw);//Exception(typeDeploymentExc); in complete_service_type()
1907 ilGen->MarkLabel(label_service_created); in complete_service_type()
1908 ilGen->Emit(Emit::OpCodes::Ldloc, local_return_val); in complete_service_type()
1909 ilGen->Emit(Emit::OpCodes::Ret); in complete_service_type()
1991 Emit::ILGenerator* ilGen = ctor_builder->GetILGenerator(); in complete_singleton_type() local
1992 ilGen->Emit( Emit::OpCodes::Ldarg_0 ); // push this in complete_singleton_type()
1993 ilGen->Emit( in complete_singleton_type()
1996 ilGen->Emit( Emit::OpCodes::Ret ); in complete_singleton_type()
2025 ilGen = method_builder->GetILGenerator(); in complete_singleton_type()
2029 ilGen->DeclareLocal(__typeof(::uno::Any)); in complete_singleton_type()
2032 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_singleton_type()
2037 ilGen->Emit(Emit::OpCodes::Ldstr, sBuilder->ToString()); in complete_singleton_type()
2041 ilGen->Emit(Emit::OpCodes::Callvirt, methodGetValueByName); in complete_singleton_type()
2042 ilGen->Emit(Emit::OpCodes::Stloc_0); in complete_singleton_type()
2045 ilGen->Emit(Emit::OpCodes::Ldloca_S, local_any); in complete_singleton_type()
2048 ilGen->Emit(Emit::OpCodes::Call, methodHasValue); in complete_singleton_type()
2051 Emit::Label label_singleton_exists = ilGen->DefineLabel(); in complete_singleton_type()
2052 ilGen->Emit(Emit::OpCodes::Brtrue_S, label_singleton_exists); in complete_singleton_type()
2059 ilGen->Emit(Emit::OpCodes::Ldstr, sBuilder->ToString()); in complete_singleton_type()
2060 ilGen->Emit(Emit::OpCodes::Ldarg_0); in complete_singleton_type()
2063 ilGen->Emit(Emit::OpCodes::Newobj, in complete_singleton_type()
2066 ilGen->Emit(Emit::OpCodes::Throw); in complete_singleton_type()
2067 ilGen->MarkLabel(label_singleton_exists); in complete_singleton_type()
2070 ilGen->Emit(Emit::OpCodes::Ldloca_S, local_any); in complete_singleton_type()
2071 ilGen->Emit(Emit::OpCodes::Call, __typeof(::uno::Any)->GetProperty(S"Value")->GetGetMethod()); in complete_singleton_type()
2072 ilGen->Emit(Emit::OpCodes::Castclass, retType); in complete_singleton_type()
2073 ilGen->Emit(Emit::OpCodes::Ret); in complete_singleton_type()