boolean isNumberVar(int varIndex) { varIndex -= fnode.getParamCount(); if (varIndex >= 0 && numberVarFlags != null) { return numberVarFlags[varIndex]; } return false; }
boolean isNumberVar(int varIndex) { varIndex -= fnode.getParamCount(); if (varIndex >= 0 && numberVarFlags != null) { return numberVarFlags[varIndex]; } return false; }
boolean isParameter(int varIndex) { return varIndex < fnode.getParamCount(); }
boolean isParameter(int varIndex) { return varIndex < fnode.getParamCount(); }
void setIsNumberVar(int varIndex) { varIndex -= fnode.getParamCount(); // Can only be used with non-parameters if (varIndex < 0) Kit.codeBug(); if (numberVarFlags == null) { int size = fnode.getParamAndVarCount() - fnode.getParamCount(); numberVarFlags = new boolean[size]; } numberVarFlags[varIndex] = true; }
void setIsNumberVar(int varIndex) { varIndex -= fnode.getParamCount(); // Can only be used with non-parameters if (varIndex < 0) Kit.codeBug(); if (numberVarFlags == null) { int size = fnode.getParamAndVarCount() - fnode.getParamCount(); numberVarFlags = new boolean[size]; } numberVarFlags[varIndex] = true; }
String getBodyMethodSignature(ScriptOrFnNode n) { StringBuffer sb = new StringBuffer(); sb.append('('); sb.append(mainClassSignature); sb.append("Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;"); if (n.getType() == Token.FUNCTION) { OptFunctionNode ofn = OptFunctionNode.get(n); if (ofn.isTargetOfDirectCall()) { int pCount = ofn.fnode.getParamCount(); for (int i = 0; i != pCount; i++) { sb.append("Ljava/lang/Object;D"); } } } sb.append("[Ljava/lang/Object;)Ljava/lang/Object;"); return sb.toString(); }
String getBodyMethodSignature(ScriptOrFnNode n) { StringBuffer sb = new StringBuffer(); sb.append('('); sb.append(mainClassSignature); sb.append("Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;"); if (n.getType() == Token.FUNCTION) { OptFunctionNode ofn = OptFunctionNode.get(n); if (ofn.isTargetOfDirectCall()) { int pCount = ofn.fnode.getParamCount(); for (int i = 0; i != pCount; i++) { sb.append("Ljava/lang/Object;D"); } } } sb.append("[Ljava/lang/Object;)Ljava/lang/Object;"); return sb.toString(); }
static void runFlowAnalyzes(OptFunctionNode fn, Node[] statementNodes) int paramCount = fn.fnode.getParamCount(); int varCount = fn.fnode.getParamAndVarCount(); int[] varTypes = new int[varCount];
static void runFlowAnalyzes(OptFunctionNode fn, Node[] statementNodes) int paramCount = fn.fnode.getParamCount(); int varCount = fn.fnode.getParamAndVarCount(); int[] varTypes = new int[varCount];
String name = ofn.getFunctionName(); if (name != null && name.length() != 0) { functionNames.put(name, ofn.getParamCount());
String name = ofn.getFunctionName(); if (name != null && name.length() != 0) { functionNames.put(name, ofn.getParamCount());
ofn = (OptFunctionNode)possibleDirectCalls.get(targetName); if (ofn != null && argCount == ofn.fnode.getParamCount() && !ofn.fnode.requiresActivation())
ofn = possibleDirectCalls.get(targetName); if (ofn != null && argCount == ofn.fnode.getParamCount() && !ofn.fnode.requiresActivation())
| ClassFileWriter.ACC_PRIVATE)); int argCount = ofn.fnode.getParamCount(); int firstLocal = (4 + argCount * 3) + 1;
| ClassFileWriter.ACC_PRIVATE)); int argCount = ofn.fnode.getParamCount(); int firstLocal = (4 + argCount * 3) + 1;
OptFunctionNode ofn = OptFunctionNode.get(n); if (ofn.isTargetOfDirectCall()) { int pcount = ofn.fnode.getParamCount(); if (pcount != 0) {
OptFunctionNode ofn = OptFunctionNode.get(n); if (ofn.isTargetOfDirectCall()) { int pcount = ofn.fnode.getParamCount(); if (pcount != 0) {
int paramCount = fnCurrent.fnode.getParamCount(); int varCount = fnCurrent.fnode.getParamAndVarCount(); boolean [] constDeclarations = fnCurrent.fnode.getParamAndVarConst();
int paramCount = fnCurrent.fnode.getParamCount(); int varCount = fnCurrent.fnode.getParamAndVarCount(); boolean [] constDeclarations = fnCurrent.fnode.getParamAndVarConst();