Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 3d10e96b53b1c64460b758833c60b5d59d6d42d8..96395427403438fc7cf58b1510bd80524f2a882d 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -302,6 +302,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()); |
+ code->set_self_optimization_header(cgen.has_self_optimization_header_); |
cgen.PopulateDeoptimizationData(code); |
cgen.PopulateTypeFeedbackInfo(code); |
cgen.PopulateTypeFeedbackCells(code); |
@@ -365,6 +366,7 @@ void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) { |
void FullCodeGenerator::PopulateTypeFeedbackInfo(Handle<Code> code) { |
Handle<TypeFeedbackInfo> info = isolate()->factory()->NewTypeFeedbackInfo(); |
info->set_ic_total_count(ic_total_count_); |
+ ASSERT(!isolate()->heap()->InNewSpace(*info)); |
code->set_type_feedback_info(*info); |
} |