LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Tue Feb 26 00:29:35 CET 2008
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/08/02 26:00:29

    Modified: jop/java/tools/src/com/jopdesign/libgraph/cfg/statements/common
    GetfieldStmt.java InvokeStmt.java
    Log:
    fixes for incomplete code loading, added more array handling code


    Revision Changes Path
    1.3 jop/java/tools/src/com/jopdesign/libgraph/cfg/statements/common/GetfieldStmt.java

    http://www.opencores.org/cvsweb.shtml/jop/java/tools/src/com/jopdesign/libgraph/cfg/statements/common/GetfieldStmt.java.diff?r1=1.2&r2=1.3

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: GetfieldStmt.java
    ===================================================================
    RCS file: /cvsroot/stefant/jop/java/tools/src/com/jopdesign/libgraph/cfg/statements/common/GetfieldStmt.java,v
    retrieving revision 1.2
    retrieving revision 1.3
    diff -u -b -r1.2 -r1.3
    --- GetfieldStmt.java 14 Feb 2008 01:26:05 -0000 1.2
    +++ GetfieldStmt.java 25 Feb 2008 23:29:35 -0000 1.3
    @@ -47,7 +47,7 @@
    }

    public boolean isStatic() {
    - return field.getFieldInfo() != null && field.getFieldInfo().isStatic();
    + return field.isStatic();
    }

    public boolean canThrowException() {



    1.5 jop/java/tools/src/com/jopdesign/libgraph/cfg/statements/common/InvokeStmt.java

    http://www.opencores.org/cvsweb.shtml/jop/java/tools/src/com/jopdesign/libgraph/cfg/statements/common/InvokeStmt.java.diff?r1=1.4&r2=1.5

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: InvokeStmt.java
    ===================================================================
    RCS file: /cvsroot/stefant/jop/java/tools/src/com/jopdesign/libgraph/cfg/statements/common/InvokeStmt.java,v
    retrieving revision 1.4
    retrieving revision 1.5
    diff -u -b -r1.4 -r1.5
    --- InvokeStmt.java 24 Feb 2008 20:18:25 -0000 1.4
    +++ InvokeStmt.java 25 Feb 2008 23:29:35 -0000 1.5
    @@ -104,6 +104,22 @@
    return slots;
    }

    + /**
    + * Get the number of stack-entries or local variables the parameters of this invocation
    + * need. The object-reference is included, too.
    + *
    + * @return number of slots for all parameters of the incokation.
    + */
    + public int getParamSlotCount() {
    + TypeInfo[] params = getParameterTypes();
    + int slots = isStatic() ? 0 : 1;
    +
    + for (int i = 0; i < params.length; i++) {
    + slots += params[i].getLength();
    + }
    + return slots;
    + }
    +
    public String getInvokeName() {
    String name = "";
    switch (invokeType) {



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.