Lines Matching refs:iii
156 void emitFunctionCall(JFunc jfunc, PrintStream out, String iii, boolean grabArray) { in emitFunctionCall() argument
161 out.println(iii + in emitFunctionCall()
164 out.println(iii + in emitFunctionCall()
178 out.println(iii + indent + "get" + typeName + "Array(" + argName + "),"); in emitFunctionCall()
179 out.print(iii + indent + "getOffset(" + argName + ")"); in emitFunctionCall()
181 out.print(iii + indent + argName); in emitFunctionCall()
186 out.println(iii + indent + argName + ".remaining()"); in emitFunctionCall()
195 out.println(iii + ");"); in emitFunctionCall()
199 String iii) { in printIfcheckPostamble() argument
201 "offset", "_remaining", iii); in printIfcheckPostamble()
205 String offset, String remaining, String iii) { in printIfcheckPostamble() argument
206 out.println(iii + " default:"); in printIfcheckPostamble()
207 out.println(iii + " _needed = 1;"); in printIfcheckPostamble()
208 out.println(iii + " break;"); in printIfcheckPostamble()
209 out.println(iii + "}"); in printIfcheckPostamble()
211 out.println(iii + "if (" + remaining + " < _needed) {"); in printIfcheckPostamble()
212 out.println(iii + indent + "_exception = 1;"); in printIfcheckPostamble()
213 out.println(iii + indent + in printIfcheckPostamble()
215 out.println(iii + indent + in printIfcheckPostamble()
219 out.println(iii + indent + "goto exit;"); in printIfcheckPostamble()
220 out.println(iii + "}"); in printIfcheckPostamble()
369 … boolean isBuffer, boolean emitExceptionCheck, String offset, String remaining, String iii) { in emitNativeBoundsChecks() argument
381 offset, remaining, iii); in emitNativeBoundsChecks()
388 out.println(iii + "if (" + remaining + " < " + checks[index + 2] + ") {"); in emitNativeBoundsChecks()
389 out.println(iii + indent + "_exception = 1;"); in emitNativeBoundsChecks()
403 out.println(iii + indent + in emitNativeBoundsChecks()
405 out.println(iii + indent + in emitNativeBoundsChecks()
411 out.println(iii + indent + "goto exit;"); in emitNativeBoundsChecks()
412 out.println(iii + "}"); in emitNativeBoundsChecks()
421 out.println(iii + "int _needed;"); in emitNativeBoundsChecks()
422 out.println(iii + "switch (" + checks[index + 3] + ") {"); in emitNativeBoundsChecks()
427 out.println(iii + " case " + matches[i] + ":"); in emitNativeBoundsChecks()
430 out.println(iii + " _needed = " + checks[index + 2] + ";"); in emitNativeBoundsChecks()
431 out.println(iii + " break;"); in emitNativeBoundsChecks()
442 printIfcheckPostamble(out, isBuffer, emitExceptionCheck, iii); in emitNativeBoundsChecks()
447 … boolean isBuffer, boolean emitExceptionCheck, String offset, String remaining, String iii) { in emitSentinelCheck() argument
460 out.println(iii + cname + "_sentinel = false;"); in emitSentinelCheck()
461 out.println(iii + "for (int i = " + remaining + in emitSentinelCheck()
463 out.println(iii + indent + "if (" + cname + in emitSentinelCheck()
465 out.println(iii + indent + indent + in emitSentinelCheck()
467 out.println(iii + indent + indent + "break;"); in emitSentinelCheck()
468 out.println(iii + indent + "}"); in emitSentinelCheck()
469 out.println(iii + "}"); in emitSentinelCheck()
470 out.println(iii + in emitSentinelCheck()
472 out.println(iii + indent + "_exception = 1;"); in emitSentinelCheck()
473 out.println(iii + indent + in emitSentinelCheck()
475 out.println(iii + indent + "_exceptionMessage = \"" + cname + in emitSentinelCheck()
477 out.println(iii + indent + "goto exit;"); in emitSentinelCheck()
478 out.println(iii + "}"); in emitSentinelCheck()
489 void emitStringCheck(CFunc cfunc, String cname, PrintStream out, String iii) { in emitStringCheck() argument
501 out.println(iii + "_stringlen = _env->GetStringUTFLength(" + cname + ");"); in emitStringCheck()
502 out.println(iii + "if (" + checks[index + 2] + " > _stringlen) {"); in emitStringCheck()
503 out.println(iii + indent + "_exception = 1;"); in emitStringCheck()
504 out.println(iii + indent + in emitStringCheck()
506 out.println(iii + indent + in emitStringCheck()
509 out.println(iii + indent + "goto exit;"); in emitStringCheck()
510 out.println(iii + "}"); in emitStringCheck()
620 String iii = indent + indent; in emitFunction() local
623 emitFunctionCall(jfunc, out, iii, false); in emitFunction()
635 out.println(iii + "if ((size == 4) &&"); in emitFunction()
636 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
637 out.println(iii + " (type == GL_UNSIGNED_BYTE) ||"); in emitFunction()
638 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
639 out.println(iii + " (stride >= 0)) {"); in emitFunction()
640 out.println(iii + indent + "_colorPointer = pointer;"); in emitFunction()
641 out.println(iii + "}"); in emitFunction()
643 out.println(iii + "if (((type == GL_FLOAT) ||"); in emitFunction()
644 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
645 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
646 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
647 out.println(iii + " (stride >= 0)) {"); in emitFunction()
648 out.println(iii + indent + "_normalPointer = pointer;"); in emitFunction()
649 out.println(iii + "}"); in emitFunction()
651 out.println(iii + "if (((size == 2) ||"); in emitFunction()
652 out.println(iii + " (size == 3) ||"); in emitFunction()
653 out.println(iii + " (size == 4)) &&"); in emitFunction()
654 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
655 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
656 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
657 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
658 out.println(iii + " (stride >= 0)) {"); in emitFunction()
659 out.println(iii + indent + "_texCoordPointer = pointer;"); in emitFunction()
660 out.println(iii + "}"); in emitFunction()
662 out.println(iii + "if (((size == 2) ||"); in emitFunction()
663 out.println(iii + " (size == 3) ||"); in emitFunction()
664 out.println(iii + " (size == 4)) &&"); in emitFunction()
665 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
666 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
667 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
668 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
669 out.println(iii + " (stride >= 0)) {"); in emitFunction()
670 out.println(iii + indent + "_vertexPointer = pointer;"); in emitFunction()
671 out.println(iii + "}"); in emitFunction()
673 out.println(iii + "if (((type == GL_FLOAT) ||"); in emitFunction()
674 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
675 out.println(iii + " (stride >= 0)) {"); in emitFunction()
676 out.println(iii + indent + "_pointSizePointerOES = pointer;"); in emitFunction()
677 out.println(iii + "}"); in emitFunction()
679 out.println(iii + "if (((size == 2) ||"); in emitFunction()
680 out.println(iii + " (size == 3) ||"); in emitFunction()
681 out.println(iii + " (size == 4)) &&"); in emitFunction()
682 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
683 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
684 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
685 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
686 out.println(iii + " (stride >= 0)) {"); in emitFunction()
687 out.println(iii + indent + "_matrixIndexPointerOES = pointer;"); in emitFunction()
688 out.println(iii + "}"); in emitFunction()
690 out.println(iii + "if (((size == 2) ||"); in emitFunction()
691 out.println(iii + " (size == 3) ||"); in emitFunction()
692 out.println(iii + " (size == 4)) &&"); in emitFunction()
693 out.println(iii + " ((type == GL_FLOAT) ||"); in emitFunction()
694 out.println(iii + " (type == GL_BYTE) ||"); in emitFunction()
695 out.println(iii + " (type == GL_SHORT) ||"); in emitFunction()
696 out.println(iii + " (type == GL_FIXED)) &&"); in emitFunction()
697 out.println(iii + " (stride >= 0)) {"); in emitFunction()
698 out.println(iii + indent + "_weightPointerOES = pointer;"); in emitFunction()
699 out.println(iii + "}"); in emitFunction()
1329 String iii = " "; in emitJniCode() local
1330 out.println(iii + indent + "if ( ! " + cname + " ) {"); in emitJniCode()
1331 out.println(iii + indent + indent + "return;"); in emitJniCode()
1332 out.println(iii + indent + "}"); in emitJniCode()