Lines Matching refs:code

480     sal_uInt16 generateCode(ClassFile::Code & code, Dependencies * dependencies)
484 ClassFile::Code & code, Dependencies * dependencies) const;
547 ClassFile::Code & code, Dependencies * dependencies) const in generateCode() argument
552 code.instrNew( in generateCode()
556 code.instrDup(); in generateCode()
557 code.loadStringConstant(m_name); in generateCode()
558 code.loadIntegerConstant(m_index); in generateCode()
559 code.loadIntegerConstant(m_flags); in generateCode()
561 generatePolymorphicUnoTypeCode(code, dependencies); in generateCode()
562 code.loadIntegerConstant(m_typeParameterIndex); in generateCode()
563 code.instrInvokespecial( in generateCode()
573 code.instrAconstNull(); in generateCode()
574 code.loadIntegerConstant(m_typeParameterIndex); in generateCode()
575 code.instrInvokespecial( in generateCode()
585 code.instrInvokespecial( in generateCode()
596 code.instrNew( in generateCode()
600 code.instrDup(); in generateCode()
601 code.loadStringConstant(m_name); in generateCode()
602 code.loadIntegerConstant(m_index); in generateCode()
603 code.loadIntegerConstant(m_flags); in generateCode()
605 generatePolymorphicUnoTypeCode(code, dependencies); in generateCode()
606 code.instrInvokespecial( in generateCode()
616 code.instrInvokespecial( in generateCode()
627 code.instrNew( in generateCode()
631 code.instrDup(); in generateCode()
632 code.loadStringConstant(m_name); in generateCode()
633 code.loadIntegerConstant(m_index); in generateCode()
634 code.loadIntegerConstant(m_flags); in generateCode()
636 generatePolymorphicUnoTypeCode(code, dependencies); in generateCode()
637 code.instrInvokespecial( in generateCode()
647 code.instrInvokespecial( in generateCode()
658 code.instrNew( in generateCode()
662 code.instrDup(); in generateCode()
663 code.loadStringConstant(m_name); in generateCode()
664 code.loadStringConstant(m_methodName); in generateCode()
665 code.loadIntegerConstant(m_index); in generateCode()
666 code.loadIntegerConstant(m_flags); in generateCode()
668 generatePolymorphicUnoTypeCode(code, dependencies); in generateCode()
669 code.instrInvokespecial( in generateCode()
680 code.instrInvokespecial( in generateCode()
698 ClassFile::Code & code, Dependencies * dependencies) const in generatePolymorphicUnoTypeCode() argument
703 code.instrNew( in generatePolymorphicUnoTypeCode()
705 code.instrDup(); in generatePolymorphicUnoTypeCode()
706 code.loadStringConstant(m_polymorphicUnoType.name); in generatePolymorphicUnoTypeCode()
708 code.instrGetstatic( in generatePolymorphicUnoTypeCode()
715 code.instrGetstatic( in generatePolymorphicUnoTypeCode()
724 code.instrInvokespecial( in generatePolymorphicUnoTypeCode()
805 std::auto_ptr< ClassFile::Code > code(classFile->newCode()); in addTypeInfo() local
806 code->loadIntegerConstant(static_cast< sal_Int32 >(typeInfos)); in addTypeInfo()
807 code->instrAnewarray( in addTypeInfo()
816 code->instrDup(); in addTypeInfo()
817 code->loadIntegerConstant(index++); in addTypeInfo()
818 stack = std::max(stack, i->generateCode(*code, dependencies)); in addTypeInfo()
819 code->instrAastore(); in addTypeInfo()
821 code->instrPutstatic( in addTypeInfo()
826 code->instrReturn(); in addTypeInfo()
833 code->setMaxStackAndLocals(static_cast< sal_uInt16 >(stack + 4), 0); in addTypeInfo()
838 rtl::OString(RTL_CONSTASCII_STRINGPARAM("()V")), code.get(), in addTypeInfo()
898 std::auto_ptr< ClassFile::Code > code(cf->newCode()); in handleEnumType() local
899 code->loadLocalReference(0); in handleEnumType()
900 code->loadLocalInteger(1); in handleEnumType()
901 code->instrInvokespecial( in handleEnumType()
905 code->instrReturn(); in handleEnumType()
906 code->setMaxStackAndLocals(2, 2); in handleEnumType()
910 rtl::OString(RTL_CONSTASCII_STRINGPARAM("(I)V")), code.get(), in handleEnumType()
912 code.reset(cf->newCode()); in handleEnumType()
913 code->instrGetstatic( in handleEnumType()
916 code->instrAreturn(); in handleEnumType()
917 code->setMaxStackAndLocals(1, 0); in handleEnumType()
923 code.get(), std::vector< rtl::OString >(), rtl::OString()); in handleEnumType()
924 code.reset(cf->newCode()); in handleEnumType()
925 code->loadLocalInteger(0); in handleEnumType()
964 code->instrTableswitch(defCode.get(), min, blocks); in handleEnumType()
985 code->instrLookupswitch(defCode.get(), blocks); in handleEnumType()
993 code->setMaxStackAndLocals(1, 1); in handleEnumType()
999 code.get(), std::vector< rtl::OString >(), rtl::OString()); in handleEnumType()
1000 code.reset(cf->newCode()); in handleEnumType()
1002 code->instrNew(className); in handleEnumType()
1003 code->instrDup(); in handleEnumType()
1004 code->loadIntegerConstant(reader.getFieldValue(i).m_value.aLong); in handleEnumType()
1005 code->instrInvokespecial( in handleEnumType()
1008 code->instrPutstatic( in handleEnumType()
1013 code->instrReturn(); in handleEnumType()
1014 code->setMaxStackAndLocals(3, 0); in handleEnumType()
1019 rtl::OString(RTL_CONSTASCII_STRINGPARAM("()V")), code.get(), in handleEnumType()
1059 ClassFile::Code * code) in addFieldInit() argument
1061 OSL_ASSERT(dependencies != 0 && code != 0); in addFieldInit()
1075 code->loadLocalReference(0); in addFieldInit()
1076 code->loadStringConstant(rtl::OString()); in addFieldInit()
1077 code->instrPutfield( in addFieldInit()
1084 code->loadLocalReference(0); in addFieldInit()
1085 code->instrGetstatic( in addFieldInit()
1091 code->instrPutfield( in addFieldInit()
1098 code->loadLocalReference(0); in addFieldInit()
1099 code->instrGetstatic( in addFieldInit()
1105 code->instrPutfield( in addFieldInit()
1115 code->loadLocalReference(0); in addFieldInit()
1129 code->instrGetstatic( in addFieldInit()
1133 code->instrPutfield(className, fieldName, desc); in addFieldInit()
1139 code->loadLocalReference(0); in addFieldInit()
1140 code->instrNew(nucleus); in addFieldInit()
1141 code->instrDup(); in addFieldInit()
1142 code->instrInvokespecial( in addFieldInit()
1151 code->instrPutfield( in addFieldInit()
1165 code->loadLocalReference(0); in addFieldInit()
1166 code->loadIntegerConstant(0); in addFieldInit()
1171 code->instrNewarray(sort); in addFieldInit()
1173 code->instrAnewarray( in addFieldInit()
1183 code->instrAnewarray(desc.makeStringAndClear()); in addFieldInit()
1190 code->instrPutfield( in addFieldInit()
1198 TypeManager const & manager, ClassFile::Code * code, sal_uInt16 * index, in addLoadLocal() argument
1203 code != 0 && index != 0 && !(typeParameter && any) in addLoadLocal()
1208 code->loadLocalReference(*index); in addLoadLocal()
1221 code->instrNew( in addLoadLocal()
1224 code->instrDup(); in addLoadLocal()
1225 code->loadLocalInteger(*index); in addLoadLocal()
1226 code->instrInvokespecial( in addLoadLocal()
1233 code->loadLocalInteger(*index); in addLoadLocal()
1241 code->instrNew( in addLoadLocal()
1244 code->instrDup(); in addLoadLocal()
1245 code->loadLocalInteger(*index); in addLoadLocal()
1246 code->instrInvokespecial( in addLoadLocal()
1253 code->loadLocalInteger(*index); in addLoadLocal()
1261 code->instrNew( in addLoadLocal()
1264 code->instrDup(); in addLoadLocal()
1265 code->loadLocalInteger(*index); in addLoadLocal()
1266 code->instrInvokespecial( in addLoadLocal()
1273 code->loadLocalInteger(*index); in addLoadLocal()
1281 code->instrNew( in addLoadLocal()
1285 code->instrDup(); in addLoadLocal()
1286 code->instrGetstatic( in addLoadLocal()
1295 code->instrNew( in addLoadLocal()
1298 code->instrDup(); in addLoadLocal()
1299 code->loadLocalInteger(*index); in addLoadLocal()
1300 code->instrInvokespecial( in addLoadLocal()
1305 code->instrInvokespecial( in addLoadLocal()
1315 code->loadLocalInteger(*index); in addLoadLocal()
1323 code->instrNew( in addLoadLocal()
1326 code->instrDup(); in addLoadLocal()
1327 code->loadLocalInteger(*index); in addLoadLocal()
1328 code->instrInvokespecial( in addLoadLocal()
1335 code->loadLocalInteger(*index); in addLoadLocal()
1343 code->instrNew( in addLoadLocal()
1347 code->instrDup(); in addLoadLocal()
1348 code->instrGetstatic( in addLoadLocal()
1357 code->instrNew( in addLoadLocal()
1360 code->instrDup(); in addLoadLocal()
1361 code->loadLocalInteger(*index); in addLoadLocal()
1362 code->instrInvokespecial( in addLoadLocal()
1367 code->instrInvokespecial( in addLoadLocal()
1377 code->loadLocalInteger(*index); in addLoadLocal()
1385 code->instrNew( in addLoadLocal()
1388 code->instrDup(); in addLoadLocal()
1389 code->loadLocalLong(*index); in addLoadLocal()
1390 code->instrInvokespecial( in addLoadLocal()
1397 code->loadLocalLong(*index); in addLoadLocal()
1405 code->instrNew( in addLoadLocal()
1409 code->instrDup(); in addLoadLocal()
1410 code->instrGetstatic( in addLoadLocal()
1419 code->instrNew( in addLoadLocal()
1422 code->instrDup(); in addLoadLocal()
1423 code->loadLocalLong(*index); in addLoadLocal()
1424 code->instrInvokespecial( in addLoadLocal()
1429 code->instrInvokespecial( in addLoadLocal()
1439 code->loadLocalLong(*index); in addLoadLocal()
1447 code->instrNew( in addLoadLocal()
1450 code->instrDup(); in addLoadLocal()
1451 code->loadLocalFloat(*index); in addLoadLocal()
1452 code->instrInvokespecial( in addLoadLocal()
1459 code->loadLocalFloat(*index); in addLoadLocal()
1467 code->instrNew( in addLoadLocal()
1470 code->instrDup(); in addLoadLocal()
1471 code->loadLocalDouble(*index); in addLoadLocal()
1472 code->instrInvokespecial( in addLoadLocal()
1479 code->loadLocalDouble(*index); in addLoadLocal()
1487 code->instrNew( in addLoadLocal()
1490 code->instrDup(); in addLoadLocal()
1491 code->loadLocalInteger(*index); in addLoadLocal()
1492 code->instrInvokespecial( in addLoadLocal()
1499 code->loadLocalInteger(*index); in addLoadLocal()
1508 code->loadLocalReference(*index); in addLoadLocal()
1517 code->loadLocalReference(*index); in addLoadLocal()
1523 code->instrNew( in addLoadLocal()
1527 code->instrDup(); in addLoadLocal()
1528 code->instrNew( in addLoadLocal()
1532 code->instrDup(); in addLoadLocal()
1533 code->loadStringConstant( in addLoadLocal()
1535 code->instrGetstatic( in addLoadLocal()
1547 code->instrInvokespecial( in addLoadLocal()
1556 code->loadLocalReference(*index); in addLoadLocal()
1557 code->instrInvokespecial( in addLoadLocal()
1568 code->loadLocalReference(*index); in addLoadLocal()
1581 code->instrNew( in addLoadLocal()
1585 code->instrDup(); in addLoadLocal()
1586 code->instrNew( in addLoadLocal()
1590 code->instrDup(); in addLoadLocal()
1591 code->loadStringConstant(nucleus.replace('/', '.')); in addLoadLocal()
1592 code->instrGetstatic( in addLoadLocal()
1605 code->instrInvokespecial( in addLoadLocal()
1614 code->loadLocalReference(*index); in addLoadLocal()
1615 code->instrInvokespecial( in addLoadLocal()
1626 code->loadLocalReference(*index); in addLoadLocal()
1692 code->instrNew( in addLoadLocal()
1695 code->instrDup(); in addLoadLocal()
1696 code->instrNew( in addLoadLocal()
1699 code->instrDup(); in addLoadLocal()
1700 code->loadStringConstant( in addLoadLocal()
1702 code->instrInvokespecial( in addLoadLocal()
1708 code->loadLocalReference(*index); in addLoadLocal()
1709 code->instrInvokespecial( in addLoadLocal()
1718 code->loadLocalReference(*index); in addLoadLocal()
1736 MethodDescriptor * methodDescriptor, ClassFile::Code * code, in addBaseArguments() argument
1740 dependencies != 0 && methodDescriptor != 0 && code != 0 && index != 0); in addBaseArguments()
1775 manager, dependencies, methodDescriptor, code, typeClass, in addBaseArguments()
1791 manager, code, index, false, fieldType, false, dependencies); in addBaseArguments()
1797 MethodDescriptor * methodDescriptor, ClassFile::Code * code, in addDirectArgument() argument
1803 dependencies != 0 && methodDescriptor != 0 && code != 0 && index != 0); in addDirectArgument()
1812 code->loadLocalReference(0); in addDirectArgument()
1814 manager, code, index, typeParameter, fieldType, false, dependencies); in addDirectArgument()
1815 code->instrPutfield(className, fieldName, desc); in addDirectArgument()
1967 std::auto_ptr< ClassFile::Code > code(cf->newCode()); in handleAggregatingType() local
1968 code->loadLocalReference(0); in handleAggregatingType()
1969 code->instrInvokespecial( in handleAggregatingType()
1981 dependencies, code.get())); in handleAggregatingType()
1991 dependencies, code.get())); in handleAggregatingType()
1993 code->instrReturn(); in handleAggregatingType()
1994 code->setMaxStackAndLocals(stack + 1, 1); in handleAggregatingType()
1998 rtl::OString(RTL_CONSTASCII_STRINGPARAM("()V")), code.get(), in handleAggregatingType()
2001 code.reset(cf->newCode()); in handleAggregatingType()
2002 code->loadLocalReference(0); in handleAggregatingType()
2003 code->loadLocalReference(1); in handleAggregatingType()
2004 code->instrInvokespecial( in handleAggregatingType()
2017 dependencies, code.get())); in handleAggregatingType()
2028 dependencies, code.get())); in handleAggregatingType()
2030 code->instrReturn(); in handleAggregatingType()
2031 code->setMaxStackAndLocals(stack + 2, 2); in handleAggregatingType()
2036 code.get(), std::vector< rtl::OString >(), rtl::OString()); in handleAggregatingType()
2041 code.reset(cf->newCode()); in handleAggregatingType()
2042 code->loadLocalReference(0); in handleAggregatingType()
2047 code->loadLocalReference(index++); in handleAggregatingType()
2051 manager, dependencies, &desc, code.get(), typeClass, superClass, in handleAggregatingType()
2054 code->instrInvokespecial( in handleAggregatingType()
2062 manager, dependencies, &desc, code.get(), &index, className, in handleAggregatingType()
2071 manager, dependencies, &desc, code.get(), &index, className, in handleAggregatingType()
2077 code->instrReturn(); in handleAggregatingType()
2078 code->setMaxStackAndLocals(maxSize, index); in handleAggregatingType()
2082 desc.getDescriptor(), code.get(), std::vector< rtl::OString >(), in handleAggregatingType()
2593 ClassFile::Code::Position handler, ClassFile::Code * code) in addExceptionHandlers() argument
2595 OSL_ASSERT(node != 0 && code != 0); in addExceptionHandlers()
2597 code->addException(start, end, handler, node->name); in addExceptionHandlers()
2603 addExceptionHandlers(*i, start, end, handler, code); in addExceptionHandlers()
2621 std::auto_ptr< ClassFile::Code > code(classFile->newCode()); in addConstructor() local
2622 code->loadLocalReference(0); in addConstructor()
2624 code->instrInvokestatic( in addConstructor()
2631 code->loadStringConstant(unoName); in addConstructor()
2642 code->loadLocalReference(0); in addConstructor()
2644 tryStart = code->getPosition(); in addConstructor()
2645 code->instrInvokeinterface( in addConstructor()
2657 tryEnd = code->getPosition(); in addConstructor()
2670 code->loadLocalReference(localIndex++); in addConstructor()
2676 code->loadIntegerConstant(parameters); in addConstructor()
2678 code->instrAnewarray( in addConstructor()
2702 code->instrDup(); in addConstructor()
2704 code->loadIntegerConstant(i); in addConstructor()
2709 manager, code.get(), &localIndex, false, paramType, in addConstructor()
2712 code->instrAastore(); in addConstructor()
2717 code->loadLocalReference(0); in addConstructor()
2719 tryStart = code->getPosition(); in addConstructor()
2720 code->instrInvokeinterface( in addConstructor()
2732 tryEnd = code->getPosition(); in addConstructor()
2737 code->loadLocalReference(0); in addConstructor()
2739 code->instrInvokestatic( in addConstructor()
2746 code->instrCheckcast(returnType); in addConstructor()
2748 code->instrAreturn(); in addConstructor()
2750 ClassFile::Code::Position pos1 = code->getPosition(); in addConstructor()
2752 code->instrInvokevirtual( in addConstructor()
2758 code->storeLocalReference(1); in addConstructor()
2760 code->instrNew( in addConstructor()
2765 code->instrDup(); in addConstructor()
2775 code->loadStringConstant(msg.makeStringAndClear()); in addConstructor()
2777 code->loadLocalReference(1); in addConstructor()
2779 code->instrInvokevirtual( in addConstructor()
2786 code->loadLocalReference(0); in addConstructor()
2788 code->instrInvokespecial( in addConstructor()
2797 ClassFile::Code::Position pos2 = code->getPosition(); in addConstructor()
2798 code->instrAthrow(); in addConstructor()
2800 tree.getRoot(), tryStart, tryEnd, pos2, code.get()); in addConstructor()
2801 code->addException( in addConstructor()
2810 code->setMaxStackAndLocals(stack, localIndex); in addConstructor()
2812 access, methodName, desc.getDescriptor(), code.get(), exc, in addConstructor()
2896 std::auto_ptr< ClassFile::Code > code(cf->newCode()); in handleService() local
2897 code->loadLocalReference(0); in handleService()
2899 code->instrInvokeinterface( in handleService()
2909 code->instrDup(); in handleService()
2911 ClassFile::Code::Branch branch = code->instrIfnull(); in handleService()
2913 code->instrAreturn(); in handleService()
2914 code->branchHere(branch); in handleService()
2915 code->instrPop(); in handleService()
2917 code->instrNew( in handleService()
2922 code->instrDup(); in handleService()
2924 code->loadStringConstant( in handleService()
2929 code->loadLocalReference(0); in handleService()
2931 code->instrInvokespecial( in handleService()
2940 code->instrAthrow(); in handleService()
2941 code->setMaxStackAndLocals(4, 1); in handleService()
2951 code.get(), std::vector< rtl::OString >(), rtl::OString()); in handleService()
2955 std::auto_ptr< ClassFile::Code > code(cf->newCode()); in handleService() local
2956 code->instrNew( in handleService()
2960 code->instrDup(); in handleService()
2962 code->loadStringConstant(realJavaBaseName); in handleService()
2964 code->instrGetstatic( in handleService()
2972 code->instrInvokespecial( in handleService()
2980 code->loadLocalReference(0); in handleService()
2982 code->instrInvokestatic( in handleService()
2991 code->instrDup(); in handleService()
2993 ClassFile::Code::Branch branch = code->instrIfnull(); in handleService()
2995 code->instrAreturn(); in handleService()
2996 code->branchHere(branch); in handleService()
2997 code->instrPop(); in handleService()
2999 code->instrNew( in handleService()
3004 code->instrDup(); in handleService()
3013 code->loadStringConstant(msg.makeStringAndClear()); in handleService()
3015 code->loadLocalReference(1); in handleService()
3017 code->instrInvokespecial( in handleService()
3026 code->instrAthrow(); in handleService()
3027 code->setMaxStackAndLocals(4, 2); in handleService()
3037 code.get(), std::vector< rtl::OString >(), rtl::OString()); in handleService()
3097 std::auto_ptr< ClassFile::Code > code(cf->newCode()); in handleSingleton() local
3098 code->loadLocalReference(0); in handleSingleton()
3100 code->loadStringConstant( in handleSingleton()
3103 code->instrInvokeinterface( in handleSingleton()
3112 code->instrDup(); in handleSingleton()
3114 code->instrInstanceof( in handleSingleton()
3117 ClassFile::Code::Branch branch1 = code->instrIfeq(); in handleSingleton()
3119 code->instrCheckcast( in handleSingleton()
3122 code->instrDup(); in handleSingleton()
3124 code->instrInvokevirtual( in handleSingleton()
3129 code->instrInvokevirtual( in handleSingleton()
3135 code->instrGetstatic( in handleSingleton()
3141 ClassFile::Code::Branch branch2 = code->instrIfAcmpne(); in handleSingleton()
3143 code->instrInvokevirtual( in handleSingleton()
3148 code->branchHere(branch1); in handleSingleton()
3149 code->instrNew( in handleSingleton()
3152 code->instrDup(); in handleSingleton()
3154 code->loadStringConstant(realJavaBaseName); in handleSingleton()
3156 code->instrGetstatic( in handleSingleton()
3162 code->instrInvokespecial( in handleSingleton()
3169 code->instrSwap(); in handleSingleton()
3171 code->instrInvokestatic( in handleSingleton()
3179 code->instrDup(); in handleSingleton()
3181 ClassFile::Code::Branch branch3 = code->instrIfnull(); in handleSingleton()
3183 code->instrCheckcast(base); in handleSingleton()
3185 code->instrAreturn(); in handleSingleton()
3186 code->branchHere(branch2); in handleSingleton()
3187 code->branchHere(branch3); in handleSingleton()
3188 code->instrPop(); in handleSingleton()
3190 code->instrNew( in handleSingleton()
3195 code->instrDup(); in handleSingleton()
3204 code->loadStringConstant(msg.makeStringAndClear()); in handleSingleton()
3206 code->loadLocalReference(0); in handleSingleton()
3208 code->instrInvokespecial( in handleSingleton()
3216 code->instrAthrow(); in handleSingleton()
3217 code->setMaxStackAndLocals(5, 1); in handleSingleton()
3222 code.get(), std::vector< rtl::OString >(), desc.getSignature()); in handleSingleton()