projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Glulxe to 0.4.7
[projects/chimara/chimara.git]
/
interpreters
/
glulxe
/
funcs.c
diff --git
a/interpreters/glulxe/funcs.c
b/interpreters/glulxe/funcs.c
index c0aac4dccae22643c1e6ec4b91aeb2aa19c98af6..2e03ccdb3551d78e3a3539e0c7799d1547585786 100644
(file)
--- a/
interpreters/glulxe/funcs.c
+++ b/
interpreters/glulxe/funcs.c
@@
-23,14
+23,14
@@
void enter_function(glui32 addr, glui32 argc, glui32 *argv)
accelfunc = accel_get_func(addr);
if (accelfunc) {
accelfunc = accel_get_func(addr);
if (accelfunc) {
- profile_in(addr, TRUE);
+ profile_in(addr,
stackptr,
TRUE);
val = accelfunc(argc, argv);
val = accelfunc(argc, argv);
- profile_out();
+ profile_out(
stackptr
);
pop_callstub(val);
return;
}
pop_callstub(val);
return;
}
- profile_in(addr, FALSE);
+ profile_in(addr,
stackptr,
FALSE);
/* Check the Glulx type identifier byte. */
functype = Mem1(addr);
/* Check the Glulx type identifier byte. */
functype = Mem1(addr);
@@
-190,8
+190,8
@@
void enter_function(glui32 addr, glui32 argc, glui32 *argv)
*/
void leave_function()
{
*/
void leave_function()
{
+ profile_out(stackptr);
stackptr = frameptr;
stackptr = frameptr;
- profile_out();
}
/* push_callstub():
}
/* push_callstub():