Index: src/x64/codegen-x64.cc |
diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
index f828cec31f963f20c53f679f3aef547799a43f12..30b3a6a2226291f99d5bc3861e7ba5ee42b0d81b 100644 |
--- a/src/x64/codegen-x64.cc |
+++ b/src/x64/codegen-x64.cc |
@@ -277,7 +277,7 @@ void CodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
} |
-void CodeGenerator::GenCode(FunctionLiteral* function) { |
+void CodeGenerator::GenCode(FunctionLiteral* function, CompilationInfo* info) { |
// Record the position for debugging purposes. |
CodeForFunctionPosition(function); |
ZoneList<Statement*>* body = function->body(); |
@@ -293,7 +293,7 @@ void CodeGenerator::GenCode(FunctionLiteral* function) { |
set_in_spilled_code(false); |
// Adjust for function-level loop nesting. |
- loop_nesting_ += function->loop_nesting(); |
+ loop_nesting_ += info->loop_nesting(); |
JumpTarget::set_compiling_deferred_code(false); |
@@ -471,7 +471,7 @@ void CodeGenerator::GenCode(FunctionLiteral* function) { |
} |
// Adjust for function-level loop nesting. |
- loop_nesting_ -= function->loop_nesting(); |
+ loop_nesting_ -= info->loop_nesting(); |
// Code generation state must be reset. |
ASSERT(state_ == NULL); |