projects
/
nestedvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95c62ec
)
ABS.X fix
author
brian
<brian@brianweb.net>
Wed, 12 May 2004 04:08:36 +0000
(21:08 -0700)
committer
brian
<brian@brianweb.net>
Wed, 12 May 2004 04:08:36 +0000
(21:08 -0700)
darcs-hash:
20040512040836
-24bed-
c0763a692e735c42e73240fdb7469898dddb59cf
.gz
src/org/ibex/nestedvm/ClassFileCompiler.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/nestedvm/ClassFileCompiler.java
b/src/org/ibex/nestedvm/ClassFileCompiler.java
index
f0b9153
..
1f6ecd4
100644
(file)
--- a/
src/org/ibex/nestedvm/ClassFileCompiler.java
+++ b/
src/org/ibex/nestedvm/ClassFileCompiler.java
@@
-1262,13
+1262,7
@@
public class ClassFileCompiler extends Compiler implements org.apache.bcel.Const
b1 = a(InstructionFactory.createBranchInstruction(IFGT,null));
a(d ? InstructionConstants.DCONST_0 : InstructionConstants.FCONST_0);
b1 = a(InstructionFactory.createBranchInstruction(IFGT,null));
a(d ? InstructionConstants.DCONST_0 : InstructionConstants.FCONST_0);
- if(d) {
- a(InstructionConstants.DUP2_X2);
- a(InstructionConstants.POP2);
- } else {
- a(InstructionConstants.POP);
- }
- a(InstructionConstants.DSUB);
+ a(d ? InstructionConstants.DSUB : InstructionConstants.FSUB);
b1.setTarget(setDouble(d));
b1.setTarget(setDouble(d));