|
Message
From: cvs at opencores.org<cvs@o...>
Date: Mon Dec 17 18:36:13 CET 2007
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/07/12 17:18:36 Modified: jop/java/tools/src/com/jopdesign/debug/jdwp SymbolTable.java Log: Method added: 378: public int getMethodSizeInWords(int methodPointer) Revision Changes Path 1.4 jop/java/tools/src/com/jopdesign/debug/jdwp/SymbolTable.java http://www.opencores.org/cvsweb.shtml/jop/java/tools/src/com/jopdesign/debug/jdwp/SymbolTable.java.diff?r1=1.3&r2=1.4 (In the diff below, changes in quantity of whitespace are not shown.) Index: SymbolTable.java =================================================================== RCS file: /cvsroot/paulo/jop/java/tools/src/com/jopdesign/debug/jdwp/SymbolTable.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- SymbolTable.java 29 Nov 2007 15:14:44 -0000 1.3 +++ SymbolTable.java 17 Dec 2007 17:35:44 -0000 1.4 @@ -349,6 +349,14 @@ return methodStructPointer; } + /** + * Return the method size in words. On the Java Machine, + * each word has 4 bytes. + * + * @param className + * @param methodSignature + * @return + */ public int getMethodSizeInWords(String className, String methodSignature) { int methodSize; @@ -360,6 +368,24 @@ return methodSize; } + /** + * Return the method size in words. On the Java Machine, + * each word has 4 bytes. + * + * @param methodPointer + * @return + */ + public int getMethodSizeInWords(int methodPointer) + { + int methodSize; + MethodInfo methodInfo; + + methodInfo = getMethodInfo(methodPointer); + methodSize = methodInfo.getLength(); + + return methodSize; + } + public String getSourceFile(int typeId) { String sourceFile = null;
|
 |