Lines Matching refs:i
556 int i; in freeAssertionCtrl() local
558 for (i = 0; i < gDvm.assertionCtrlCount; i++) in freeAssertionCtrl()
559 free(gDvm.assertionCtrl[i].pkgOrClass); in freeAssertionCtrl()
611 int i; in processXjitop() local
612 for (i = 0; i < 32; i++) { in processXjitop()
613 gDvmJit.opList[i] = 0xff; in processXjitop()
669 int i; in dvmProcessOptions() local
672 for (i = 0; i < argc; i++) in dvmProcessOptions()
673 LOGV(" %d: '%s'\n", i, argv[i]); in dvmProcessOptions()
689 for (i = 0; i < argc; i++) { in dvmProcessOptions()
690 if (strcmp(argv[i], "-help") == 0) { in dvmProcessOptions()
694 } else if (strcmp(argv[i], "-version") == 0) { in dvmProcessOptions()
698 } else if (strcmp(argv[i], "-showversion") == 0) { in dvmProcessOptions()
702 } else if (strcmp(argv[i], "-classpath") == 0 || in dvmProcessOptions()
703 strcmp(argv[i], "-cp") == 0) in dvmProcessOptions()
706 if (i == argc-1) { in dvmProcessOptions()
711 gDvm.classPathStr = strdup(argv[++i]); in dvmProcessOptions()
713 } else if (strncmp(argv[i], "-Xbootclasspath:", in dvmProcessOptions()
717 const char* path = argv[i] + sizeof("-Xbootclasspath:")-1; in dvmProcessOptions()
732 } else if (strncmp(argv[i], "-D", 2) == 0) { in dvmProcessOptions()
734 dvmAddCommandLineProperty(argv[i] + 2); in dvmProcessOptions()
736 } else if (strcmp(argv[i], "-jar") == 0) { in dvmProcessOptions()
741 } else if (strncmp(argv[i], "-Xms", 4) == 0) { in dvmProcessOptions()
742 unsigned int val = dvmParseMemOption(argv[i]+4, 1024); in dvmProcessOptions()
749 argv[i], kMinHeapStartSize/1024, kMaxHeapSize/1024); in dvmProcessOptions()
753 dvmFprintf(stderr, "Invalid -Xms option '%s'\n", argv[i]); in dvmProcessOptions()
756 } else if (strncmp(argv[i], "-Xmx", 4) == 0) { in dvmProcessOptions()
757 unsigned int val = dvmParseMemOption(argv[i]+4, 1024); in dvmProcessOptions()
764 argv[i], kMinHeapSize/1024, kMaxHeapSize/1024); in dvmProcessOptions()
768 dvmFprintf(stderr, "Invalid -Xmx option '%s'\n", argv[i]); in dvmProcessOptions()
771 } else if (strncmp(argv[i], "-Xss", 4) == 0) { in dvmProcessOptions()
772 unsigned int val = dvmParseMemOption(argv[i]+4, 1); in dvmProcessOptions()
778 argv[i], kMinStackSize, kMaxStackSize); in dvmProcessOptions()
782 dvmFprintf(stderr, "Invalid -Xss option '%s'\n", argv[i]); in dvmProcessOptions()
786 } else if (strcmp(argv[i], "-verbose") == 0 || in dvmProcessOptions()
787 strcmp(argv[i], "-verbose:class") == 0) in dvmProcessOptions()
792 } else if (strcmp(argv[i], "-verbose:jni") == 0) { in dvmProcessOptions()
794 } else if (strcmp(argv[i], "-verbose:gc") == 0) { in dvmProcessOptions()
796 } else if (strcmp(argv[i], "-verbose:shutdown") == 0) { in dvmProcessOptions()
799 } else if (strncmp(argv[i], "-enableassertions", 17) == 0) { in dvmProcessOptions()
800 enableAssertions(argv[i] + 17, true); in dvmProcessOptions()
801 } else if (strncmp(argv[i], "-ea", 3) == 0) { in dvmProcessOptions()
802 enableAssertions(argv[i] + 3, true); in dvmProcessOptions()
803 } else if (strncmp(argv[i], "-disableassertions", 18) == 0) { in dvmProcessOptions()
804 enableAssertions(argv[i] + 18, false); in dvmProcessOptions()
805 } else if (strncmp(argv[i], "-da", 3) == 0) { in dvmProcessOptions()
806 enableAssertions(argv[i] + 3, false); in dvmProcessOptions()
807 } else if (strcmp(argv[i], "-enablesystemassertions") == 0 || in dvmProcessOptions()
808 strcmp(argv[i], "-esa") == 0) in dvmProcessOptions()
811 } else if (strcmp(argv[i], "-disablesystemassertions") == 0 || in dvmProcessOptions()
812 strcmp(argv[i], "-dsa") == 0) in dvmProcessOptions()
816 } else if (strncmp(argv[i], "-Xcheck:jni", 11) == 0) { in dvmProcessOptions()
819 } else if (strcmp(argv[i], "-Xdebug") == 0) { in dvmProcessOptions()
822 } else if (strncmp(argv[i], "-Xrunjdwp:", 10) == 0 || in dvmProcessOptions()
823 strncmp(argv[i], "-agentlib:jdwp=", 15) == 0) in dvmProcessOptions()
827 if (argv[i][1] == 'X') in dvmProcessOptions()
828 tail = argv[i] + 10; in dvmProcessOptions()
830 tail = argv[i] + 15; in dvmProcessOptions()
836 } else if (strcmp(argv[i], "-Xrs") == 0) { in dvmProcessOptions()
838 } else if (strcmp(argv[i], "-Xnoquithandler") == 0) { in dvmProcessOptions()
842 } else if (strcmp(argv[i], "-Xzygote") == 0) { in dvmProcessOptions()
847 } else if (strncmp(argv[i], "-Xdexopt:", 9) == 0) { in dvmProcessOptions()
848 if (strcmp(argv[i] + 9, "none") == 0) in dvmProcessOptions()
850 else if (strcmp(argv[i] + 9, "verified") == 0) in dvmProcessOptions()
852 else if (strcmp(argv[i] + 9, "all") == 0) in dvmProcessOptions()
855 dvmFprintf(stderr, "Unrecognized dexopt option '%s'\n",argv[i]); in dvmProcessOptions()
858 } else if (strncmp(argv[i], "-Xverify:", 9) == 0) { in dvmProcessOptions()
859 if (strcmp(argv[i] + 9, "none") == 0) in dvmProcessOptions()
861 else if (strcmp(argv[i] + 9, "remote") == 0) in dvmProcessOptions()
863 else if (strcmp(argv[i] + 9, "all") == 0) in dvmProcessOptions()
866 dvmFprintf(stderr, "Unrecognized verify option '%s'\n",argv[i]); in dvmProcessOptions()
869 } else if (strncmp(argv[i], "-Xjnigreflimit:", 15) == 0) { in dvmProcessOptions()
870 int lim = atoi(argv[i] + 15); in dvmProcessOptions()
873 argv[i]+15); in dvmProcessOptions()
877 } else if (strncmp(argv[i], "-Xjnitrace:", 11) == 0) { in dvmProcessOptions()
878 gDvm.jniTrace = strdup(argv[i] + 11); in dvmProcessOptions()
879 } else if (strcmp(argv[i], "-Xlog-stdio") == 0) { in dvmProcessOptions()
882 } else if (strncmp(argv[i], "-Xint", 5) == 0) { in dvmProcessOptions()
883 if (argv[i][5] == ':') { in dvmProcessOptions()
884 if (strcmp(argv[i] + 6, "portable") == 0) in dvmProcessOptions()
886 else if (strcmp(argv[i] + 6, "fast") == 0) in dvmProcessOptions()
889 else if (strcmp(argv[i] + 6, "jit") == 0) in dvmProcessOptions()
894 "Warning: Unrecognized interpreter mode %s\n",argv[i]); in dvmProcessOptions()
902 } else if (strncmp(argv[i], "-Xlockprofthreshold:", 20) == 0) { in dvmProcessOptions()
903 gDvm.lockProfThreshold = atoi(argv[i] + 20); in dvmProcessOptions()
906 } else if (strncmp(argv[i], "-Xjitop", 7) == 0) { in dvmProcessOptions()
907 processXjitop(argv[i]); in dvmProcessOptions()
908 } else if (strncmp(argv[i], "-Xjitmethod", 11) == 0) { in dvmProcessOptions()
909 processXjitmethod(argv[i]); in dvmProcessOptions()
910 } else if (strncmp(argv[i], "-Xjitblocking", 13) == 0) { in dvmProcessOptions()
912 } else if (strncmp(argv[i], "-Xjitthreshold:", 15) == 0) { in dvmProcessOptions()
913 gDvmJit.threshold = atoi(argv[i] + 15); in dvmProcessOptions()
914 } else if (strncmp(argv[i], "-Xincludeselectedop", 19) == 0) { in dvmProcessOptions()
916 } else if (strncmp(argv[i], "-Xincludeselectedmethod", 23) == 0) { in dvmProcessOptions()
918 } else if (strncmp(argv[i], "-Xjitcheckcg", 12) == 0) { in dvmProcessOptions()
922 } else if (strncmp(argv[i], "-Xjitverbose", 12) == 0) { in dvmProcessOptions()
924 } else if (strncmp(argv[i], "-Xjitprofile", 12) == 0) { in dvmProcessOptions()
926 } else if (strncmp(argv[i], "-Xjitdisableopt", 15) == 0) { in dvmProcessOptions()
928 if (argv[i][15] == ':') { in dvmProcessOptions()
929 sscanf(argv[i] + 16, "%x", &gDvmJit.disableOpt); in dvmProcessOptions()
936 } else if (strncmp(argv[i], "-Xdeadlockpredict:", 18) == 0) { in dvmProcessOptions()
938 if (strcmp(argv[i] + 18, "off") == 0) in dvmProcessOptions()
940 else if (strcmp(argv[i] + 18, "warn") == 0) in dvmProcessOptions()
942 else if (strcmp(argv[i] + 18, "err") == 0) in dvmProcessOptions()
944 else if (strcmp(argv[i] + 18, "abort") == 0) in dvmProcessOptions()
951 LOGD("Deadlock prediction enabled (%s)\n", argv[i]+18); in dvmProcessOptions()
954 } else if (strncmp(argv[i], "-Xstacktracefile:", 17) == 0) { in dvmProcessOptions()
955 gDvm.stackTraceFile = strdup(argv[i]+17); in dvmProcessOptions()
957 } else if (strcmp(argv[i], "-Xgenregmap") == 0) { in dvmProcessOptions()
961 } else if (strncmp(argv[i], "-Xgc:", 5) == 0) { in dvmProcessOptions()
962 if (strcmp(argv[i] + 5, "precise") == 0) in dvmProcessOptions()
964 else if (strcmp(argv[i] + 5, "noprecise") == 0) in dvmProcessOptions()
966 else if (strcmp(argv[i] + 5, "preverify") == 0) in dvmProcessOptions()
968 else if (strcmp(argv[i] + 5, "nopreverify") == 0) in dvmProcessOptions()
970 else if (strcmp(argv[i] + 5, "postverify") == 0) in dvmProcessOptions()
972 else if (strcmp(argv[i] + 5, "nopostverify") == 0) in dvmProcessOptions()
974 else if (strcmp(argv[i] + 5, "concurrent") == 0) in dvmProcessOptions()
976 else if (strcmp(argv[i] + 5, "noconcurrent") == 0) in dvmProcessOptions()
978 else if (strcmp(argv[i] + 5, "verifycardtable") == 0) in dvmProcessOptions()
980 else if (strcmp(argv[i] + 5, "noverifycardtable") == 0) in dvmProcessOptions()
988 } else if (strcmp(argv[i], "-Xcheckdexsum") == 0) { in dvmProcessOptions()
991 } else if (strcmp(argv[i], "-Xprofile:wallclock") == 0) { in dvmProcessOptions()
996 dvmFprintf(stderr, "Unrecognized option '%s'\n", argv[i]); in dvmProcessOptions()
1129 int i, cc; in dvmStartup() local
1134 for (i = 0; i < argc; i++) in dvmStartup()
1135 LOGV(" %d: '%s'\n", i, argv[i]); in dvmStartup()