Lines Matching refs:iii
163 void emitFunctionCall(JFunc jfunc, PrintStream out, String iii, boolean grabArray) { in emitFunctionCall() argument
168 out.println(iii + in emitFunctionCall()
171 out.println(iii + in emitFunctionCall()
185 out.println(iii + indent + "get" + typeName + "Array(" + argName + "),"); in emitFunctionCall()
186 out.print(iii + indent + "getOffset(" + argName + ")"); in emitFunctionCall()
188 out.print(iii + indent + argName); in emitFunctionCall()
193 out.println(iii + indent + argName + ".remaining()"); in emitFunctionCall()
202 out.println(iii + ");"); in emitFunctionCall()
233 String iii) { in printIfcheckPostamble() argument
235 "offset", "_remaining", iii); in printIfcheckPostamble()
239 String offset, String remaining, String iii) { in printIfcheckPostamble() argument
240 out.println(iii + " default:"); in printIfcheckPostamble()
241 out.println(iii + " _needed = 1;"); in printIfcheckPostamble()
242 out.println(iii + " break;"); in printIfcheckPostamble()
243 out.println(iii + "}"); in printIfcheckPostamble()
245 out.println(iii + "if (" + remaining + " < _needed) {"); in printIfcheckPostamble()
246 out.println(iii + indent + "_exception = 1;"); in printIfcheckPostamble()
247 out.println(iii + indent + in printIfcheckPostamble()
249 out.println(iii + indent + in printIfcheckPostamble()
253 out.println(iii + indent + "goto exit;"); in printIfcheckPostamble()
254 out.println(iii + "}"); in printIfcheckPostamble()
403 … boolean isBuffer, boolean emitExceptionCheck, String offset, String remaining, String iii) { in emitNativeBoundsChecks() argument
415 offset, remaining, iii); in emitNativeBoundsChecks()
422 out.println(iii + "if (" + remaining + " < " + checks[index + 2] + ") {"); in emitNativeBoundsChecks()
423 out.println(iii + indent + "_exception = 1;"); in emitNativeBoundsChecks()
437 out.println(iii + indent + in emitNativeBoundsChecks()
439 out.println(iii + indent + in emitNativeBoundsChecks()
445 out.println(iii + indent + "goto exit;"); in emitNativeBoundsChecks()
446 out.println(iii + "}"); in emitNativeBoundsChecks()
455 out.println(iii + "int _needed;"); in emitNativeBoundsChecks()
456 out.println(iii + "switch (" + checks[index + 3] + ") {"); in emitNativeBoundsChecks()
461 out.println(iii + " case " + matches[i] + ":"); in emitNativeBoundsChecks()
464 out.println(iii + " _needed = " + checks[index + 2] + ";"); in emitNativeBoundsChecks()
465 out.println(iii + " break;"); in emitNativeBoundsChecks()
476 printIfcheckPostamble(out, isBuffer, emitExceptionCheck, iii); in emitNativeBoundsChecks()
481 … boolean isBuffer, boolean emitExceptionCheck, String offset, String remaining, String iii) { in emitSentinelCheck() argument
494 out.println(iii + cname + "_sentinel = false;"); in emitSentinelCheck()
495 out.println(iii + "for (int i = " + remaining + in emitSentinelCheck()
497 out.println(iii + indent + "if (" + cname + in emitSentinelCheck()
499 out.println(iii + indent + indent + in emitSentinelCheck()
501 out.println(iii + indent + indent + "break;"); in emitSentinelCheck()
502 out.println(iii + indent + "}"); in emitSentinelCheck()
503 out.println(iii + "}"); in emitSentinelCheck()
504 out.println(iii + in emitSentinelCheck()
506 out.println(iii + indent + "_exception = 1;"); in emitSentinelCheck()
507 out.println(iii + indent + in emitSentinelCheck()
509 out.println(iii + indent + "_exceptionMessage = \"" + cname + in emitSentinelCheck()
511 out.println(iii + indent + "goto exit;"); in emitSentinelCheck()
512 out.println(iii + "}"); in emitSentinelCheck()
523 void emitStringCheck(CFunc cfunc, String cname, PrintStream out, String iii) { in emitStringCheck() argument
535 out.println(iii + "_stringlen = _env->GetStringUTFLength(" + cname + ");"); in emitStringCheck()
536 out.println(iii + "if (" + checks[index + 2] + " > _stringlen) {"); in emitStringCheck()
537 out.println(iii + indent + "_exception = 1;"); in emitStringCheck()
538 out.println(iii + indent + in emitStringCheck()
540 out.println(iii + indent + in emitStringCheck()
543 out.println(iii + indent + "goto exit;"); in emitStringCheck()
544 out.println(iii + "}"); in emitStringCheck()
654 String iii = indent + indent; in emitFunction() local
657 emitFunctionCall(jfunc, out, iii, false); in emitFunction()
669 out.println(iii + "if ((size == 4) &&"); in emitFunction()
670 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
671 out.println(iii + " (type == GL_UNSIGNED_BYTE) ||"); in emitFunction()
672 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
673 out.println(iii + " (stride >= 0)) {"); in emitFunction()
674 out.println(iii + indent + "_colorPointer = pointer;"); in emitFunction()
675 out.println(iii + "}"); in emitFunction()
677 out.println(iii + "if (((type == GL_FLOAT) ||"); in emitFunction()
678 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
679 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
680 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
681 out.println(iii + " (stride >= 0)) {"); in emitFunction()
682 out.println(iii + indent + "_normalPointer = pointer;"); in emitFunction()
683 out.println(iii + "}"); in emitFunction()
685 out.println(iii + "if (((size == 2) ||"); in emitFunction()
686 out.println(iii + " (size == 3) ||"); in emitFunction()
687 out.println(iii + " (size == 4)) &&"); in emitFunction()
688 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
689 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
690 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
691 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
692 out.println(iii + " (stride >= 0)) {"); in emitFunction()
693 out.println(iii + indent + "_texCoordPointer = pointer;"); in emitFunction()
694 out.println(iii + "}"); in emitFunction()
696 out.println(iii + "if (((size == 2) ||"); in emitFunction()
697 out.println(iii + " (size == 3) ||"); in emitFunction()
698 out.println(iii + " (size == 4)) &&"); in emitFunction()
699 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
700 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
701 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
702 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
703 out.println(iii + " (stride >= 0)) {"); in emitFunction()
704 out.println(iii + indent + "_vertexPointer = pointer;"); in emitFunction()
705 out.println(iii + "}"); in emitFunction()
707 out.println(iii + "if (((type == GL_FLOAT) ||"); in emitFunction()
708 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
709 out.println(iii + " (stride >= 0)) {"); in emitFunction()
710 out.println(iii + indent + "_pointSizePointerOES = pointer;"); in emitFunction()
711 out.println(iii + "}"); in emitFunction()
713 out.println(iii + "if (((size == 2) ||"); in emitFunction()
714 out.println(iii + " (size == 3) ||"); in emitFunction()
715 out.println(iii + " (size == 4)) &&"); in emitFunction()
716 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
717 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
718 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
719 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
720 out.println(iii + " (stride >= 0)) {"); in emitFunction()
721 out.println(iii + indent + "_matrixIndexPointerOES = pointer;"); in emitFunction()
722 out.println(iii + "}"); in emitFunction()
724 out.println(iii + "if (((size == 2) ||"); in emitFunction()
725 out.println(iii + " (size == 3) ||"); in emitFunction()
726 out.println(iii + " (size == 4)) &&"); in emitFunction()
727 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
728 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
729 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
730 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
731 out.println(iii + " (stride >= 0)) {"); in emitFunction()
732 out.println(iii + indent + "_weightPointerOES = pointer;"); in emitFunction()
733 out.println(iii + "}"); in emitFunction()
1390 String iii = " "; in emitJniCode() local
1391 out.println(iii + indent + "if ( ! " + cname + " ) {"); in emitJniCode()
1392 out.println(iii + indent + indent + "return;"); in emitJniCode()
1393 out.println(iii + indent + "}"); in emitJniCode()