projects
/
org.ibex.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9ed8d93
)
added CALLMETHOD case to JS.pause()
author
adam
<adam@megacz.com>
Wed, 29 Dec 2004 02:46:38 +0000
(
02:46
+0000)
committer
adam
<adam@megacz.com>
Wed, 29 Dec 2004 02:46:38 +0000
(
02:46
+0000)
darcs-hash:
20041229024638
-5007d-
5ffe3a3c8803381e0b32558e13e22ebc0fba02ac
.gz
src/org/ibex/js/JS.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/js/JS.java
b/src/org/ibex/js/JS.java
index
538fc1a
..
a75bb27
100644
(file)
--- a/
src/org/ibex/js/JS.java
+++ b/
src/org/ibex/js/JS.java
@@
-133,8
+133,8
@@
public abstract class JS {
boolean get;
switch(i.f.op[i.pc]) {
case Tokens.RETURN: case ByteCodes.PUT: get = false; break;
boolean get;
switch(i.f.op[i.pc]) {
case Tokens.RETURN: case ByteCodes.PUT: get = false; break;
- case ByteCodes.GET: case ByteCodes.CALL: get = true; break;
- default: throw new Error("should never happen");
+ case ByteCodes.GET: case ByteCodes.CALL: case ByteCodes.CALLMETHOD: get = true; break;
+ default: throw new Error("should never happen: i.f.op[i.pc] == " + i.f.op[i.pc]);
}
i.pausecount++;
return new JS.UnpauseCallback(i,get);
}
i.pausecount++;
return new JS.UnpauseCallback(i,get);