Index: src/compiler.cc |
=================================================================== |
--- src/compiler.cc (revision 751) |
+++ src/compiler.cc (working copy) |
@@ -239,7 +239,8 @@ |
} |
-bool Compiler::CompileLazy(Handle<SharedFunctionInfo> shared) { |
+bool Compiler::CompileLazy(Handle<SharedFunctionInfo> shared, |
+ int loop_nesting) { |
ZoneScope zone_scope(DELETE_ON_EXIT); |
// The VM is in the COMPILER state until exiting this function. |
@@ -271,6 +272,9 @@ |
return false; |
} |
+ // Update the loop nesting in the function literal. |
+ lit->set_loop_nesting(loop_nesting); |
+ |
// Measure how long it takes to do the lazy compilation; only take |
// the rest of the function into account to avoid overlap with the |
// lazy parsing statistics. |