more features
authorbrian <brian@brianweb.net>
Tue, 25 May 2004 04:51:47 +0000 (21:51 -0700)
committerbrian <brian@brianweb.net>
Tue, 25 May 2004 04:51:47 +0000 (21:51 -0700)
darcs-hash:20040525045147-24bed-0769038d7ffd11546458d47552ad88529a63687d.gz

src/org/ibex/nestedvm/ClassFileCompiler.java
src/org/ibex/nestedvm/UnixRuntime.java

index 2f5b609..2dec150 100644 (file)
@@ -7,6 +7,7 @@ import org.ibex.nestedvm.util.*;
 
 import org.apache.bcel.generic.*;
 
 
 import org.apache.bcel.generic.*;
 
+// FEATURE: Use IINC where possible
 // FEATURE: Use BCEL to do peephole optimization
 // FEATURE: Special mode to support single-precision only - regs are floats not ints
 
 // FEATURE: Use BCEL to do peephole optimization
 // FEATURE: Special mode to support single-precision only - regs are floats not ints
 
index 491a486..b4f651d 100644 (file)
@@ -1051,6 +1051,7 @@ public abstract class UnixRuntime extends Runtime implements Cloneable {
             mps = newMPS;
         }
         
             mps = newMPS;
         }
         
+        // FEATURE: We shouldn't need to special case the root dir, it should work in the MP array
         private Object fsop(int op, UnixRuntime r, String normalizedPath, int arg1, int arg2) throws ErrnoException {
             int pl = normalizedPath.length();
             if(pl != 0) {
         private Object fsop(int op, UnixRuntime r, String normalizedPath, int arg1, int arg2) throws ErrnoException {
             int pl = normalizedPath.length();
             if(pl != 0) {
@@ -1066,6 +1067,7 @@ public abstract class UnixRuntime extends Runtime implements Cloneable {
             return dispatch(root,op,r,normalizedPath,arg1,arg2);
         }
         
             return dispatch(root,op,r,normalizedPath,arg1,arg2);
         }
         
+        // FEATURE: move this into FS so some filesystem can override it directly (devfs)
         private static Object dispatch(FS fs, int op, UnixRuntime r, String path, int arg1, int arg2) throws ErrnoException {
             switch(op) {
                 case OPEN: return fs.open(r,path,arg1,arg2);
         private static Object dispatch(FS fs, int op, UnixRuntime r, String path, int arg1, int arg2) throws ErrnoException {
             switch(op) {
                 case OPEN: return fs.open(r,path,arg1,arg2);