Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index f6a36f5dc1b9aa8644677bf58861d431cb3783c1..91a51731a58bb470988cb985df84aea0538f11fc 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -333,7 +333,7 @@ bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
Code::Flags flags = Code::ComputeFlags(Code::FUNCTION); |
Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); |
code->set_optimizable(info->IsOptimizable() && |
- !info->function()->flags()->Contains(kDontOptimize) && |
+ !info->function()->dont_optimize() && |
info->function()->scope()->AllowsLazyCompilation()); |
cgen.PopulateDeoptimizationData(code); |
cgen.PopulateTypeFeedbackInfo(code); |