Index: src/fast-codegen.cc |
diff --git a/src/fast-codegen.cc b/src/fast-codegen.cc |
index ecd26527cb489d9c6bf7018d3d78585cbd411ee6..602d6b88ce9e0861072226eb388bcb7c5dcf68fe 100644 |
--- a/src/fast-codegen.cc |
+++ b/src/fast-codegen.cc |
@@ -456,7 +456,8 @@ Handle<Code> FastCodeGenerator::MakeCode(CompilationInfo* info) { |
// macro assembler. |
CodeGenerator cgen(&masm); |
CodeGeneratorScope scope(&cgen); |
- cgen.Generate(info, CodeGenerator::SECONDARY); |
+ info->set_mode(CompilationInfo::SECONDARY); |
+ cgen.Generate(info); |
if (cgen.HasStackOverflow()) { |
ASSERT(!Top::has_pending_exception()); |
return Handle<Code>::null(); |