setGenerateObserverCount(boolean generateObserverCount) Turn on or off generation of code with callbacks to
track the count of executed instructions.
Currently only affects JVM byte code generation: this slows down the
generated code, but code generated without the callbacks will not
be counted toward instruction thresholds.
public void
setGeneratingSource(boolean generatingSource) Specify whether or not source information should be generated.
public void setGenerateDebugInfo(boolean flag)(Code)
setGenerateObserverCount
public void setGenerateObserverCount(boolean generateObserverCount)(Code)
Turn on or off generation of code with callbacks to
track the count of executed instructions.
Currently only affects JVM byte code generation: this slows down the
generated code, but code generated without the callbacks will not
be counted toward instruction thresholds. Rhino's interpretive
mode does instruction counting without inserting callbacks, so
there is no requirement to compile code differently.
Parameters: generateObserverCount - if true, generated code will containcalls to accumulate an estimate of the instructions executed.
setGeneratingSource
public void setGeneratingSource(boolean generatingSource)(Code)
Specify whether or not source information should be generated.
Without source information, evaluating the "toString" method
on JavaScript functions produces only "[native code]" for
the body of the function.
Note that code generated without source is not fully ECMA
conformant.
setLanguageVersion
public void setLanguageVersion(int languageVersion)(Code)