Fix comment: we now support observeInstructionCount for compiled mode.

git-svn-id: svn://10.0.0.236/trunk@253880 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nboyd%atg.com 2008-08-27 15:23:59 +00:00
parent 681a8eb6fe
commit e21b3ceeda

View File

@ -78,9 +78,6 @@ package org.mozilla.javascript;
* protected Context makeContext()
* {
* MyContext cx = new MyContext();
* // Use pure interpreter mode to allow for
* // {@link #observeInstructionCount(Context, int)} to work
* cx.setOptimizationLevel(-1);
* // Make Rhino runtime to call observeInstructionCount
* // each 10000 bytecode instructions
* cx.setInstructionObserverThreshold(10000);
@ -407,8 +404,7 @@ public class ContextFactory
* This can be used to customize {@link Context} without introducing
* additional subclasses.
*/
protected void observeInstructionCount(Context cx, int instructionCount)
{
protected void observeInstructionCount(Context cx, int instructionCount) {
}
protected void onContextCreated(Context cx)