[Objectscript-devel] [OBJECTSCRIPT] Issue #OBJS20 modified
Brought to you by:
rob_d_clark
From: Rob C. <rob...@ma...> - 2003-05-13 08:02:25
|
Issue OBJS20 (stack trace line # problem) has just been modified by user rob...@ma... You can view the issue detail at the following URL: <http://icandy.homeunix.org:443/scarab/issues/id/OBJS20> The following modifications were made to this issue: intrude a Stack (ScriptContext) ? object, with setScope(), setLineNumber() methods. Use hashtable to map current thread to ScriptContext (which can possibly also be passed on stack to avoid hashtable lookup, via varients on evalNode(), callAsFunction(), etc.) By using setScope() and setLineNumber(), as separate methods, we can reduce the instruction count for the more frenquent act of setting the line number, by not having to push the scope onto the stack (and store it in setLineNumber()) One idea, that could improve on performance is, if there is no breakpoint in the current NodeEvaluator (?) use a ScriptContext implementation that does not call the debugger. This would minimize the overhead of the debugging support when debugging is not enabled. |