From e21b3ceedafebf76ddc08e15d76b4d077a21955b Mon Sep 17 00:00:00 2001 From: "nboyd%atg.com" Date: Wed, 27 Aug 2008 15:23:59 +0000 Subject: [PATCH] Fix comment: we now support observeInstructionCount for compiled mode. git-svn-id: svn://10.0.0.236/trunk@253880 18797224-902f-48f8-a5cc-f745e15eee43 --- .../js/rhino/src/org/mozilla/javascript/ContextFactory.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mozilla/js/rhino/src/org/mozilla/javascript/ContextFactory.java b/mozilla/js/rhino/src/org/mozilla/javascript/ContextFactory.java index 87501ba4478..0e834e6ccf5 100644 --- a/mozilla/js/rhino/src/org/mozilla/javascript/ContextFactory.java +++ b/mozilla/js/rhino/src/org/mozilla/javascript/ContextFactory.java @@ -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)