| Index: src/compiler.h
|
| diff --git a/src/compiler.h b/src/compiler.h
|
| index 68066aa67af0b84330127d50e40f12488cccd288..44ac9c85ce385083f4ce6905c832529eef9c2fb6 100644
|
| --- a/src/compiler.h
|
| +++ b/src/compiler.h
|
| @@ -209,9 +209,13 @@ class CompilationInfo BASE_EMBEDDED {
|
|
|
| class Compiler : public AllStatic {
|
| public:
|
| - // All routines return a JSFunction.
|
| - // If an error occurs an exception is raised and
|
| - // the return handle contains NULL.
|
| + // Default maximum number of function optimization attempts before we
|
| + // give up.
|
| + static const int kDefaultMaxOptCount = 10;
|
| +
|
| + // All routines return a SharedFunctionInfo.
|
| + // If an error occurs an exception is raised and the return handle
|
| + // contains NULL.
|
|
|
| // Compile a String source within a context.
|
| static Handle<SharedFunctionInfo> Compile(Handle<String> source,
|
|
|