From 48bd56ca03196a5276a0152e7fc45dbc8c3d054e Mon Sep 17 00:00:00 2001 From: Slava Date: Sun, 30 Sep 2007 02:25:21 -0400 Subject: [PATCH] Fix profiler on x86 --- vm/cpu-x86.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/cpu-x86.S b/vm/cpu-x86.S index 7032b77e18..4331800cf9 100644 --- a/vm/cpu-x86.S +++ b/vm/cpu-x86.S @@ -29,7 +29,7 @@ DEF(F_FASTCALL void,dosym,(CELL word)): /* Here we have two entry points. The first one is taken when profiling is enabled */ DEF(F_FASTCALL void,docol_profiling,(CELL word)): - add $CELL_SIZE,PROFILING_OFFSET(ARG0) /* Increment profile-count slot */ + add $8,PROFILING_OFFSET(ARG0) /* Increment profile-count slot */ DEF(F_FASTCALL void,docol,(CELL word)): mov WORD_DEF_OFFSET(ARG0),ARG0 /* Load word-def slot */ JUMP_QUOT