Lines Matching refs:Emit
117 static inline void emit_ldarg( Emit::ILGenerator * code, ::System::Int32 index ) in emit_ldarg()
122 code->Emit( Emit::OpCodes::Ldarg_0 ); in emit_ldarg()
125 code->Emit( Emit::OpCodes::Ldarg_1 ); in emit_ldarg()
128 code->Emit( Emit::OpCodes::Ldarg_2 ); in emit_ldarg()
131 code->Emit( Emit::OpCodes::Ldarg_3 ); in emit_ldarg()
135 code->Emit( Emit::OpCodes::Ldarg_S, (::System::Byte) index ); in emit_ldarg()
137 code->Emit( Emit::OpCodes::Ldarg_S, (::System::Int16) index ); in emit_ldarg()
139 code->Emit( Emit::OpCodes::Ldarg, index ); in emit_ldarg()
389 Emit::TypeBuilder * type_builder = in get_type_Exception()
396 Emit::FieldBuilder * field_Context = type_builder->DefineField( in get_type_Exception()
406 Emit::ConstructorBuilder * ctor_builder = in get_type_Exception()
414 Emit::ILGenerator * code = ctor_builder->GetILGenerator(); in get_type_Exception()
415 code->Emit( Emit::OpCodes::Ldarg_0 ); in get_type_Exception()
416 code->Emit( Emit::OpCodes::Ldarg_1 ); in get_type_Exception()
419 code->Emit( in get_type_Exception()
420 Emit::OpCodes::Call, in get_type_Exception()
423 code->Emit( Emit::OpCodes::Ldarg_0 ); in get_type_Exception()
424 code->Emit( Emit::OpCodes::Ldarg_2 ); in get_type_Exception()
425 code->Emit( Emit::OpCodes::Stfld, field_Context ); in get_type_Exception()
426 code->Emit( Emit::OpCodes::Ret ); in get_type_Exception()
451 Emit::TypeBuilder * type_builder = in get_type_RuntimeException()
465 Emit::ConstructorBuilder * ctor_builder = in get_type_RuntimeException()
473 Emit::ILGenerator * code = ctor_builder->GetILGenerator(); in get_type_RuntimeException()
474 code->Emit( Emit::OpCodes::Ldarg_0 ); in get_type_RuntimeException()
475 code->Emit( Emit::OpCodes::Ldarg_1 ); in get_type_RuntimeException()
476 code->Emit( Emit::OpCodes::Ldarg_2 ); in get_type_RuntimeException()
477 code->Emit( in get_type_RuntimeException()
478 Emit::OpCodes::Call, in get_type_RuntimeException()
480 code->Emit( Emit::OpCodes::Ret ); in get_type_RuntimeException()
506 Emit::TypeBuilder * type_builder = in get_type()
514 Emit::FieldBuilder * field_builder = type_builder->DefineField( in get_type()
540 Emit::TypeBuilder * type_builder = in get_type()
564 Emit::FieldBuilder * field_builder = type_builder->DefineField( in get_type()
599 Emit::TypeBuilder * enum_builder = in get_type()
621 Emit::FieldBuilder * field_builder = in get_type()
675 Emit::TypeBuilder * type_builder = in get_type()
734 Emit::TypeBuilder * type_builder; in get_type()
809 Emit::TypeBuilder * type_builder = m_module_builder->DefineType( in get_type()
839 Emit::TypeBuilder * type_builder = m_module_builder->DefineType( in get_type()
856 Emit::TypeBuilder * type_builder = entry->m_type_builder; in complete_iface_type()
896 Emit::MethodBuilder * method_builder; in complete_iface_type()
992 Emit::CustomAttributeBuilder * attrBuilder = in complete_iface_type()
993 new Emit::CustomAttributeBuilder( in complete_iface_type()
1003 Emit::CustomAttributeBuilder* attrBuilder = in complete_iface_type()
1013 Emit::CustomAttributeBuilder * attrBuilder = in complete_iface_type()
1014 new Emit::CustomAttributeBuilder( in complete_iface_type()
1035 Emit::PropertyBuilder * property_builder = in complete_iface_type()
1047 Emit::CustomAttributeBuilder * attrBuilderBound = in complete_iface_type()
1048 new Emit::CustomAttributeBuilder( in complete_iface_type()
1054 Emit::MethodBuilder * method_builder = in complete_iface_type()
1061 Emit::CustomAttributeBuilder* attrBuilder = in complete_iface_type()
1082 Emit::CustomAttributeBuilder* attrBuilder = in complete_iface_type()
1130 Emit::CustomAttributeBuilder * attrBuilder = in complete_struct_type()
1131 new Emit::CustomAttributeBuilder( in complete_struct_type()
1266 Emit::FieldBuilder * members[] = new Emit::FieldBuilder * [ members_length ]; in complete_struct_type()
1315 Emit::CustomAttributeBuilder * attrBuilder = in complete_struct_type()
1316 new Emit::CustomAttributeBuilder( in complete_struct_type()
1333 Emit::ConstructorBuilder * ctor_builder = in complete_struct_type()
1337 Emit::ILGenerator * code = ctor_builder->GetILGenerator(); in complete_struct_type()
1338 code->Emit( Emit::OpCodes::Ldarg_0 ); in complete_struct_type()
1339 code->Emit( in complete_struct_type()
1340 Emit::OpCodes::Call, in complete_struct_type()
1354 code->Emit( Emit::OpCodes::Ldarg_0 ); in complete_struct_type()
1355 code->Emit( Emit::OpCodes::Ldstr, S"" ); in complete_struct_type()
1356 code->Emit( Emit::OpCodes::Stfld, field ); in complete_struct_type()
1360 code->Emit( Emit::OpCodes::Ldarg_0 ); in complete_struct_type()
1361 code->Emit( in complete_struct_type()
1362 Emit::OpCodes::Ldtoken, __typeof (::System::Void) ); in complete_struct_type()
1363 code->Emit( in complete_struct_type()
1364 Emit::OpCodes::Call, m_method_info_Type_GetTypeFromHandle ); in complete_struct_type()
1365 code->Emit( Emit::OpCodes::Stfld, field ); in complete_struct_type()
1375 code->Emit( Emit::OpCodes::Ldarg_0 ); in complete_struct_type()
1376 code->Emit( Emit::OpCodes::Ldc_I4_0 ); in complete_struct_type()
1377 code->Emit( in complete_struct_type()
1378 Emit::OpCodes::Newarr, field_type->GetElementType() ); in complete_struct_type()
1379 code->Emit( Emit::OpCodes::Stfld, field ); in complete_struct_type()
1385 code->Emit( Emit::OpCodes::Ldarg_0 ); in complete_struct_type()
1386 code->Emit( Emit::OpCodes::Ldsfld, __typeof(::uno::Any)->GetField(S"VOID")); in complete_struct_type()
1387 code->Emit( Emit::OpCodes::Stfld, field ); in complete_struct_type()
1398 code->Emit( Emit::OpCodes::Ldarg_0 ); in complete_struct_type()
1399 code->Emit( in complete_struct_type()
1400 Emit::OpCodes::Newobj, in complete_struct_type()
1404 code->Emit( Emit::OpCodes::Stfld, field ); in complete_struct_type()
1408 code->Emit( Emit::OpCodes::Ret ); in complete_struct_type()
1422 code->Emit( Emit::OpCodes::Ldarg_0 ); // push this in complete_struct_type()
1431 code->Emit( in complete_struct_type()
1432 Emit::OpCodes::Call, in complete_struct_type()
1439 code->Emit( Emit::OpCodes::Ldarg_0 ); // push this in complete_struct_type()
1441 code->Emit( Emit::OpCodes::Stfld, members[ member_pos ] ); in complete_struct_type()
1443 code->Emit( Emit::OpCodes::Ret ); in complete_struct_type()
1502 Emit::TypeBuilder * type_builder = entry->m_type_builder; in complete_service_type()
1506 Emit::ConstructorBuilder* ctor_builder = in complete_service_type()
1514 Emit::ILGenerator* ilGen = ctor_builder->GetILGenerator(); in complete_service_type()
1515 ilGen->Emit( Emit::OpCodes::Ldarg_0 ); // push this in complete_service_type()
1516 ilGen->Emit( in complete_service_type()
1517 Emit::OpCodes::Call, in complete_service_type()
1519 ilGen->Emit( Emit::OpCodes::Ret ); in complete_service_type()
1588 Emit::MethodBuilder* method_builder = type_builder->DefineMethod( in complete_service_type()
1597 Emit::CustomAttributeBuilder* attrBuilder = get_service_exception_attribute(ctorDes); in complete_service_type()
1609 Emit::ParameterBuilder * arParameterBuilder[] = in complete_service_type()
1610 new Emit::ParameterBuilder * [cParams]; in complete_service_type()
1626 Emit::CustomAttributeBuilder * attr_builder = in complete_service_type()
1627 new Emit::CustomAttributeBuilder(ctor_info, new ::System::Object*[0]); in complete_service_type()
1633 Emit::ILGenerator * ilGen = method_builder->GetILGenerator(); in complete_service_type()
1637 Emit::LocalBuilder* local_factory = in complete_service_type()
1642 Emit::LocalBuilder* local_return_val = 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()
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()
1711 Emit::LocalBuilder * arLocalAny[] = new Emit::LocalBuilder* [cParams]; in complete_service_type()
1720 Emit::LocalBuilder * local_anyParams = 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()
1839 ilGen->Emit(Emit::OpCodes::Pop); in complete_service_type()
1840 ilGen->Emit(Emit::OpCodes::Rethrow); in complete_service_type()
1855 ilGen->Emit(Emit::OpCodes::Pop); in complete_service_type()
1856 ilGen->Emit(Emit::OpCodes::Rethrow); 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()
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()
1908 ilGen->Emit(Emit::OpCodes::Ldloc, local_return_val); in complete_service_type()
1909 ilGen->Emit(Emit::OpCodes::Ret); in complete_service_type()
1925 Emit::CustomAttributeBuilder* TypeEmitter::get_service_exception_attribute( in get_service_exception_attribute()
1931 Emit::CustomAttributeBuilder* TypeEmitter::get_iface_method_exception_attribute( in get_iface_method_exception_attribute()
1944 Emit::CustomAttributeBuilder* TypeEmitter::get_exception_attribute( in get_exception_attribute()
1948 Emit::CustomAttributeBuilder * attr_builder = NULL; in get_exception_attribute()
1969 attr_builder = new Emit::CustomAttributeBuilder( in get_exception_attribute()
1978 Emit::TypeBuilder * type_builder = entry->m_type_builder; in complete_singleton_type()
1983 Emit::ConstructorBuilder* ctor_builder = in complete_singleton_type()
1991 Emit::ILGenerator* ilGen = ctor_builder->GetILGenerator(); in complete_singleton_type()
1992 ilGen->Emit( Emit::OpCodes::Ldarg_0 ); // push this in complete_singleton_type()
1993 ilGen->Emit( in complete_singleton_type()
1994 Emit::OpCodes::Call, in complete_singleton_type()
1996 ilGen->Emit( Emit::OpCodes::Ret ); in complete_singleton_type()
2009 Emit::MethodBuilder* method_builder = type_builder->DefineMethod( in complete_singleton_type()
2028 Emit::LocalBuilder* local_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()
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()
2241 ::System::Reflection::Emit::ModuleBuilder * module_builder, in TypeEmitter()