• Home
  • Raw
  • Download

Lines Matching refs:indent

34     protected static String indent = "    ";  field in JniCodeEmitter
184 out.println(iii + indent + "get" + typeName + "Array(" + argName + "),"); in emitFunctionCall()
185 out.print(iii + indent + "getOffset(" + argName + ")"); in emitFunctionCall()
187 out.print(iii + indent + argName); in emitFunctionCall()
192 out.println(iii + indent + argName + ".remaining()"); in emitFunctionCall()
218 out.println(iii + indent + "_exception = 1;"); in printIfcheckPostamble()
219 out.println(iii + indent + in printIfcheckPostamble()
221 out.println(iii + indent + in printIfcheckPostamble()
225 out.println(iii + indent + "goto exit;"); in printIfcheckPostamble()
395 out.println(iii + indent + "_exception = 1;"); in emitNativeBoundsChecks()
409 out.println(iii + indent + in emitNativeBoundsChecks()
411 out.println(iii + indent + in emitNativeBoundsChecks()
417 out.println(iii + indent + "goto exit;"); in emitNativeBoundsChecks()
469 out.println(iii + indent + "if (" + cname + in emitSentinelCheck()
471 out.println(iii + indent + indent + in emitSentinelCheck()
473 out.println(iii + indent + indent + "break;"); in emitSentinelCheck()
474 out.println(iii + indent + "}"); in emitSentinelCheck()
478 out.println(iii + indent + "_exception = 1;"); in emitSentinelCheck()
479 out.println(iii + indent + in emitSentinelCheck()
481 out.println(iii + indent + "_exceptionMessage = \"" + cname + in emitSentinelCheck()
483 out.println(iii + indent + "goto exit;"); in emitSentinelCheck()
509 out.println(iii + indent + "_exception = 1;"); in emitStringCheck()
510 out.println(iii + indent + in emitStringCheck()
512 out.println(iii + indent + in emitStringCheck()
515 out.println(iii + indent + "goto exit;"); in emitStringCheck()
535 out.println(indent + "bool " + cname + "_sentinel = false;"); in emitLocalVariablesForSentinel()
587 out.println(indent + in emitFunction()
595 out.println(indent + in emitFunction()
608 out.print(indent + indent + argType + " " + argName); in emitFunction()
612 out.println(indent + indent + "int remaining"); in emitFunction()
622 out.println(indent + ");"); in emitFunction()
624 out.println(indent + ") {"); in emitFunction()
626 String iii = indent + indent; in emitFunction()
646 out.println(iii + indent + "_colorPointer = pointer;"); in emitFunction()
654 out.println(iii + indent + "_normalPointer = pointer;"); in emitFunction()
665 out.println(iii + indent + "_texCoordPointer = pointer;"); in emitFunction()
676 out.println(iii + indent + "_vertexPointer = pointer;"); in emitFunction()
682 out.println(iii + indent + "_pointSizePointerOES = pointer;"); in emitFunction()
693 out.println(iii + indent + "_matrixIndexPointerOES = pointer;"); in emitFunction()
704 out.println(iii + indent + "_weightPointerOES = pointer;"); in emitFunction()
712 out.println(indent + indent + "return _returnValue;"); in emitFunction()
714 out.println(indent + "}"); in emitFunction()
745 cStream.println(indent + in emitNativeRegistration()
748 cStream.println(indent + in emitNativeRegistration()
751 cStream.println(indent + "return err;"); in emitNativeRegistration()
955 out.println(indent + in emitJniCode()
957 out.println(indent + in emitJniCode()
960 out.println(indent + "return;"); in emitJniCode()
964 out.println(indent + indent + "return nullptr;"); in emitJniCode()
966 out.println(indent + indent + "return " + in emitJniCode()
977 out.println(indent + in emitJniCode()
979 out.println(indent + indent + in emitJniCode()
981 out.println(indent + indent + in emitJniCode()
984 out.println(indent + indent + " return;"); in emitJniCode()
989 out.println(indent + in emitJniCode()
993 out.println(indent + "return " + retval + ";"); in emitJniCode()
996 out.println(indent + "}"); in emitJniCode()
999 out.println(indent + in emitJniCode()
1014 out.println(indent + "jint _exception = 0;"); in emitJniCode()
1015 out.println(indent + "const char * _exceptionType = NULL;"); in emitJniCode()
1016 out.println(indent + "const char * _exceptionMessage = NULL;"); in emitJniCode()
1024 out.println(indent + typedArrayType + " _array = (" + typedArrayType + ") 0;"); in emitJniCode()
1026 out.println(indent + "jarray _array = (jarray) 0;"); in emitJniCode()
1028 out.println(indent + "jint _bufferOffset = (jint) 0;"); in emitJniCode()
1034 out.println(indent + typedArrayType + " _" + bufferArgNames.get(i) + in emitJniCode()
1037 out.println(indent + "jarray _" + bufferArgNames.get(i) + in emitJniCode()
1040 out.println(indent + "jint _" + bufferArgNames.get(i) + in emitJniCode()
1047 out.println(indent + returnType.getDeclaration() + in emitJniCode()
1050 out.println(indent + returnType.getDeclaration() + in emitJniCode()
1053 out.println(indent + returnType.getDeclaration() + in emitJniCode()
1077 out.println(indent + in emitJniCode()
1115 out.println(indent + in emitJniCode()
1123 out.println(indent + in emitJniCode()
1125 out.println(indent + in emitJniCode()
1143 out.println(indent + "const char* _native" + cname + " = 0;"); in emitJniCode()
1150 out.println(indent + "jsize _stringlen = 0;"); in emitJniCode()
1164 String nullAllowedIndent = nullAllowed ? indent : ""; in emitJniCode()
1170 out.println(indent + "if (" + cname + ") {"); in emitJniCode()
1173 out.println(indent + "if (!" + cname + ") {"); in emitJniCode()
1174 out.println(indent + indent + "_exception = 1;"); in emitJniCode()
1175 out.println(indent + indent + in emitJniCode()
1177 out.println(indent + indent + in emitJniCode()
1179 out.println(indent + indent + "goto exit;"); in emitJniCode()
1180 out.println(indent + "}"); in emitJniCode()
1183 out.println(nullAllowedIndent + indent + "_native" + cname + in emitJniCode()
1186 emitStringCheck(cfunc, cname, out, nullAllowedIndent + indent); in emitJniCode()
1189 out.println(indent + "}"); in emitJniCode()
1210 String nullAllowedIndent = nullAllowed ? indent : ""; in emitJniCode()
1217 out.println(indent + "if (" + cname + "_ref) {"); in emitJniCode()
1221 out.println(indent + "if (!" + cname + "_ref) {"); in emitJniCode()
1222 out.println(indent + indent + "_exception = 1;"); in emitJniCode()
1223 out.println(indent + indent + in emitJniCode()
1226 out.println(indent + indent + in emitJniCode()
1229 out.println(indent + indent + "goto exit;"); in emitJniCode()
1230 out.println(indent + "}"); in emitJniCode()
1233 out.println(nullAllowedIndent + indent + "if (" + offset + in emitJniCode()
1235 out.println(nullAllowedIndent + indent + indent + in emitJniCode()
1237 out.println(nullAllowedIndent + indent + indent + in emitJniCode()
1240 out.println(nullAllowedIndent + indent + indent + in emitJniCode()
1242 out.println(nullAllowedIndent + indent + indent + in emitJniCode()
1244 out.println(nullAllowedIndent + indent + "}"); in emitJniCode()
1246 out.println(nullAllowedIndent + indent + remaining + " = " + in emitJniCode()
1254 nullAllowedIndent + indent); in emitJniCode()
1256 out.println(nullAllowedIndent + indent + in emitJniCode()
1262 out.println(nullAllowedIndent + indent + " " + in emitJniCode()
1268 out.println(nullAllowedIndent + indent + in emitJniCode()
1273 nullAllowedIndent + indent); in emitJniCode()
1276 out.println(indent + "}"); in emitJniCode()
1285 out.println(indent + "if (" + cname + "_ref) {"); in emitJniCode()
1289 out.println(indent + "if (!" + cname + "_ref) {"); in emitJniCode()
1290 out.println(indent + indent + "_exception = 1;"); in emitJniCode()
1291 out.println(indent + indent + "_exceptionType = " + in emitJniCode()
1293 out.println(indent + indent + "_exceptionMessage = \"" + in emitJniCode()
1295 out.println(indent + indent + "goto exit;"); in emitJniCode()
1296 out.println(indent + "}"); in emitJniCode()
1299 out.println(nullAllowedIndent + indent + "if (" + offset + in emitJniCode()
1301 out.println(nullAllowedIndent + indent + indent + in emitJniCode()
1303 out.println(nullAllowedIndent + indent + indent + in emitJniCode()
1306 out.println(nullAllowedIndent + indent + indent + in emitJniCode()
1308 out.println(nullAllowedIndent + indent + indent + in emitJniCode()
1310 out.println(nullAllowedIndent + indent + "}"); in emitJniCode()
1312 out.println(nullAllowedIndent + indent + remaining + " = " + in emitJniCode()
1319 nullAllowedIndent + indent); in emitJniCode()
1320 out.println(nullAllowedIndent + indent + in emitJniCode()
1326 out.println(indent + "}"); in emitJniCode()
1340 out.println(indent + "if (" + cname + "_buf) {"); in emitJniCode()
1341 out.print(indent); in emitJniCode()
1345 out.println(indent + "if (!" + cname + "_buf) {"); in emitJniCode()
1346 out.println(indent + indent + "_exception = 1;"); in emitJniCode()
1347 out.println(indent + indent + "_exceptionType = " + in emitJniCode()
1349 out.println(indent + indent + "_exceptionMessage = \"" + in emitJniCode()
1351 out.println(indent + indent + "goto exit;"); in emitJniCode()
1352 out.println(indent + "}"); in emitJniCode()
1356 out.println(indent + in emitJniCode()
1363 out.println(iii + indent + "if ( ! " + cname + " ) {"); in emitJniCode()
1364 out.println(iii + indent + indent + "return;"); in emitJniCode()
1365 out.println(iii + indent + "}"); in emitJniCode()
1367 out.println(indent + in emitJniCode()
1382 out.println(indent + "}"); in emitJniCode()
1405 out.println(indent + "if (" + cname + "_buf && " + cname +" == NULL) {"); in emitJniCode()
1407 out.println(indent + "if (" + cname +" == NULL) {"); in emitJniCode()
1412 …out.println(indent + indent + "char * _" + cname + "Base = (char *)_env->" + arrayGetter + "(" + a… in emitJniCode()
1413 …out.println(indent + indent + cname + " = (" +cfunc.getArgType(cIndex).getDeclaration() +") (_" + … in emitJniCode()
1414 out.println(indent + "}"); in emitJniCode()
1416 …out.println(indent + indent + "char * _" + cname + "Base = (char *)_env->GetPrimitiveArrayCritical… in emitJniCode()
1417 …out.println(indent + indent + cname + " = (" +cfunc.getArgType(cIndex).getDeclaration() +") (_" + … in emitJniCode()
1418 out.println(indent + "}"); in emitJniCode()
1425 out.print(indent + "_returnValue = "); in emitJniCode()
1427 out.print(indent); in emitJniCode()
1460 out.print(indent + indent + in emitJniCode()
1479 out.println(indent + indent + "(GLsizei)remaining"); in emitJniCode()
1487 out.println(indent + ");"); in emitJniCode()
1507 out.println(indent + in emitJniCode()
1510 out.println(indent + indent + in emitJniCode()
1517 out.println(indent + indent + indent + in emitJniCode()
1521 out.println(indent + "}"); in emitJniCode()
1527 out.println(indent + "if (" + array + ") {"); in emitJniCode()
1531 out.println(indent + indent + in emitJniCode()
1541 out.println(indent + indent + in emitJniCode()
1550 out.println(indent + "}"); in emitJniCode()
1563 out.println(indent + "if (_native" + cname + ") {"); in emitJniCode()
1564 … out.println(indent + " _env->ReleaseStringUTFChars(" + cname + ", _native" + cname + ");"); in emitJniCode()
1565 out.println(indent + "}"); in emitJniCode()
1581 out.println(indent + in emitJniCode()
1583 out.println(indent + indent + in emitJniCode()
1585 out.println(indent + indent + indent + in emitJniCode()
1590 out.println(indent + indent + indent + in emitJniCode()
1597 out.println(indent + indent + "}"); in emitJniCode()
1598 out.println(indent + indent + in emitJniCode()
1600 out.println(indent + "}"); in emitJniCode()
1608 out.println(indent + "if (_exception) {"); in emitJniCode()
1609 out.println(indent + indent + in emitJniCode()
1614 out.println(indent + indent + "return nullptr;"); in emitJniCode()
1616 out.println(indent + indent + "return " + in emitJniCode()
1621 out.println(indent + "}"); in emitJniCode()
1628 out.println(indent + in emitJniCode()
1632 out.println(indent + "return (" + in emitJniCode()