Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 02c3ddd45a7ced8172ef5e5edb541f08121d821f..311024f43efe50b5c05c3de684a14e3379b671dc 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -598,6 +598,11 @@ class Compiler : public AllStatic { |
static bool CompileDebugCode(Handle<SharedFunctionInfo> shared); |
static void CompileForLiveEdit(Handle<Script> script); |
+ // Give the compiler a chance to perform low-latency initialization tasks of |
+ // the given {function} on its instantiation. Note that only the runtime will |
+ // offer this chance, optimized closure instantiation will not call this. |
+ static void PostInstantiation(Handle<JSFunction> function, PretenureFlag); |
+ |
// Parser::Parse, then Compiler::Analyze. |
static bool ParseAndAnalyze(ParseInfo* info); |
// Rewrite, analyze scopes, and renumber. |