diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2009-11-18 15:25:58 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-11-18 15:28:54 +0100 |
commit | 728d8a37f471afaeaa6af19823f9da8c41f1f65a (patch) | |
tree | 21e014089ff0bfb7d493691620ab9eee51176d28 /deps/v8/src/compiler.h | |
parent | 8195e0f7232fed3d6a3a2cc8464fec5e36f4433c (diff) | |
download | node-new-728d8a37f471afaeaa6af19823f9da8c41f1f65a.tar.gz |
Upgrade v8 to 2.0
(With just one change: remove -Werror)
Diffstat (limited to 'deps/v8/src/compiler.h')
-rw-r--r-- | deps/v8/src/compiler.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/v8/src/compiler.h b/deps/v8/src/compiler.h index 579970b3c6..546e446b98 100644 --- a/deps/v8/src/compiler.h +++ b/deps/v8/src/compiler.h @@ -71,6 +71,19 @@ class Compiler : public AllStatic { // true on success and false if the compilation resulted in a stack // overflow. static bool CompileLazy(Handle<SharedFunctionInfo> shared, int loop_nesting); + + // Compile a function boilerplate object (the function is possibly + // lazily compiled). Called recursively from a backend code + // generator 'caller' to build the boilerplate. + static Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node, + Handle<Script> script, + AstVisitor* caller); + + // Set the function info for a newly compiled function. + static void SetFunctionInfo(Handle<JSFunction> fun, + FunctionLiteral* lit, + bool is_toplevel, + Handle<Script> script); }; |