summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-01-19 11:06:13 -0800
committerRyan Dahl <ry@tinyclouds.org>2011-01-19 11:06:13 -0800
commitb8f006ef72bb518397483d5b43111ddbcff250c8 (patch)
tree0bd0a7f2ae70606aca210c38596fa8f2f6e52194 /deps/v8/src/compiler.h
parente6e6e87463d4b1d3d8d5c129e4d008d35a1b5463 (diff)
downloadnode-new-b8f006ef72bb518397483d5b43111ddbcff250c8.tar.gz
Upgrade V8 to 3.0.9
Diffstat (limited to 'deps/v8/src/compiler.h')
-rw-r--r--deps/v8/src/compiler.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/deps/v8/src/compiler.h b/deps/v8/src/compiler.h
index 68066aa67a..44ac9c85ce 100644
--- a/deps/v8/src/compiler.h
+++ b/deps/v8/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,